Bindig item dans context neu à un slider dans mainwindow en VB.NET fonctionne mais pas en XAML
Bonjour
J'ai placé un slider SldVol dans l'item d'un contextmenu (pour régler un volume sonore). Je veux effectuer un binding avec un slider Sp sur la mainwindow
par code
Code:
1 2 3 4 5
| Dim BindNameSldVolDtmots As New Binding()
BindNameSldVolDtmots.Source = Sp
BindNameSldVolDtmots.Mode = BindingMode.TwoWay
BindNameSldVolDtmots.Path = New PropertyPath("Value")
SldVol.SetBinding(Slider.ValueProperty, BindNameSldVolDtmots) |
Le binding par code fonctionne bien !!!
Je n'arrive pas à traduire en XAML ce code .J'ai essayé beaucoup de solution mais pas de binding!
ElementNAme...Value ... etc . . J'utilise VS2010 et FW4
Merci