File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
MaterialDesignThemes.Wpf/Themes Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 109
109
</materialDesign : ColorZone >
110
110
</smtx : XamlDisplay >
111
111
112
- <TextBlock Margin =" 0 16 0 0" Style =" {StaticResource MaterialDesignSubtitle1TextBlock}" >Use custom back and fore colours.</TextBlock >
113
- <smtx : XamlDisplay Key =" color_zones_custom" >
114
- <materialDesign : ColorZone Mode =" Custom" Background =" Black" Foreground =" White" Padding =" 16" >
112
+ <TextBlock Margin =" 0 16 0 0" Style =" {StaticResource MaterialDesignSubtitle1TextBlock}" >Use custom back and fore colours. Disabled ClipToBounds </TextBlock >
113
+ <smtx : XamlDisplay Key =" color_zones_custom" Margin = " 0 16 " >
114
+ <materialDesign : ColorZone Mode =" Custom" Background =" Black" Foreground =" White" Padding =" 16 0 " ClipToBounds = " False " >
115
115
<StackPanel Orientation =" Horizontal" >
116
116
<ToggleButton Style =" {DynamicResource MaterialDesignHamburgerToggleButton}" />
117
- <TextBlock VerticalAlignment =" Center" Margin =" 16 0 0 0" >Material Design In XAML Toolkit</TextBlock >
117
+ <TextBlock VerticalAlignment =" Center" Margin =" 16 0" >Material Design In XAML Toolkit</TextBlock >
118
+ <materialDesign : Badged Badge =" 123" VerticalAlignment =" Center" >
119
+ <Button >Some action</Button >
120
+ </materialDesign : Badged >
118
121
</StackPanel >
119
122
</materialDesign : ColorZone >
120
123
</smtx : XamlDisplay >
Original file line number Diff line number Diff line change 425
425
<Setter Property =" VerticalContentAlignment" Value =" Stretch" />
426
426
<Setter Property =" VerticalAlignment" Value =" Top" />
427
427
<Setter Property =" IsTabStop" Value =" False" />
428
+ <Setter Property =" ClipToBounds" Value =" True" />
428
429
<Setter Property =" Template" >
429
430
<Setter .Value>
430
431
<ControlTemplate TargetType =" {x:Type local:ColorZone}" >
447
448
BorderBrush =" {TemplateBinding BorderBrush}"
448
449
BorderThickness =" {TemplateBinding BorderThickness}"
449
450
CornerRadius =" {TemplateBinding CornerRadius}"
450
- ClipToBounds =" True " >
451
+ ClipToBounds =" {TemplateBinding ClipToBounds} " >
451
452
<ContentPresenter Content =" {TemplateBinding Content}"
452
453
ContentTemplate =" {TemplateBinding ContentTemplate}"
453
454
TextElement.Foreground=" {TemplateBinding Foreground}"
You can’t perform that action at this time.
0 commit comments