Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

wpf binding to static property in code behind

var propertyInfo = typeof(ShellWindow).GetProperty("ProgressbarVisibility");
var propertyPath = new PropertyPath("(0)", propertyInfo);
var binding = new Binding() { Path = propertyPath, Mode = BindingMode.TwoWay };
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #wpf #binding #static #property #code
ADD COMMENT
Topic
Name
9+2 =