c# - WPF Binding Int32 Value to Duration Property (DataTime.Seconds) -
i want visualize cool-down timer using progressbar , thought of solving using storyboard , each time datacontext refreshes should trigger animation (cooling down).
i'm wondering if there way bind property, int32
value duration
property of animation.
the duration property represents datetime value. need bind integer value seconds of duration. there way without converting int datetime? if there other suggestions of realizing cool-down thing i'm glad hear it!
<doubleanimation storyboard.targetname="timetoupdatebar" storyboard.targetproperty="value" from="100" to="0" duration="{binding mydatacontext.myintvalueinseconds}" repeatbehavior="1x"/>
thanks in anticipation
without converter, impossible.
Comments
Post a Comment