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

Inheritance: System.Windows.Controls.Decorator
显示文件 Open project: HEskandari/FarsiLibrary Class Usage Examples

Public Properties

Property 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

Protected Methods

Method 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

Method 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 method

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

CreateFrozenBrush() protected static method

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
return System.Windows.Media.LinearGradientBrush

CreateFrozenBrush() protected static method

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

CreateFrozenBrush() protected static method

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
return System.Windows.Media.RadialGradientBrush

CreateFrozenBrush() protected static method

protected static CreateFrozenBrush ( Color color ) : SolidColorBrush
color Color
return System.Windows.Media.SolidColorBrush

CreateFrozenPen() protected static method

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

CreateFrozenPen() protected static method

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

CreateFrozenPen() protected static method

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
return System.Windows.Media.Pen

CreateFrozenPen() protected static method

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

DrawBackground() protected method

protected DrawBackground ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
return void

DrawBorder() protected method

protected DrawBorder ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
return void

DrawDropShadows() protected method

protected DrawDropShadows ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
return void

DrawInnerBorder() protected method

protected DrawInnerBorder ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
return void

DrawInnerHighlight() protected method

protected DrawInnerHighlight ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
return void

DrawShades() protected method

protected DrawShades ( System.Windows.Media.DrawingContext drawingContext, Rect bounds ) : void
drawingContext System.Windows.Media.DrawingContext
bounds System.Windows.Rect
return void

MeasureOverride() protected method

protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
return System.Windows.Size

OnRender() protected method

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
return void

OnRenderDefaultedChanged() protected method

protected OnRenderDefaultedChanged ( ButtonChrome chrome, System.Windows.DependencyPropertyChangedEventArgs args ) : void
chrome ButtonChrome
args System.Windows.DependencyPropertyChangedEventArgs
return void

OnRenderMouseOverChanged() protected method

protected OnRenderMouseOverChanged ( ButtonChrome chrome, System.Windows.DependencyPropertyChangedEventArgs args ) : void
chrome ButtonChrome
args System.Windows.DependencyPropertyChangedEventArgs
return void

OnRenderPressedChanged() protected method

protected OnRenderPressedChanged ( ButtonChrome chrome, System.Windows.DependencyPropertyChangedEventArgs args ) : void
chrome ButtonChrome
args System.Windows.DependencyPropertyChangedEventArgs
return void

Property Details

BackgroundProperty public_oe static_oe property

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

BorderBrushProperty public_oe static_oe property

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

RenderDefaultedProperty public_oe static_oe property

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

RenderMouseOverProperty public_oe static_oe property

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

RenderPressedProperty public_oe static_oe property

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

RoundCornersProperty public_oe static_oe property

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