我的UserControl中有DependencyProperty
-
public static readonly DependencyProperty ColumnConfigDataProperty =
DependencyProperty.Register("ColumnConfigData", typeof(string), typeof(MyUserControl), new PropertyMetadata("", new PropertyChangedCallback(OnColumnConfigChanged)));
public string ColumnConfigData
{
get{ return (string)GetValue(ColumnConfigDataProperty);}
set { SetValue(ColumnConfigDataProperty, value); }
}
当客户端应用程序(使用我的UserControl)尝试访问DependencyProperty时,我想用新值更新DependencyProperty。我没有得到如何订阅DependencyProperty的GetValue
。