Styling the indeterminate state of a WPF checkbox

后端 未结 9 1939
情话喂你
情话喂你 2021-02-04 07:30

I want to style the indeterminate state of a WPF checkbox. We have a treeview control with checkboxes, and we want the indeterminate state to represent that some descendants are

9条回答
  •  灰色年华
    2021-02-04 07:56

    Using the template from Blend:

    To make BulletChrome work, you need to add a reference to PresentationFramework.Aero, and add the xml namespace declaration for the "theme" namespace:

    xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
    

    I didn't try this myself but I believe it should work (I've done it with Luna).

提交回复
热议问题