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>
What is the best way of being able to change BeginDate and EndDate at runtime?
You can use data binding to change them dynamically.
精彩评论