C# Class AcManager.Controls.UserPresetsControl

Inheritance: System.Windows.Controls.Control, IHierarchicalItemPreviewProvider
Show file Open project: gro-ove/actools

Public Properties

Property Type Description
ChangedProperty System.Windows.DependencyProperty
CurrentUserPresetProperty System.Windows.DependencyProperty
OptionSmartChangedHandling bool
PreviewProviderProperty System.Windows.DependencyProperty
PreviewProviderPropertyKey System.Windows.DependencyPropertyKey
SavedPresetsGroupedProperty System.Windows.DependencyProperty
SavedPresetsProperty System.Windows.DependencyProperty
ShowSaveButtonProperty System.Windows.DependencyProperty
UserPresetableProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetPreview ( object item ) : object
GroupPresets ( IEnumerable entries, string mainDirectory ) : IEnumerable
GroupPresets ( string presetableKey ) : IEnumerable
HasInstance ( string key ) : bool
LoadPreset ( string key, string filename ) : bool
LoadSerializedPreset ( [ key, [ serialized ) : bool
OnApplyTemplate ( ) : void
SaveCanExecute ( ) : bool
SaveExecute ( ) : void
SwitchToNext ( ) : void
SwitchToPrevious ( ) : void

Private Methods

Method Description
ComboBox_SelectionChanged ( object sender, SelectedItemChangedEventArgs e ) : void
GetCurrentFilename ( string key ) : string
GetHead ( string filename, string from ) : string
GetInstance ( string key ) : UserPresetsControl
OnCurrentUserPresetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnUserPresetableChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnUserPresetableChanged ( IUserPresetable oldValue, IUserPresetable newValue ) : void
Presetable_Changed ( object sender, EventArgs e ) : void
Presets_Update ( object sender, EventArgs e ) : void
SelectionChanged ( ISavedPresetEntry entry ) : void
SetChanged ( bool value = null ) : void
SwitchTo ( string value ) : void
UpdateSavedPresets ( ) : void
UserPresetsControl ( ) : System
UserPresetsControl_Loaded ( object sender, RoutedEventArgs e ) : void
UserPresetsControl_PresetSaved ( object sender, PresetSavedEventArgs args ) : void
UserPresetsControl_PresetSelected ( object sender, ChangedPresetEventArgs args ) : void
UserPresetsControl_Unloaded ( object sender, RoutedEventArgs e ) : void

Method Details

GetPreview() public method

public GetPreview ( object item ) : object
item object
return object

GroupPresets() public static method

public static GroupPresets ( IEnumerable entries, string mainDirectory ) : IEnumerable
entries IEnumerable
mainDirectory string
return IEnumerable

GroupPresets() public static method

public static GroupPresets ( string presetableKey ) : IEnumerable
presetableKey string
return IEnumerable

HasInstance() public static method

public static HasInstance ( string key ) : bool
key string
return bool

LoadPreset() public static method

public static LoadPreset ( string key, string filename ) : bool
key string
filename string
return bool

LoadSerializedPreset() public static method

public static LoadSerializedPreset ( [ key, [ serialized ) : bool
key [
serialized [
return bool

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

SaveCanExecute() public method

public SaveCanExecute ( ) : bool
return bool

SaveExecute() public method

public SaveExecute ( ) : void
return void

SwitchToNext() public method

public SwitchToNext ( ) : void
return void

SwitchToPrevious() public method

public SwitchToPrevious ( ) : void
return void

Property Details

ChangedProperty public static property

public static DependencyProperty,System.Windows ChangedProperty
return System.Windows.DependencyProperty

CurrentUserPresetProperty public static property

public static DependencyProperty,System.Windows CurrentUserPresetProperty
return System.Windows.DependencyProperty

OptionSmartChangedHandling public static property

public static bool OptionSmartChangedHandling
return bool

PreviewProviderProperty public static property

public static DependencyProperty,System.Windows PreviewProviderProperty
return System.Windows.DependencyProperty

PreviewProviderPropertyKey public static property

public static DependencyPropertyKey,System.Windows PreviewProviderPropertyKey
return System.Windows.DependencyPropertyKey

SavedPresetsGroupedProperty public static property

public static DependencyProperty,System.Windows SavedPresetsGroupedProperty
return System.Windows.DependencyProperty

SavedPresetsProperty public static property

public static DependencyProperty,System.Windows SavedPresetsProperty
return System.Windows.DependencyProperty

ShowSaveButtonProperty public static property

public static DependencyProperty,System.Windows ShowSaveButtonProperty
return System.Windows.DependencyProperty

UserPresetableProperty public static property

public static DependencyProperty,System.Windows UserPresetableProperty
return System.Windows.DependencyProperty