private static void OnStateChangeCallBack(DependencyObject sender, DependencyPropertyChangedEventArgs e) { System.Data.Entity.EntityState s = (System.Data.Entity.EntityState)e.NewValue; toolBar toolBar = sender as toolBar; toolBar.OnStatePropertyChanged(s); }
private static void OnStatusChangeCallBack(DependencyObject sender, DependencyPropertyChangedEventArgs e) { string s = (string)e.NewValue; toolBar toolBar = sender as toolBar; toolBar.OnStatusPropertyChanged(s); }