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);
        }
Esempio n. 2
0
 public static void SetImageConverter(GalleryItemGroup source, object value)
 {
     source.SetValue(ImageConverterProperty, value);
 }
Esempio n. 3
0
 public static void SetDataSource(GalleryItemGroup source, object value)
 {
     source.SetValue(DataSourceProperty, value);
 }
Esempio n. 4
0
 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);
 }