开发者

Editing the ControlTemplate at runtime

开发者 https://www.devze.com 2022-12-14 11:32 出处:网络
<ListBox.Template> <ControlTemplate TargetType=\"{x:Type ListBox}\"> <blendables:TimelinePanel IsItemsHost=\"True\"
<ListBox.Template>
    <ControlTemplate TargetType="{x:Type ListBox}">
        <blendables:TimelinePanel IsItemsHost="True" 
            UnitSize="{StaticResource unitSize}" 
            UnitTimeSpan="1"
 开发者_如何学编程           BeginDate="1/1/2009"
            EndDate="12/31/2009" 
            />
     </ControlTemplate>
</ListBox.Template>

What is the best way of being able to change BeginDate and EndDate at runtime?


You can use data binding to change them dynamically.

0

精彩评论

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

关注公众号