C# Class RedBadger.Xpf.UIElement

Inheritance: ReactiveObject, IElement
Afficher le fichier Open project: redbadger/XPF

Méthodes publiques

Свойство Type Description
DataContextProperty ReactiveProperty
HeightProperty ReactiveProperty
HorizontalAlignmentProperty ReactiveProperty
IsMouseCapturedProperty ReactiveProperty
MarginProperty ReactiveProperty
MaxHeightProperty ReactiveProperty
MaxWidthProperty ReactiveProperty
MinHeightProperty ReactiveProperty
MinWidthProperty ReactiveProperty
VerticalAlignmentProperty ReactiveProperty
WidthProperty ReactiveProperty

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public Arrange ( Rect finalRect ) : void
finalRect Rect
Résultat void

ArrangeOverride() protected méthode

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.
Résultat Size

CaptureMouse() public méthode

public CaptureMouse ( ) : bool
Résultat bool

GetClippingRect() protected méthode

protected GetClippingRect ( Size finalSize ) : Rect
finalSize Size
Résultat Rect

GetVisualChildren() public méthode

public GetVisualChildren ( ) : IEnumerable
Résultat IEnumerable

HitTest() public méthode

public HitTest ( System.Point point ) : bool
point System.Point
Résultat bool

InvalidateArrange() public méthode

public InvalidateArrange ( ) : void
Résultat void

InvalidateMeasure() public méthode

public InvalidateMeasure ( ) : void
Résultat void

Measure() public méthode

public Measure ( Size availableSize ) : void
availableSize Size
Résultat void

MeasureOverride() protected méthode

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. ///
Résultat Size

OnApplyTemplate() public méthode

public OnApplyTemplate ( ) : void
Résultat void

OnNextGesture() protected méthode

protected OnNextGesture ( Gesture gesture ) : void
gesture RedBadger.Xpf.Input.Gesture
Résultat void

OnRender() protected méthode

protected OnRender ( IDrawingContext drawingContext ) : void
drawingContext IDrawingContext
Résultat void

ReleaseMouseCapture() public méthode

public ReleaseMouseCapture ( ) : void
Résultat void

TryGetRenderer() public méthode

public TryGetRenderer ( IRenderer &renderer ) : bool
renderer IRenderer
Résultat bool

TryGetRootElement() public méthode

public TryGetRootElement ( IRootElement &rootElement ) : bool
rootElement IRootElement
Résultat bool

UIElement() protected méthode

protected UIElement ( ) : System
Résultat System

Property Details

DataContextProperty public_oe static_oe property

public static ReactiveProperty DataContextProperty
Résultat ReactiveProperty

HeightProperty public_oe static_oe property

public static ReactiveProperty HeightProperty
Résultat ReactiveProperty

HorizontalAlignmentProperty public_oe static_oe property

public static ReactiveProperty HorizontalAlignmentProperty
Résultat ReactiveProperty

IsMouseCapturedProperty public_oe static_oe property

public static ReactiveProperty IsMouseCapturedProperty
Résultat ReactiveProperty

MarginProperty public_oe static_oe property

public static ReactiveProperty MarginProperty
Résultat ReactiveProperty

MaxHeightProperty public_oe static_oe property

public static ReactiveProperty MaxHeightProperty
Résultat ReactiveProperty

MaxWidthProperty public_oe static_oe property

public static ReactiveProperty MaxWidthProperty
Résultat ReactiveProperty

MinHeightProperty public_oe static_oe property

public static ReactiveProperty MinHeightProperty
Résultat ReactiveProperty

MinWidthProperty public_oe static_oe property

public static ReactiveProperty MinWidthProperty
Résultat ReactiveProperty

VerticalAlignmentProperty public_oe static_oe property

public static ReactiveProperty VerticalAlignmentProperty
Résultat ReactiveProperty

WidthProperty public_oe static_oe property

public static ReactiveProperty WidthProperty
Résultat ReactiveProperty