예제 #1
0
        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);
        }
예제 #2
0
 public static void SetImageConverter(GalleryItemGroup source, object value)
 {
     source.SetValue(ImageConverterProperty, value);
 }
예제 #3
0
 public static void SetDataSource(GalleryItemGroup source, object value)
 {
     source.SetValue(DataSourceProperty, value);
 }
예제 #4
0
 public static void SetGroupKeys(GalleryItemGroup source, object value)
 {
     source.SetValue(GroupKeysProperty, value);
 }
예제 #5
0
 public static void SetCommandParameter(GalleryItemGroup menuItem, object parameter)
 {
     menuItem.SetValue(CommandParameterProperty, parameter);
 }
예제 #6
0
 public static void SetCommand(GalleryItemGroup menuItem, ICommand command)
 {
     menuItem.SetValue(CommandProperty, command);
 }