Xamarin.Forms:在UWP上自定义操作表(ContentDialog)

时间:2016-11-16 12:17:37

标签: xaml xamarin.forms uwp windows-10-universal

我正在显示一张await DisplayActionSheet()的操作表。操作表包含嵌入ListView的{​​{1}}(请参阅here)。现在我想自定义ContentDialogPrimaryButton等等。似乎是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

有什么想法吗?

0 个答案:

没有答案