开发者

Why would one set the Style property of a control to a template binding referring to just another style?

Why would one set the Style property of a control to a template binding referring to just another style?

I saw the following in a Silverlight book:

<charting_primitives:EdgePanel x:Name="ChartArea" Style="{TemplateBinding ChartAreaStyle}">
   <Grid Style="{TemplateBinding PlotAreaStyle}" />
</charting_primitives:EdgePanel&开发者_如何学Gogt;


The style could contain properties that need to be set in both the EdgePanel and the Grid. For example, perhaps both should have a border and a margin of 20

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜