C# Class FarsiLibrary.WPF.Controls.Decorators.ButtonChrome

Inheritance: System.Windows.Controls.Decorator
Afficher le fichier Open project: HEskandari/FarsiLibrary Class Usage Examples

Méthodes publiques

Свойство Type Description
BackgroundProperty System.Windows.DependencyProperty
BorderBrushProperty System.Windows.DependencyProperty
RenderDefaultedProperty System.Windows.DependencyProperty
RenderMouseOverProperty System.Windows.DependencyProperty
RenderPressedProperty System.Windows.DependencyProperty
RoundCornersProperty System.Windows.DependencyProperty

Méthodes protégées

Méthode Description
ArrangeOverride ( Size finalSize ) : Size
CreateFrozenBrush ( System.Windows.Media.GradientStop stops, Point start, Point end ) : System.Windows.Media.LinearGradientBrush
CreateFrozenBrush ( GradientStopCollection stops, Point start, Point end ) : System.Windows.Media.LinearGradientBrush
CreateFrozenBrush ( GradientStopCollection stops, double radX, double radY, Point center, Point origin ) : System.Windows.Media.RadialGradientBrush
CreateFrozenBrush ( Color color ) : SolidColorBrush
CreateFrozenPen ( System.Windows.Media.Brush brush, double thickness ) : System.Windows.Media.Pen
CreateFrozenPen ( Color color, double thickness ) : System.Windows.Media.Pen
CreateFrozenPen ( System.Windows.Media.GradientStop stops, Point start, Point end, double thickness ) : System.Windows.Media.Pen
CreateFrozenPen ( GradientStopCollection stops, Point start, Point end, double thickness ) : System.Windows.Media.Pen
DrawBackground ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
DrawBorder ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
DrawDropShadows ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
DrawInnerBorder ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
DrawInnerHighlight ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
DrawShades ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
MeasureOverride ( Size availableSize ) : Size
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
OnRenderDefaultedChanged ( ButtonChrome chrome, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnRenderMouseOverChanged ( ButtonChrome chrome, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnRenderPressedChanged ( ButtonChrome chrome, System.Windows.DependencyPropertyChangedEventArgs args ) : void

Private Methods

Méthode Description
ButtonChrome ( ) : System
RenderDefaultedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RenderMouseOverChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RenderPressedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

ArrangeOverride() protected méthode

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
Résultat System.Windows.Size

CreateFrozenBrush() protected static méthode

protected static CreateFrozenBrush ( System.Windows.Media.GradientStop stops, Point start, Point end ) : System.Windows.Media.LinearGradientBrush
stops System.Windows.Media.GradientStop
start Point
end Point
Résultat System.Windows.Media.LinearGradientBrush

CreateFrozenBrush() protected static méthode

protected static CreateFrozenBrush ( GradientStopCollection stops, Point start, Point end ) : System.Windows.Media.LinearGradientBrush
stops GradientStopCollection
start Point
end Point
Résultat System.Windows.Media.LinearGradientBrush

CreateFrozenBrush() protected static méthode

protected static CreateFrozenBrush ( GradientStopCollection stops, double radX, double radY, Point center, Point origin ) : System.Windows.Media.RadialGradientBrush
stops GradientStopCollection
radX double
radY double
center Point
origin Point
Résultat System.Windows.Media.RadialGradientBrush

CreateFrozenBrush() protected static méthode

protected static CreateFrozenBrush ( Color color ) : SolidColorBrush
color Color
Résultat System.Windows.Media.SolidColorBrush

CreateFrozenPen() protected static méthode

protected static CreateFrozenPen ( System.Windows.Media.Brush brush, double thickness ) : System.Windows.Media.Pen
brush System.Windows.Media.Brush
thickness double
Résultat System.Windows.Media.Pen

CreateFrozenPen() protected static méthode

protected static CreateFrozenPen ( Color color, double thickness ) : System.Windows.Media.Pen
color Color
thickness double
Résultat System.Windows.Media.Pen

CreateFrozenPen() protected static méthode

protected static CreateFrozenPen ( System.Windows.Media.GradientStop stops, Point start, Point end, double thickness ) : System.Windows.Media.Pen
stops System.Windows.Media.GradientStop
start Point
end Point
thickness double
Résultat System.Windows.Media.Pen

CreateFrozenPen() protected static méthode

protected static CreateFrozenPen ( GradientStopCollection stops, Point start, Point end, double thickness ) : System.Windows.Media.Pen
stops GradientStopCollection
start Point
end Point
thickness double
Résultat System.Windows.Media.Pen

DrawBackground() protected méthode

protected DrawBackground ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
Résultat void

DrawBorder() protected méthode

protected DrawBorder ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
Résultat void

DrawDropShadows() protected méthode

protected DrawDropShadows ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
Résultat void

DrawInnerBorder() protected méthode

protected DrawInnerBorder ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
Résultat void

DrawInnerHighlight() protected méthode

protected DrawInnerHighlight ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
Résultat void

DrawShades() protected méthode

protected DrawShades ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
Résultat void

MeasureOverride() protected méthode

protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
Résultat System.Windows.Size

OnRender() protected méthode

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
Résultat void

OnRenderDefaultedChanged() protected méthode

protected OnRenderDefaultedChanged ( ButtonChrome chrome, System.Windows.DependencyPropertyChangedEventArgs args ) : void
chrome ButtonChrome
args System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnRenderMouseOverChanged() protected méthode

protected OnRenderMouseOverChanged ( ButtonChrome chrome, System.Windows.DependencyPropertyChangedEventArgs args ) : void
chrome ButtonChrome
args System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnRenderPressedChanged() protected méthode

protected OnRenderPressedChanged ( ButtonChrome chrome, System.Windows.DependencyPropertyChangedEventArgs args ) : void
chrome ButtonChrome
args System.Windows.DependencyPropertyChangedEventArgs
Résultat void

Property Details

BackgroundProperty public_oe static_oe property

public static DependencyProperty,System.Windows BackgroundProperty
Résultat System.Windows.DependencyProperty

BorderBrushProperty public_oe static_oe property

public static DependencyProperty,System.Windows BorderBrushProperty
Résultat System.Windows.DependencyProperty

RenderDefaultedProperty public_oe static_oe property

public static DependencyProperty,System.Windows RenderDefaultedProperty
Résultat System.Windows.DependencyProperty

RenderMouseOverProperty public_oe static_oe property

public static DependencyProperty,System.Windows RenderMouseOverProperty
Résultat System.Windows.DependencyProperty

RenderPressedProperty public_oe static_oe property

public static DependencyProperty,System.Windows RenderPressedProperty
Résultat System.Windows.DependencyProperty

RoundCornersProperty public_oe static_oe property

public static DependencyProperty,System.Windows RoundCornersProperty
Résultat System.Windows.DependencyProperty