Skip to content

Commit 10ebc6f

Browse files
mzy666888Keboo
andauthored
the MaterialDesignUserForegroundCheckBox style for custom checkboxsize (#3743)
* RadioButton 添加自定义大小功能 * Adding sample to normal WPF demo app as well * the MaterialDesignUserForegroundCheckBox style for custom checkboxsize --------- Co-authored-by: Kevin Bost <[email protected]>
1 parent bb4a9fe commit 10ebc6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.CheckBox.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@
239239
<ColumnDefinition Width="Auto" />
240240
<ColumnDefinition Width="*" />
241241
</Grid.ColumnDefinitions>
242-
<Viewbox Width="18"
243-
Height="18"
242+
<Viewbox Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:CheckBoxAssist.CheckBoxSize)}"
243+
Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:CheckBoxAssist.CheckBoxSize)}"
244244
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
245245
FlowDirection="LeftToRight">
246246
<Canvas Width="24" Height="24">

0 commit comments

Comments
 (0)