private static GridItemsSourceChangedBehavior GetOrCreateBehavior(GridDataControl control) { GridItemsSourceChangedBehavior behavior = control.GetValue(GridItemsSourceChangedBehaviorProperty) as GridItemsSourceChangedBehavior; if (behavior == null) { behavior = new GridItemsSourceChangedBehavior(control); control.SetValue(GridItemsSourceChangedBehaviorProperty, behavior); } return(behavior); }
private static GridQueryCellStyleInfoBehavior GetOrCreateBehavior(GridDataControl control) { GridQueryCellStyleInfoBehavior behavior = control.GetValue(GridQueryCellStyleInfoBehaviorProperty) as GridQueryCellStyleInfoBehavior; if (behavior == null) { behavior = new GridQueryCellStyleInfoBehavior(control); control.SetValue(GridQueryCellStyleInfoBehaviorProperty, behavior); } return(behavior); }
public static object GetCommandParameter(GridDataControl control) { return(control.GetValue(CommandParameterProperty)); }
public static ICommand GetCommand(GridDataControl control) { return(control.GetValue(CommandProperty) as ICommand); }