Sorry if title is weird , because the problem itself is kinda weird.
I have a TextBlock and Slider Control on Clientside.
The Slider is {Binding} to Textblock.
This is the code for them -
<TextBlock Text="{Binding Value}" x:Name="Name1Value" FontSize="25"/>
<Slider ValueChanged="slider_ValueChanged_1" x:Name="slidervalve" Value= "{Binding ElementName=Name1Value,Path=Text}" StepFrequency="25" />
Now when Slider Value changes,Slider calls a method slider_ValueChanged_1,which sends its value to server. The server accepts the value and sends the new value back to client and this new value from server is set to the textblock( x:Name="Name1Value") through an observablecollection with inotifypropertychanged implemented. The slider is {Binding} to textblock.
1)Now the first time i change the value on slider on client, the server accepts the new value and returns the new value and i am setting the new value to textblock. 2)Now i am changing the value on server and the value is correctly updated in textblock and then the slider value changes to textblock value.
3) now after this first cycle,if i change the value on server again ,the textblock on client is getting updated but the slider does not change to textblock value.
But the slider is bound to textblock. How can i solve this?
Edit1: FYI , the textblock and the slider are in same page but in different stackpanels