ToolBarTray与ToolBarPanel的区别
ToolBarTray 類:表示處理ToolBar 的布局的容器。用于ToolBar控件模板之中。
e.g.
<ToolBarTray>
<ToolBar>
<Button/>
<Button/>
</ToolBar>
</ToolBarTray>
ToolBarPanel 類:在ToolBar中排列ToolBar項。
e.g.
<Style x:key="MainToolBar" TargetType="{x:Type ToolBar}">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToolBar}">
<Border>
<ToolBarPanel IsItemHost="True" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
轉載于:https://www.cnblogs.com/chikenonachain/p/4843754.html
總結
以上是生活随笔為你收集整理的ToolBarTray与ToolBarPanel的区别的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于项目中的日期提交
- 下一篇: 本学期阅读计划