我正在显示一张await DisplayActionSheet()
的操作表。操作表包含嵌入ListView
的{{1}}(请参阅here)。现在我想自定义ContentDialog
,PrimaryButton
等等。似乎是not so easy possible。
如果我在UWP项目的SecondaryButton
中使用以下样式,我可以自定义按钮,但我也会覆盖App.xaml
中项目的字体颜色:
ListView
也不可能使用XF可移植项目的<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="SystemControlForegroundBaseHighBrush" Color="White" />
<SolidColorBrush x:Key="SystemControlBackgroundBaseLowBrush" Color="Blue" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
</Application.Resources>
中定义的隐式样式,因为它们不会被应用:
App.xaml
有什么想法吗?