File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 51
51
</MenuItem >
52
52
</Menu >
53
53
<ToolBarTray DockPanel.Dock=" Top" >
54
- <ToolBar Style =" {DynamicResource MaterialDesignToolBar}" >
54
+ <ToolBar Style =" {DynamicResource MaterialDesignToolBar}" ClipToBounds = " False " >
55
55
<Button ToolTip =" Follow me on Twitter" Click =" TwitterButton_OnClick" >
56
56
<materialDesign : PackIcon Kind =" TwitterBox" />
57
57
</Button >
69
69
<Button Command =" Paste" ToolTip =" Paste some stuff" ToolBar.OverflowMode=" AsNeeded" >
70
70
<materialDesign : PackIcon Kind =" ContentPaste" />
71
71
</Button >
72
+ <!-- when badging in a toolbar, make sure the parent ToolBar.ClipToBounds="False", and
73
+ manually apply the button style -->
74
+ <materialDesign : Badged ToolBar.OverflowMode=" AsNeeded" Badge =" {materialDesign:PackIcon Alert}" >
75
+ <Button ToolTip =" Badge it up!" Style =" {StaticResource {x:Static ToolBar.ButtonStyleKey}}" >
76
+ <materialDesign : PackIcon Kind =" AirplaneTakeoff" />
77
+ </Button >
78
+ </materialDesign : Badged >
72
79
<Separator />
73
80
<ListBox >
74
81
<ListBoxItem ToolTip =" This is a lonley toggle with TextBlock instead of icon" >
You can’t perform that action at this time.
0 commit comments