无法更改 xceed checklistbox 中的复选框颜色

问题描述 投票:0回答:2
wpf controls themes xceed checklistbox
2个回答
0
投票

A

CheckListBox
CheckBox
元素的集合,您可以像往常一样设置样式。这应该有效:

<xctk:CheckListBox x:Name="_listBox" ...>
    <xctk:CheckListBox.Resources>
        <Style TargetType="CheckBox">
            <Style.Triggers>
                <Trigger Property="IsChecked" Value="True">
                    <Setter Property="Background" Value="Red"></Setter>
                </Trigger>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Background" Value="Green"></Setter>
                </Trigger>
                <Trigger Property="IsKeyboardFocusWithin" Value="True">
                    <Setter Property="Background" Value="Blue"></Setter>
                </Trigger>
            </Style.Triggers>
            <Setter Property="Background" Value="Yellow" />
        </Style>
    </xctk:CheckListBox.Resources>
</xctk:CheckListBox>

0
投票

有人知道如何基于@mm8示例更改复选框文本吗? 我已经搜索过但找不到工作示例。

© www.soinside.com 2019 - 2024. All rights reserved.