C# Class RedBadger.Xpf.UIElement

Inheritance: ReactiveObject, IElement
Mostra file Open project: redbadger/XPF

Public Properties

Property Type Description
DataContextProperty ReactiveProperty
HeightProperty ReactiveProperty
HorizontalAlignmentProperty ReactiveProperty
IsMouseCapturedProperty ReactiveProperty
MarginProperty ReactiveProperty
MaxHeightProperty ReactiveProperty
MaxWidthProperty ReactiveProperty
MinHeightProperty ReactiveProperty
MinWidthProperty ReactiveProperty
VerticalAlignmentProperty ReactiveProperty
WidthProperty ReactiveProperty

Public Methods

Method Description
Arrange ( Rect finalRect ) : void
CaptureMouse ( ) : bool
GetVisualChildren ( ) : IEnumerable
HitTest ( System.Point point ) : bool
InvalidateArrange ( ) : void
InvalidateMeasure ( ) : void
Measure ( Size availableSize ) : void
OnApplyTemplate ( ) : void
ReleaseMouseCapture ( ) : void
TryGetRenderer ( IRenderer &renderer ) : bool
TryGetRootElement ( IRootElement &rootElement ) : bool

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

When overridden in a derived class, positions child elements and determines a size for a UIElement derived class.

GetClippingRect ( Size finalSize ) : Rect
MeasureOverride ( Size availableSize ) : Size

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the UIElement-derived class.

OnNextGesture ( Gesture gesture ) : void
OnRender ( IDrawingContext drawingContext ) : void
UIElement ( ) : System

Private Methods

Method Description
ArrangeCore ( Rect finalRect ) : void

Defines the template for core-level arrange layout definition.

In WPF this method is defined on UIElement as protected virtual and has a base implementation. FrameworkElement (which derrives from UIElement) creates a sealed implemention, similar to the below, which discards UIElement's base implementation.

ComputeAlignmentOffset ( Size clientSize, Size inkSize ) : Vector
DataContextChanged ( IReactiveObject source, ReactivePropertyChangeEventArgs args ) : void
GetNearestDataContext ( ) : object
InvalidateMeasureOnDataContextInheritors ( ) : void
MeasureCore ( Size availableSize ) : Size

Implements basic measure-pass layout system behavior.

In WPF this method is definded on UIElement as protected virtual and returns an empty Size. FrameworkElement (which derrives from UIElement) then creates a sealed implementation similar to the below. In XPF UIElement and FrameworkElement have been collapsed into a single class.

Method Details

Arrange() public method

public Arrange ( Rect finalRect ) : void
finalRect Rect
return void

ArrangeOverride() protected method

When overridden in a derived class, positions child elements and determines a size for a UIElement derived class.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize Size The final area within the parent that this element should use to arrange itself and its children.
return Size

CaptureMouse() public method

public CaptureMouse ( ) : bool
return bool

GetClippingRect() protected method

protected GetClippingRect ( Size finalSize ) : Rect
finalSize Size
return Rect

GetVisualChildren() public method

public GetVisualChildren ( ) : IEnumerable
return IEnumerable

HitTest() public method

public HitTest ( System.Point point ) : bool
point System.Point
return bool

InvalidateArrange() public method

public InvalidateArrange ( ) : void
return void

InvalidateMeasure() public method

public InvalidateMeasure ( ) : void
return void

Measure() public method

public Measure ( Size availableSize ) : void
availableSize Size
return void

MeasureOverride() protected method

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the UIElement-derived class.
protected MeasureOverride ( Size availableSize ) : Size
availableSize Size /// The available size that this element can give to child elements. /// Infinity can be specified as a value to indicate that the element will size to whatever content is available. ///
return Size

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnNextGesture() protected method

protected OnNextGesture ( Gesture gesture ) : void
gesture RedBadger.Xpf.Input.Gesture
return void

OnRender() protected method

protected OnRender ( IDrawingContext drawingContext ) : void
drawingContext IDrawingContext
return void

ReleaseMouseCapture() public method

public ReleaseMouseCapture ( ) : void
return void

TryGetRenderer() public method

public TryGetRenderer ( IRenderer &renderer ) : bool
renderer IRenderer
return bool

TryGetRootElement() public method

public TryGetRootElement ( IRootElement &rootElement ) : bool
rootElement IRootElement
return bool

UIElement() protected method

protected UIElement ( ) : System
return System

Property Details

DataContextProperty public_oe static_oe property

public static ReactiveProperty DataContextProperty
return ReactiveProperty

HeightProperty public_oe static_oe property

public static ReactiveProperty HeightProperty
return ReactiveProperty

HorizontalAlignmentProperty public_oe static_oe property

public static ReactiveProperty HorizontalAlignmentProperty
return ReactiveProperty

IsMouseCapturedProperty public_oe static_oe property

public static ReactiveProperty IsMouseCapturedProperty
return ReactiveProperty

MarginProperty public_oe static_oe property

public static ReactiveProperty MarginProperty
return ReactiveProperty

MaxHeightProperty public_oe static_oe property

public static ReactiveProperty MaxHeightProperty
return ReactiveProperty

MaxWidthProperty public_oe static_oe property

public static ReactiveProperty MaxWidthProperty
return ReactiveProperty

MinHeightProperty public_oe static_oe property

public static ReactiveProperty MinHeightProperty
return ReactiveProperty

MinWidthProperty public_oe static_oe property

public static ReactiveProperty MinWidthProperty
return ReactiveProperty

VerticalAlignmentProperty public_oe static_oe property

public static ReactiveProperty VerticalAlignmentProperty
return ReactiveProperty

WidthProperty public_oe static_oe property

public static ReactiveProperty WidthProperty
return ReactiveProperty