Hello, verry simple example. Just a slider, a label for visualization of my property and three properties in the code behind. The properties all implement iNotifyPropChanged.
<StackPanel Orientation="Vertical"> <ig:XamDateTimeSlider MaxValue="{Binding MaxDate}" MinValue="{Binding MinDate}" Value="{Binding ThisDate}" /> <Label Content="{Binding ThisDate}" /></StackPanel>
This does NOT write the Value back to my "Today" Property. The Min and May Dates are set properly.
If i try this
<ig:XamDateTimeSlider MaxValue="{Binding MaxDate}" MinValue="{Binding MinDate}" > <ig:XamDateTimeSlider.Thumb> <ig:XamSliderDateTimeThumb Value="{Binding ThisDate}" /> </ig:XamDateTimeSlider.Thumb></ig:XamDateTimeSlider>
it does not work either. If i have a look into the thumbs value using the debugger, i can see that the value is changed. However, neither the slider nor the thumb seems to write back to the property :(
Hello Martin,
Thank you for your post. I have been looking into it and I can suggest you see set the Mode of the Value’s Binding to TwoWay like this:
Value="{Binding Path=ThisDate,Mode=TwoWay}"
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Works. I thought, twoway bindung was the default? Thanks anyway.