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

Xamarin 4.0 compatibility issues.

$
0
0

Hi,

I realized that there are some compatibility issues with Xamarin Forms. One of this issue is related to XAlign property.
Once I have updated to Xamarin 4.0, found that on two of my testing phone XAlign stopped working.
If I want to deploy the application on my phone with this property placed in app.xaml it causes immediate crash on app start up.

      <Style x:Key="LabelStyle" TargetType="Label">
          <Setter Property="LineBreakMode" Value="WordWrap" />
          <Setter Property="TextColor" Value="#F0F0F0"/>
          <Setter Property="XAlign" Value="Center" />
      </Style>

and if comment out this property wont have any issue!

      <Style x:Key="LabelStyle" TargetType="Label">
          <Setter Property="LineBreakMode" Value="WordWrap" />
          <Setter Property="TextColor" Value="#F0F0F0"/>
          <! --<Setter Property="XAlign" Value="Center" />-->
      </Style>

Anyone experiencing the same issue?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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