【问题标题】:Styling the Extended Toolkit BusyIndicator设置扩展工具包 BusyIndi​​cator 的样式
【发布时间】:2016-03-22 09:20:11
【问题描述】:

我正在寻找BusyIndicator 的样式,使其看起来与此类似;

目前,我的繁忙指示器并没有占用它所在的整个Window,我希望它这样做。我现在的BusyIndicator 是这样的;

有人成功设计了BusyIndicator 的样式吗?我查看了 Extended Toolkit 网站上的示例,但它并没有得到我希望指标的样子。

【问题讨论】:

标签: c# wpf busyindicator wpf-extended-toolkit


【解决方案1】:

这是BusyIndicator的控制模板的一部分:

<ContentPresenter x:Name="busycontent">
                     <ContentPresenter.Content>
                        <Grid HorizontalAlignment="Center" VerticalAlignment="Center">

busycontent 元素是一个矩形区域,其中包含“请稍候”(默认为BusyContent)和进度条。如您所见,Grid 的对齐值是硬编码的,它们使网格居中。

你有两个选择:

  • 应用您自己的控制模板(您可以基于 Xceed 的模板);
  • 制作你自己的BusyIndicator(因为它是基于叠加的概念,所以不是那么复杂的任务)。

【讨论】:

    猜你喜欢
    • 2012-11-16
    • 2016-07-13
    • 1970-01-01
    • 1970-01-01
    • 2011-09-17
    • 2011-03-15
    • 1970-01-01
    • 2013-05-19
    • 1970-01-01
    相关资源
    最近更新 更多