Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- What can i do if the icon font not showing in ios? it working in windows uwp and android.
- i have this code in app.xaml
- <OnPlatform x:Key="FontIcons" x:TypeArguments="x:String">
- <OnPlatform.Platforms>
- <On Platform="Android" Value="UIFontIcons.ttf#UIFontIcons" />
- <On Platform="iOS" Value="UIFontIcons" />
- <On Platform="UWP" Value="Assets/UIFontIcons.ttf#UIFontIcons" />
- </OnPlatform.Platforms>
- </OnPlatform>
- in the styles file for homepage.xaml i have codes like this in it for the buttons.
- <Style x:Key="ActionBarSettingIconStyle" TargetType="Button">
- <Setter Property="TextColor" Value="{DynamicResource ActionBarbuttons}" />
- <Setter Property="FontFamily" Value="{StaticResource FontIcons}" />
- <Setter Property="BackgroundColor" Value="Transparent" />
- <Setter Property="Text" Value="" />
- <Setter Property="FontSize" Value="20"/>
- <Setter Property="Padding" Value="{OnPlatform Default=8, UWP=6}" />
- <Setter Property="Margin" Value="4,8" />
- <Setter Property="FontAttributes" Value="Bold"/>
- <Setter Property="HeightRequest" Value="{OnPlatform Default=40, UWP=40}" />
- <Setter Property="WidthRequest" Value="{OnPlatform Default=40, UWP=40}" />
- </Style>
- in homepage.xaml i have buttons like that for the buttons
- x:Name="SettingsIcon"
- Clicked="ShowSettings"
- IsVisible="false"
- Style="{StaticResource ActionBarSettingIconStyle}"
- VerticalOptions="Start" />
- I have the UIFontIcons.ttf in the info.plist to
Add Comment
Please, Sign In to add comment