[英]Styling the Extended Toolkit BusyIndicator
I'm looking to style the BusyIndicator
so it looks something along the lines of this; 我正在寻找
BusyIndicator
样式,所以它看起来像这样;
At the moment my busy indicator does not take up the whole Window
that it is placed in too, which I would like it to do. 目前,我的繁忙指示器并没有占据它所放置的整个
Window
,我希望它能做到。 My current BusyIndicator
looks like this; 我目前的
BusyIndicator
看起来像这样;
Has anybody had success with styling the BusyIndicator
? 有没有人成功设计
BusyIndicator
? I've had a look at the example on the Extended Toolkit website however it does not result in what I would like the indicator to look like. 我已经看过Extended Toolkit网站上的示例,但它并没有导致我希望指标看起来像什么。
This is a part of BusyIndicator
's control template: 这是
BusyIndicator
控件模板的一部分:
<ContentPresenter x:Name="busycontent">
<ContentPresenter.Content>
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
busycontent
element is a rectangular region, which holds "Please wait" (default BusyContent
) and progress bar. busycontent
元素是一个矩形区域,它保存“Please wait”(默认BusyContent
)和进度条。 As you can see, alignment values for Grid
are hard-coded and they make grid to be centered. 如您所见,
Grid
对齐值是硬编码的,它们使网格居中。
You have two options: 您有两种选择:
BusyIndicator
(since it is based on overlays concept, it is not so complex task). BusyIndicator
(因为它基于叠加概念,它不是那么复杂的任务)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.