Xaml 表单:自定义UWP上的操作表(ContentDialog)

Xaml 表单:自定义UWP上的操作表(ContentDialog),xaml,xamarin.forms,uwp,windows-10-universal,Xaml,Xamarin.forms,Uwp,Windows 10 Universal,我正在显示一张带有的操作表。操作表包括嵌入到内容对话框中的列表视图(请参阅)。现在我想定制PrimaryButton,SecondaryButton等等。看来是这样 如果我在UWP项目的App.xaml中使用以下样式,我可以自定义按钮,但我也会覆盖列表视图中项目的字体颜色: <Application.Resources> <ResourceDictionary> <ResourceDictionary.ThemeDictionaries>

我正在显示一张带有的操作表。操作表包括嵌入到
内容对话框中的
列表视图
(请参阅)。现在我想定制
PrimaryButton
SecondaryButton
等等。看来是这样

如果我在UWP项目的
App.xaml
中使用以下样式,我可以自定义按钮,但我也会覆盖
列表视图中项目的字体颜色:

<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>

有什么想法吗?

Rob已经给出了答案和解决方法,它是不可自定义的,但是你可以取消按钮设置,添加自己的按钮并自定义。我知道了。但问题是,如何在Xamarin.Forms中定制它。我不是直接调用
ContentDialog
。相反,我调用
await DisplayActionSheet()
,框架完成其余的工作。我认为自定义渲染器在这里没有帮助。我唯一能想象的是,你自己写行动表。
<Application.Resources>
    <ResourceDictionary>
        <Style TargetType="Button">
            <Setter Property="TextColor" Value="White" />
            <Setter Property="BackgroundColor" Value="Blue" />
        </Style>
    </ResourceDictionary>
</Application.Resources>