簡體   English   中英

在運行時編輯ControlTemplate

[英]Editing the ControlTemplate at runtime

<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>

在運行時更改BeginDate和EndDate的最佳方法是什么?

您可以使用數據綁定來動態更改它們。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM