NoesisGUI

Viewbox Class

Defines a content decorator that can stretch and scale a single child to fill the available space.

http://msdn.microsoft.com/en-us/library/system.windows.controls.viewbox.aspx

Inheritance Hierarchy

Visual
Viewbox

INDEX Class Hierarchy Index

Methods

From Viewbox

Name Description
GetStretchScale Returns the scale necessary to stretch element size to the available size

From FrameworkElement

Name Description
AncestorChanged Notifies when an ancestor has changed its parent
AncestorNameScopeChanged Notifies when a NameScope in an ancestor has changed any of its items
AncestorResourcesChanged Notifies when a change occurred in the resources dictionary of this element or an ancestor
ApplyFrameworkTemplate Applies a template on this element for the provided context
BringIntoView Attempts to bring this element into view, within any scrollable regions it is contained within.
BringIntoView Attempts to bring the provided region size of this element into view, within any scrollable regions it is contained within.
Clone Returns a clone of this element. Used when applying a template
Connect Attaches specified event to code-behind content
FindName Provides accessors that simplifies access to the NameScope registration methods
FindName Templated version of FindName
FindResource Finds a resource looking in the logical parent chain
FindResource Templated version of FindResource and TryFindResource
GetBindingExpression Returns a binding expression if the target property has an active binding; otherwise, returns null
GetFrameworkTemplate Gets applied template on this element
GetParentOrTemplatedParent Gets the logical parent or the templated parent when logical parent is not available
GetStateGroupsRoot Gets root for VisualState management
GetTemplateChild Looks for a named element in the applied template
GetTemplateRoot Gets the root element of the applied template
GetTimeManager Gets the TimeManager that controls current element
IsLoaded Gets a value that indicates whether this element has been loaded for presentation.
SetBinding Attaches a binding to this element, based on the provided binding object
SetBinding Attaches a binding to this element, based on the provided source property name as a path qualification to the data source

From UIElement

Name Description
AddHandler Adds a handler to the specified routed event
Arrange Positions child elements and determines a size for a UIElement. Parent elements call this method from their ArrangeCore implementation to form a recursive layout update. This method constitutes the second pass of a layout update
CaptureMouse Attempts to force capture of the mouse to this element
CaptureTouch Attempts to force capture of a touch to this element
Focus Attempts to set focus to this element.
GetKeyboard Gets keyboard input manager
GetMouse Public methods in UIElement Gets mouse input manager
GetTouch Gets touch input manager
GetUIParent Gets the logical or visual parent for this element
GetUIView Finds the View where this element is connected to traversing visual or logical ancestors, because visual tree might not be generated yet
InvalidateArrange Invalidates the arrange state (layout) for the element. After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UIElement.UpdateLayout().
InvalidateMeasure Invalidates the measurement state (layout) for the element.
InvalidateVisual Invalidates the rendering of the element, and forces a complete new layout pass. UIElement.OnRender(DrawingContext) is called after the layout cycle is completed.
IsArrangeValid Indicates if arrange is valid
IsMeasureValid Indicates if measured size is valid
Measure Updates the DesiredSize of a UIElement. Parent elements call this method from their own MeasureCore implementations to form a recursive layout update. Calling this method constitutes the first pass of a layout update in the layout system
MoveFocus Request to move the focus from this element to another element. Returns true if focus is moved successfully, returns false if there is no next element
PredictFocus When overridden in a derived class, returns the element that would receive focus for a specified focus traversal direction, without actually moving focus to that element
RaiseEvent Raises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data)
ReleaseAllTouchCaptures Releases all captured touch devices from this element
ReleaseMouseCapture Releases the mouse capture, if this element held the capture
ReleaseTouchCapture Attempts to release the specified touch device from this element
RemoveHandler Removes a handler from the specified routed event
UpdateLayout Ensures that all visual child elements of this element are properly updated for layout

From Visual

Name Description
ConnectToView Enables or disables visual for render
FindCommonVisualAncestor Finds the common ancestor of two visuals objects
GetRenderTreeId Gets render tree id
IsAncestorOf Determines whether the visual object is an ancestor of the descendant visual object
IsConnectedToView Indicates if this visual has been connected to a View
IsDescendantOf Determines whether the visual object is a descendant of the ancestor visual object
IsInRenderTree Indicates if a render node has been created in the RenderTree for this visual
IsInvalidated Indicates if this visual is invalidated and should send updates to the render tree
PointFromScreen Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual
PointToScreen Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates
SetVisualBrushFlag Sets the flag that indicates that this Visual contains a VisualBrush
TransformToAncestor Returns a transform that can be used to transform coordinates from the Visual to the specified ancestor of the visual object
TransformToDescendant Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant
TransformToVisual Returns a transform that can be used to transform coordinates from the Visual to the specified visual object

From DependencyObject

Name Description
ClearAnimation Clears the animation value of a property
ClearAnimation Clears the animation value of a property
ClearLocalValue Clears the local value of a property The property to be cleared is specified by a DependencyProperty identifier
CoerceValue Coerces and validates the effective property value
CoerceValue Coerces and validates the effective property value
DependencyPropertyChanged Returns the PropertyChanged event
Destroyed Destroyed delegate is raised when object is going to be destroyed
GetBaseValue Returns the base value without animation nor coerce (this never returns IExpression like GetLocalValue)
GetLocalValue Returns the local value of a dependency property, if it exists.
GetValue Returns the current effective value of a dependency property on this instance of a DependencyObject
GetValueObject Returns the current effective value of a dependency property on this instance of a DependencyObject as a boxed value
GetValueProvider Gets the provider that returns the effective value for the specified dependency property
HasAnimatedProperties Returns true if there is any animated property
InvalidateProperty Re-evaluates the effective value for the specified dependency property if necessary If null is passed, a full re-evaluation could be needed
IsCached Returns if the value is stored in the cache. If true, the priority is returned in the provider field
SetAnimation Sets the animated value of a property
SetCurrentValue Sets the current value of a dependency property. The current value is set on the coerce field, without modifying source or animated value
SetCurrentValueObject Sets the current value of a dependency property using a boxed value
SetExpression Sets the expression to be evaluated dynamically to obtain the value of the property
SetValue Sets the local value of a dependency property
SetValueObject Sets the local value (boxed) of a dependency property

Properties

From Viewbox


Name Description
None Child Gets or sets the single child of a Viewbox element.
DP Stretch Gets or sets the Viewbox Stretch mode, which determines how content fits into the available space
DP StretchDirection Gets or sets the StretchDirection, which determines how scaling is applied to the contents of a Viewbox
DP_ Dependency Property - RO_ Read only

From FrameworkElement


Name Description
DP_RO ActualHeight Gets the rendered height of this element.
DP_RO ActualWidth Gets the rendered width of this element.
DP ContextMenu Gets or sets the context menu element that should appear whenever the context menu is requested through user interface (UI) from within this element.
DP Cursor Gets or sets the cursor that displays when the mouse pointer is over this element.
DP DataContext Gets or sets the data context for an element when it participates in data binding
DP DefaultStyleKey Gets or sets the key to use to reference the style for this control, when theme styles are used or defined
DP FocusVisualStyle Gets or sets a property that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus
DP ForceCursor Gets or sets a value that indicates whether this FrameworkElement should force the UI to render the cursor as declared by this element's Cursor property.
DP Height Gets or sets the suggested height of the element.
DP HorizontalAlignment Gets or sets the horizontal alignment characteristics applied to this element when it is composed within a parent element, such as a panel or items control
DP LayoutTransform Gets or sets a graphics transformation that should apply to this element when layout is performed
DP Margin Gets or sets the outer margin of an element.
DP MaxHeight Gets or sets the maximum height constraint of the element.
DP MaxWidth Gets or sets the maximum width constraint of the element.
DP MinHeight Gets or sets the minimum height constraint of the element.
DP MinWidth Gets or sets the minimum width constraint of the element.
DP Name Gets or sets the identifying name of the element. The name provides a reference so that code-behind, such as event handler code, can refer to a markup element after it is constructed during processing by a XAML processor.
DP OverridesDefaultStyle Gets or sets a value that indicates whether this element incorporates style properties from theme styles.
RO Parent Gets the logical parent element of this element
None Resources Gets or sets the locally-defined resource dictionary
DP Style Gets or sets the style used by this element when it is rendered
DP Tag Gets or sets an arbitrary object value that can be used to store custom information about this element
None TemplatedParent Gets or sets the template parent of this element. This property is not relevant if the element was not created through a template
DP ToolTip Gets or sets the tool-tip object that is displayed for this element in the user interface
RO Triggers Get the trigger collection
DP UseLayoutRounding Gets or sets a value that indicates whether layout rounding should be applied to this element's size and position during layout
DP VerticalAlignment Gets or sets the vertical alignment characteristics applied to this element when it is composed within a parent element such as a panel or items control.
DP Width Gets or sets the width of the element
DP_ Dependency Property - RO_ Read only

From UIElement


Name Description
DP AllowDrop Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation.
DP Clip Gets or sets the geometry used to define the outline of the contents of an element
DP ClipToBounds Gets or sets a value indicating whether to clip the content of this element (or content coming from the child elements of this element) to fit into the size of the containing element
RO CommandBindings Gets a collection of CommandBinding objects associated with this element
RO DesiredSize Gets control's desired size (calculated after measure process)
DP Focusable Gets or sets a value that indicates whether the element can receive focus.
RO InputBindings Gets a collection of InputBinding objects associated with this element
DP IsEnabled Gets or sets a value indicating whether this element is enabled in the user interface
DP_RO IsFocused Indicates whether this element has the focus
DP IsHitTestVisible Gets or sets a value that declares whether this element can possibly be returned as a hit test result from some portion of its rendered content.
DP_RO IsKeyboardFocusWithin Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements
DP_RO IsKeyboardFocused Gets a value indicating whether this element has keyboard focus
DP IsManipulationEnabled Gets or sets a value that indicates whether manipulation events are enabled on this element
DP_RO IsMouseCaptureWithin Gets a value that determines whether mouse capture is held by this element or by child elements in its visual tree.
DP_RO IsMouseCaptured Gets a value indicating whether the mouse is captured to this element
DP_RO IsMouseDirectlyOver Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account.
DP_RO IsMouseOver Gets a value indicating whether the mouse pointer is located over this element (including child elements in the visual tree).
DP_RO IsVisible Indicates whether this element is visible in the user interface
DP Opacity Gets or sets the opacity factor applied to the entire element when it is rendered
DP OpacityMask Gets or sets an opacity mask, as a Brush implementation that is applied to any alpha-channel masking for the rendered content of this element
DP Projection Gets or sets the perspective projection (3D effect) to apply when rendering this element
RO RenderSize Gets calculated (during arrange) render size
DP RenderTransform Gets or sets transform information that affects the rendering position of this element
DP RenderTransformOrigin Gets or sets the center point of any possible render transform declared by RenderTransform, relative to the bounds of the element.
DP Visibility Gets or sets the user interface visibility of this element
DP_ Dependency Property - RO_ Read only

From Visual


Name Description
RO View Gets the view where this visual is connected to
DP_ Dependency Property - RO_ Read only

Events

From FrameworkElement


Name Description
R ContextMenuClosing Occurs just before any context menu on the element is closed
R ContextMenuOpening Occurs when any context menu on the element is opened
N DataContextChanged Occurs when the data context for this element changes
N Initialized Occurs when this element is initialized
R Loaded Occurs when the element is laid out, rendered, and ready for interaction
R RequestBringIntoView Occurs when BringIntoView is called on this element
R SizeChanged Occurs when either the ActualHeight or the ActualWidth properties change value on this element
R ToolTipClosing Occurs just before any tooltip on the element is closed
R ToolTipOpening Occurs when any tooltip on the element is opened
R Unloaded Occurs when the element is removed from within an element tree of loaded elements
R Routed Event - N Non routed event - D Delegate Event

From UIElement


Name Description
N FocusableChanged Occurs when the value of the Focusable property changes
R GotFocus Occurs when this element gets logical focus
R GotKeyboardFocus Occurs when the keyboard is focused on this element
R GotMouseCapture Occurs when this element captures the mouse
R GotTouchCapture Occurs when a touch is captured to this element
N IsEnabledChanged Occurs when the value of the IsEnabled property on this element changes
N IsHitTestVisibleChanged Occurs when the value of the IsHitTestVisible dependency property changes on this element
N IsKeyboardFocusWithinChanged Occurs when the value of the IsKeyboardFocusWithinChanged property changes on this element
N IsKeyboardFocusedChanged Occurs when the value of the IsKeyboardFocused property changes on this element
N IsMouseCaptureWithinChanged Occurs when the value of the IsMouseCaptureWithinProperty changes on this element
N IsMouseCapturedChanged Occurs when the value of the IsMouseCaptured property changes on this element
N IsMouseDirectlyOverChanged Occurs when the value of the IsMouseDirectlyOver property changes on this element
N IsVisibleChanged Occurs when the value of the IsVisible property changes on this element
R KeyDown Occurs when a key is pressed while focus is on this element
R KeyUp Occurs when a key is released while focus is on this element
R LostFocus Occurs when this element loses logical focus
R LostKeyboardFocus Occurs when the keyboard is no longer focused on this element
R LostMouseCapture Occurs when this element loses mouse capture
R LostTouchCapture Occurs when this element loses a touch capture
R ManipulationCompleted Occurs when a manipulation and inertia on the UIElement object is complete
R ManipulationDelta Occurs when the input device changes position during a manipulation
R ManipulationInertiaStarting Occurs when the input device loses contact with the UIElement during a manipulation and inertia begins
R ManipulationStarted Occurs when an input device begins a manipulation on the UIElement object
R ManipulationStarting Occurs when the manipulation processor is first created
R MouseDown Occurs when any mouse button is pressed while the pointer is over this element
R MouseEnter Occurs when the mouse pointer enters the bounds of this element
R MouseLeave Occurs when the mouse pointer leaves the bounds of this element
R MouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element
R MouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element
R MouseMove Occurs when the mouse pointer moves while over this element
R MouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element
R MouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element
R MouseUp Occurs when any mouse button is released over this element
R MouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element
R PreviewGotKeyboardFocus Occurs when the keyboard is focused on this element
R PreviewKeyDown Occurs when a key is pressed while focus is on this element
R PreviewKeyUp Occurs when a key is released while focus is on this element
R PreviewLostKeyboardFocus Occurs when the keyboard is no longer focused on this element
R PreviewMouseDown Occurs when any mouse button is pressed while the pointer is over this element
R PreviewMouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element
R PreviewMouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element
R PreviewMouseMove Occurs when the mouse pointer moves while the mouse pointer is over this element
R PreviewMouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element
R PreviewMouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element
R PreviewMouseUp Occurs when any mouse button is released while the mouse pointer is over this element
R PreviewMouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element
R PreviewTextInput Occurs when this element gets text in a device-independent manner
R PreviewTouchDown Occurs when a finger touches the screen while the finger is over this element
R PreviewTouchMove Occurs when a finger moves on the screen while the finger is over this element
R PreviewTouchUp Occurs when a finger is raised off of the screen while the finger is over this element
R QueryCursor Occurs when the cursor is requested to display
R TextInput Occurs when this element gets text in a device-independent manner
R TouchDown Occurs when a finger touches the screen while the finger is over this element
R TouchEnter Occurs when a touch moves from outside to inside the bounds of this element
R TouchLeave Occurs when a touch moves from inside to outside the bounds of this element
R TouchMove Occurs when a finger moves on the screen while the finger is over this element
R TouchUp Occurs when a finger is raised off of the screen while the finger is over this element
R Routed Event - N Non routed event - D Delegate Event
© 2017 Noesis Technologies