C# Class X.UI.EffectLayer.EffectLayer

Inheritance: Windows.UI.Xaml.Controls.Control
Show file Open project: liquidboy/X

Public Properties

Property Type Description
GlowAmountProperty Windows.UI.Xaml.DependencyProperty
GlowColorProperty Windows.UI.Xaml.DependencyProperty
GlowFillProperty Windows.UI.Xaml.DependencyProperty
ShowGlowAreaProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Property Type Description
DoEffect void
DoPathEffect void
DoStreamsEffect void
DoUIElementsEffect void
EffectLayer_Loaded void
EffectLayer_Unloaded void
InitBkgLayer void
OnDraw void
OnPropertyChanged void

Public Methods

Method Description
Dispose ( ) : void
DrawPath ( string path ) : void
DrawStreams ( IRandomAccessStream stream, int index ) : void
DrawUIElements ( UIElement elm, int index = -1, double offsetX, double offsetY ) : void
EffectLayer ( ) : Microsoft.Graphics.Canvas
GetUIElementBitmapPixels ( UIElement element, double offsetX, double offsetY ) : Task>
InitLayer ( double canvasWidth, double canvasHeight, double offsetX, double offsetY, EffectGraphType graphType = EffectGraphType.Shadow ) : void

Protected Methods

Method Description
OnApplyTemplate ( ) : void

Private Methods

Method Description
DoEffect ( Microsoft.Graphics.Canvas.CanvasDrawingSession ds, Size size, float amount, Windows glowColor, Windows fillColor, double expandAmount ) : void
DoPathEffect ( CanvasControl sender, Microsoft.Graphics.Canvas.CanvasDrawingSession ds ) : void
DoStreamsEffect ( CanvasControl sender, Microsoft.Graphics.Canvas.CanvasDrawingSession ds ) : void
DoUIElementsEffect ( CanvasControl sender, Microsoft.Graphics.Canvas.CanvasDrawingSession ds ) : void
EffectLayer_Loaded ( object sender, RoutedEventArgs e ) : void
EffectLayer_Unloaded ( object sender, RoutedEventArgs e ) : void
InitBkgLayer ( double offsetX, double offsetY ) : void
OnDraw ( CanvasControl sender, CanvasDrawEventArgs args ) : void
OnPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

DrawPath() public method

public DrawPath ( string path ) : void
path string
return void

DrawStreams() public method

public DrawStreams ( IRandomAccessStream stream, int index ) : void
stream IRandomAccessStream
index int
return void

DrawUIElements() public method

public DrawUIElements ( UIElement elm, int index = -1, double offsetX, double offsetY ) : void
elm Windows.UI.Xaml.UIElement
index int
offsetX double
offsetY double
return void

EffectLayer() public method

public EffectLayer ( ) : Microsoft.Graphics.Canvas
return Microsoft.Graphics.Canvas

GetUIElementBitmapPixels() public method

public GetUIElementBitmapPixels ( UIElement element, double offsetX, double offsetY ) : Task>
element Windows.UI.Xaml.UIElement
offsetX double
offsetY double
return Task>

InitLayer() public method

public InitLayer ( double canvasWidth, double canvasHeight, double offsetX, double offsetY, EffectGraphType graphType = EffectGraphType.Shadow ) : void
canvasWidth double
canvasHeight double
offsetX double
offsetY double
graphType EffectGraphType
return void

OnApplyTemplate() protected method

protected OnApplyTemplate ( ) : void
return void

Property Details

GlowAmountProperty public static property

public static DependencyProperty,Windows.UI.Xaml GlowAmountProperty
return Windows.UI.Xaml.DependencyProperty

GlowColorProperty public static property

public static DependencyProperty,Windows.UI.Xaml GlowColorProperty
return Windows.UI.Xaml.DependencyProperty

GlowFillProperty public static property

public static DependencyProperty,Windows.UI.Xaml GlowFillProperty
return Windows.UI.Xaml.DependencyProperty

ShowGlowAreaProperty public static property

public static DependencyProperty,Windows.UI.Xaml ShowGlowAreaProperty
return Windows.UI.Xaml.DependencyProperty