📜  wpf 绑定到后台代码中的静态属性 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:04.578000             🧑  作者: Mango

代码示例1
var propertyInfo = typeof(ShellWindow).GetProperty("ProgressbarVisibility");
var propertyPath = new PropertyPath("(0)", propertyInfo);
var binding = new Binding() { Path = propertyPath, Mode = BindingMode.TwoWay };