Data Binding WPF Property to Variable
I have a project in WPF 4 and VB.net 2010. I want to bind the volume property of a mediaelement to a variable in another module. Mind you, the variable is in the correct data type, so no conversion is necessary. How do I do this? First, make sure that your code behind implements INotifyPropertyChanged. Example here: http://www.codekeep.net/snippets/4c7ed2e5-7e3b-40b4-b976-d54b54d9bf5b.aspx All that is is a way to notify the UI that value for the Volume has changed and it needs to grab the new value on the binding. The second thing is you'll need to somehow access the variable from the other