Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

ContentPage.Resources not found.

$
0
0

HI guys,

Given the following xaml:
<?xml version="1.0" encoding="UTF-8"?>

<ContentPage.Content>
<ContentPage.Resources>

  <LayoutOptions x:Key="vertOptions"
                 Alignment="Center"
                 Expands="True" />

  <x:Double x:Key="borderWidth">
    3
  </x:Double>
</ResourceDictionary>

</ContentPage.Resources>

.....

I am getting a runtime error stating "Position 7:4. Type ContentPage.Resources not found in xmlns http://xamarin.com/schemas/2014/forms"

Just wondering whether anyone else has seen this?

When I remove the ContentPage.Resources xaml, the page works as expected. I took that xaml from the xamarin site.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>