C# 클래스 Fluent.ColorGallery

상속: System.Windows.Controls.Control
파일 보기 프로젝트 열기: Gainedge/BetterExplorer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

OnApplyTemplate() 공개 메소드

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

RaiseSelectedColorChanged() 공개 메소드

Raises SelectedColorChanged event
public RaiseSelectedColorChanged ( ) : void
리턴 void

프로퍼티 상세

ChipHeightProperty 공개적으로 정적으로 프로퍼티

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

ChipWidthProperty 공개적으로 정적으로 프로퍼티

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

ColumnsProperty 공개적으로 정적으로 프로퍼티

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

HighlightColors 공개적으로 정적으로 프로퍼티

Hightlight colors array
public static Color[] HighlightColors
리턴 Color[]

IsAutomaticColorButtonVisibleProperty 공개적으로 정적으로 프로퍼티

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

IsMoreColorsButtonVisibleProperty 공개적으로 정적으로 프로퍼티

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

IsNoColorButtonVisibleProperty 공개적으로 정적으로 프로퍼티

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

IsRecentColorsVisibleProperty 공개적으로 정적으로 프로퍼티

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

ModeProperty 공개적으로 정적으로 프로퍼티

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

SelectedColorChangedEvent 공개적으로 정적으로 프로퍼티

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

SelectedColorProperty 공개적으로 정적으로 프로퍼티

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

StandardColorGridRowsProperty 공개적으로 정적으로 프로퍼티

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

StandardColors 공개적으로 정적으로 프로퍼티

Standard colors array
public static Color[] StandardColors
리턴 Color[]

StandardGradientsProperty 공개적으로 정적으로 프로퍼티

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

StandardThemeColors 공개적으로 정적으로 프로퍼티

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

ThemeColorGridRowsProperty 공개적으로 정적으로 프로퍼티

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

ThemeColorsSourceProperty 공개적으로 정적으로 프로퍼티

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

ThemeGradientsProperty 공개적으로 정적으로 프로퍼티

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