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 void SetCommandParameter(GridDataControl control, object parameter) { control.SetValue(CommandParameterProperty, parameter); }
public static void SetCommand(GridDataControl control, ICommand command) { control.SetValue(CommandProperty, command); }