private static GalleryItemSelectedCommandBehavior GetOrCreateBehavior(GalleryItemGroup menuItem) { GalleryItemSelectedCommandBehavior behavior = menuItem.GetValue(SelectedCommandBehaviorProperty) as GalleryItemSelectedCommandBehavior; if (behavior == null) { behavior = new GalleryItemSelectedCommandBehavior(menuItem); menuItem.SetValue(SelectedCommandBehaviorProperty, behavior); } return(behavior); }
public static void SetImageConverter(GalleryItemGroup source, object value) { source.SetValue(ImageConverterProperty, value); }
public static void SetDataSource(GalleryItemGroup source, object value) { source.SetValue(DataSourceProperty, value); }
public static void SetGroupKeys(GalleryItemGroup source, object value) { source.SetValue(GroupKeysProperty, value); }
public static void SetCommandParameter(GalleryItemGroup menuItem, object parameter) { menuItem.SetValue(CommandParameterProperty, parameter); }
public static void SetCommand(GalleryItemGroup menuItem, ICommand command) { menuItem.SetValue(CommandProperty, command); }