現象
Xamarin Formsを使用してアプリケーション開発をしています。
その中でSwitchコントロールを使用している箇所があるのですが、
ビルドモードをDebugにすると正常に表示できるのですが、それをReleaseモードにして実機で動作させるとコードは変更していないのに画像のようなスタイルになってしまいます。これをDebugモードと同じ表示にするにはどうすればよいでしょうか。
↓デバッグモード時のスクリーンショット
↓リリースモード時のスクリーンショット
以下該当箇所のコードです。
<StackLayout Orientation="Vertical" BackgroundColor="White" HorizontalOptions="Center" VerticalOptions="Start" Margin="0,40,0,0" > <StackLayout Orientation="Horizontal" Margin="10,10,0,5"><Switch IsToggled="false" /><Label Text="hogehoge1" VerticalOptions="Center" Margin="0,10,20,0"/></StackLayout> <StackLayout Orientation="Horizontal" Margin="10,0,0,5"><Switch IsToggled="false" /><Label Text="hogehoge2" VerticalOptions="Center" Margin="0,0,20,0"/></StackLayout> <StackLayout Orientation="Horizontal" Margin="10,0,0,5"><Switch IsToggled="false" /><Label Text="hogehoge3" VerticalOptions="Center" Margin="0,0,20,0"/></StackLayout> <StackLayout Orientation="Horizontal" Margin="10,0,0,5"><Switch IsToggled="false" /><Label Text="hogehoge4" VerticalOptions="Center" Margin="0,0,20,0"/></StackLayout> <Button Text="OK" HorizontalOptions="Center"/> </StackLayout>
環境
Xamarin.Forms2.5.0
端末:Samsung SCV31
どうぞよろしくおねがいします。
あなたの回答
tips
プレビュー