djskinner
djskinner

Reputation: 8125

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?

Upvotes: 0

Views: 183

Answers (1)

Klaus Byskov Pedersen
Klaus Byskov Pedersen

Reputation: 121057

You can use data binding to change them dynamically.

Upvotes: 2

Related Questions