C# Class Fluent.ColorGallery

Inheritance: System.Windows.Controls.Control
Afficher le fichier Open project: Gainedge/BetterExplorer Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

RaiseSelectedColorChanged() public méthode

Raises SelectedColorChanged event
public RaiseSelectedColorChanged ( ) : void
Résultat void

Property Details

ChipHeightProperty public_oe static_oe property

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

ChipWidthProperty public_oe static_oe property

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

ColumnsProperty public_oe static_oe property

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

HighlightColors public_oe static_oe property

Hightlight colors array
public static Color[] HighlightColors
Résultat Color[]

IsAutomaticColorButtonVisibleProperty public_oe static_oe property

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

IsMoreColorsButtonVisibleProperty public_oe static_oe property

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

IsNoColorButtonVisibleProperty public_oe static_oe property

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

IsRecentColorsVisibleProperty public_oe static_oe property

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

ModeProperty public_oe static_oe property

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

SelectedColorChangedEvent public_oe static_oe property

Identifies the SelectedColorChanged routed event.
public static RoutedEvent,System.Windows SelectedColorChangedEvent
Résultat System.Windows.RoutedEvent

SelectedColorProperty public_oe static_oe property

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

StandardColorGridRowsProperty public_oe static_oe property

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

StandardColors public_oe static_oe property

Standard colors array
public static Color[] StandardColors
Résultat Color[]

StandardGradientsProperty public_oe static_oe property

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

StandardThemeColors public_oe static_oe property

Standard colors array in ThemeColor mode
public static Color[] StandardThemeColors
Résultat Color[]

ThemeColorGridRowsProperty public_oe static_oe property

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

ThemeColorsSourceProperty public_oe static_oe property

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

ThemeGradientsProperty public_oe static_oe property

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