首页 > 其他 > 详细

ToolBarTray与ToolBarPanel的区别

时间:2015-09-28 13:14:50      阅读:3001      评论:0      收藏:0      [点我收藏+]

ToolBarPanel 类:ToolBar中排列ToolBar项。

e.g.

<ToolBarTray>

  <ToolBar>

    <Button/>

    <Button/>

  </ToolBar>

</ToolBarTray>

ToolBarTray 类:表示处理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>

ToolBarTray与ToolBarPanel的区别

原文:http://www.cnblogs.com/chikenonachain/p/4843754.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!