【发布时间】:2017-12-06 07:30:24
【问题描述】:
如何在 App.xaml 中为 CustomButton 定义样式?
App.xaml
<Style x:Key="CustomButtonSmall" TargetType="CustomButton">
<Setter Property="FontSize" Value="14" />
</Style>
MyPage.xaml
<local:CustomButton Text="{i18n:Translate CreateAccountButton}"
Grid.Column="0" Command="{Binding CreateAccountCommand}"
Type="Normal" Style="{StaticResource CustomButtonSmall}" />
【问题讨论】:
标签: c# xaml xamarin.forms