Hi experts,
As subject, here is my XAML code. But I got "There is no Height and Width property...." exception while compiling. I know the type of Height and Width should be GridLength but I have no idea to specify in ResourceDictionary.
<ContentPage.Resources>
<ResourceDictionary>
<OnPlatform x:Key="GridSize" x:TypeArguments="x:Double" iOS="50" Android="100" WinPhone="100" />
</ResourceDictionary>
</ContentPage.Resources>
........
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="{StaticResource GridSize}" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<RowDefinition Height="{StaticResource GridSize}" />
</Grid.ColumnDefinitions>
</Grid>
Any directions and hints will be appreciated. Thanks in advance.