C# Class Fluent.ColorGallery

Inheritance: System.Windows.Controls.Control
Show file Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
ChipHeightProperty System.Windows.DependencyProperty
ChipWidthProperty System.Windows.DependencyProperty
ColumnsProperty System.Windows.DependencyProperty
HighlightColors Color[]
IsAutomaticColorButtonVisibleProperty System.Windows.DependencyProperty
IsMoreColorsButtonVisibleProperty System.Windows.DependencyProperty
IsNoColorButtonVisibleProperty System.Windows.DependencyProperty
IsRecentColorsVisibleProperty System.Windows.DependencyProperty
ModeProperty System.Windows.DependencyProperty
SelectedColorChangedEvent System.Windows.RoutedEvent
SelectedColorProperty System.Windows.DependencyProperty
StandardColorGridRowsProperty System.Windows.DependencyProperty
StandardColors Color[]
StandardGradientsProperty System.Windows.DependencyProperty
StandardThemeColors Color[]
ThemeColorGridRowsProperty System.Windows.DependencyProperty
ThemeColorsSourceProperty System.Windows.DependencyProperty
ThemeGradientsProperty System.Windows.DependencyProperty

Public Methods

Method Description
OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.

RaiseSelectedColorChanged ( ) : void

Raises SelectedColorChanged event

Private Methods

Method Description
CoeceGridRows ( DependencyObject d, object basevalue ) : object
CoerceChipSize ( DependencyObject d, object basevalue ) : object
CoerceColumns ( DependencyObject d, object basevalue ) : object
ColorGallery ( ) : System

Static constructor

ConvertFromWin32Color ( int color ) : Color
Darker ( Color color, double power ) : Color
GenerateStandardGradients ( ) : Color[]
GenerateThemeGradients ( ) : Color[]
GetBrightness ( Color color ) : double

Returns brightness of the given color from 0..1

GetGradient ( Color color, int count ) : Color[]

Makes gradient colors from lighter to darker

Lighter ( Color color, double power ) : Color
OnAutomaticClick ( object sender, RoutedEventArgs e ) : void
OnCoerceStyle ( DependencyObject d, object basevalue ) : object
OnColumnsChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnListBoxSelectedChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
OnModeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnMoreColorsClick ( object sender, RoutedEventArgs e ) : void
OnNoColorClick ( object sender, RoutedEventArgs e ) : void
OnSelectedColorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnStandardColorGridRowsChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnThemeColorGridRowsChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnThemeColorsChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
OnThemeColorsSourceChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
Rebright ( Color color, double newBrightness ) : Color
UpdateGradients ( ) : void
UpdateSelectedColor ( Color color ) : void

Method Details

OnApplyTemplate() public method

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.
public OnApplyTemplate ( ) : void
return void

RaiseSelectedColorChanged() public method

Raises SelectedColorChanged event
public RaiseSelectedColorChanged ( ) : void
return void

Property Details

ChipHeightProperty public static property

Using a DependencyProperty as the backing store for ChipHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ChipHeightProperty
return System.Windows.DependencyProperty

ChipWidthProperty public static property

Using a DependencyProperty as the backing store for ChipWidth. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ChipWidthProperty
return System.Windows.DependencyProperty

ColumnsProperty public static property

Using a DependencyProperty as the backing store for Columns. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ColumnsProperty
return System.Windows.DependencyProperty

HighlightColors public static property

Hightlight colors array
public static Color[] HighlightColors
return Color[]

IsAutomaticColorButtonVisibleProperty public static property

Using a DependencyProperty as the backing store for IsAutomaticColorButtonVisible. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsAutomaticColorButtonVisibleProperty
return System.Windows.DependencyProperty

IsMoreColorsButtonVisibleProperty public static property

Using a DependencyProperty as the backing store for IsMoreColorsButtonVisible. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsMoreColorsButtonVisibleProperty
return System.Windows.DependencyProperty

IsNoColorButtonVisibleProperty public static property

Using a DependencyProperty as the backing store for IsNoColorButtonVisible. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsNoColorButtonVisibleProperty
return System.Windows.DependencyProperty

IsRecentColorsVisibleProperty public static property

Using a DependencyProperty as the backing store for IsRecentColorsVisible. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsRecentColorsVisibleProperty
return System.Windows.DependencyProperty

ModeProperty public static property

Using a DependencyProperty as the backing store for Mode. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ModeProperty
return System.Windows.DependencyProperty

SelectedColorChangedEvent public static property

Identifies the SelectedColorChanged routed event.
public static RoutedEvent,System.Windows SelectedColorChangedEvent
return System.Windows.RoutedEvent

SelectedColorProperty public static property

Using a DependencyProperty as the backing store for SelectedColor. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows SelectedColorProperty
return System.Windows.DependencyProperty

StandardColorGridRowsProperty public static property

Using a DependencyProperty as the backing store for StandardColorGridRows. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows StandardColorGridRowsProperty
return System.Windows.DependencyProperty

StandardColors public static property

Standard colors array
public static Color[] StandardColors
return Color[]

StandardGradientsProperty public static property

Using a DependencyProperty as the backing store for ThemeGradients. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows StandardGradientsProperty
return System.Windows.DependencyProperty

StandardThemeColors public static property

Standard colors array in ThemeColor mode
public static Color[] StandardThemeColors
return Color[]

ThemeColorGridRowsProperty public static property

Using a DependencyProperty as the backing store for ThemeColorGridRows. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ThemeColorGridRowsProperty
return System.Windows.DependencyProperty

ThemeColorsSourceProperty public static property

Using a DependencyProperty as the backing store for ThemeColorsSource. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ThemeColorsSourceProperty
return System.Windows.DependencyProperty

ThemeGradientsProperty public static property

Using a DependencyProperty as the backing store for ThemeGradients. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ThemeGradientsProperty
return System.Windows.DependencyProperty