The CanvasContentHost type exposes the following members.

Constructors

  NameDescription
Public methodCanvasContentHost
Creates a new instance of the content host.

Methods

  NameDescription
Public methodAddHandler
Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route.
(Inherited from UIElement.)
Public methodArrange
Positions child objects and determines a size for a UIElement. Parent objects that implement custom layout for their child elements should call this method from their layout override implementations to form a recursive layout update.
(Inherited from UIElement.)
Protected methodArrangeOverride
Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior.
(Overrides FrameworkElement..::..ArrangeOverride(Size).)
Public methodCaptureMouse
Sets mouse capture to a UIElement.
(Inherited from UIElement.)
Public methodCheckAccess
Determines whether the calling thread has access to this object.
(Inherited from DependencyObject.)
Public methodClearValue
Clears the local value of a dependency property.
(Inherited from DependencyObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindName
Retrieves an object that has the specified identifier name.
(Inherited from FrameworkElement.)
Public methodGetAnimationBaseValue
Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active.
(Inherited from DependencyObject.)
Public methodGetBindingExpression
Retrieves the BindingExpression for a dependency property where a binding is established.
(Inherited from FrameworkElement.)
Public methodGetCurrentTouchDevices
Gets a list of the active Touch2DDevices at the time of invocation.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property from a DependencyObject.
(Inherited from DependencyObject.)
Public methodInvalidateArrange
Invalidates the arrange state (layout) for a UIElement. After the invalidation, the UIElement will have its layout updated, which will occur asynchronously.
(Inherited from UIElement.)
Public methodInvalidateMeasure
Invalidates the measurement state (layout) for a UIElement.
(Inherited from UIElement.)
Public methodMeasure
Updates the DesiredSize of a UIElement. Typically, objects that implement custom layout for their layout children call this method from their own MeasureOverride(Size) implementations to form a recursive layout update.
(Inherited from UIElement.)
Protected methodMeasureOverride
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
(Overrides FrameworkElement..::..MeasureOverride(Size).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate()()()(). In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
(Inherited from FrameworkElement.)
Protected methodOnCreateAutomationPeer
When implemented in a derived class, returns class-specific AutomationPeer implementations for the Silverlight automation infrastructure.
(Inherited from UIElement.)
Protected methodOnKeyDown
This will transform the key event to a CompoundKeyEventArgs event and invoke the OnCompoundKeyPressed(CompoundKeyEventArgs) methods as well as re-dispatch the last mouse event.
Protected methodOnKeyUp
This will transform the key event to a CompoundKeyEventArgs event and invoke the OnCompoundKeyReleased(CompoundKeyEventArgs) methods as well as redispatch the last mouse event.
Protected methodOnLostTouchCapture
Protected methodOnMouseDown
Tries to gain the focus if the parent canvas control is enabled. This will transform the mouse event to a Mouse2DEventArgs and invoke the OnMouse2DPressed(Mouse2DEventArgs) method.
Protected methodOnMouseEnter
This will transform the mouse event to a Mouse2DEventArgs and invoke the OnMouse2DEntered(Mouse2DEventArgs) method.
Protected methodOnMouseLeave
This will transform the mouse event to a Mouse2DEventArgs event and invoke the OnMouse2DExited(Mouse2DEventArgs) method.
Protected methodOnMouseMove
This will transform the mouse event to a Mouse2DEventArgs event and invoke the OnMouse2DMoved(Mouse2DEventArgs) or OnMouse2DDragged(Mouse2DEventArgs) methods.
Protected methodOnMouseRightDown
Tries to gain the focus if the parent canvas control is enabled. This will transform the mouse event to a Mouse2DEventArgs and invoke the OnMouse2DPressed(Mouse2DEventArgs) method.
Protected methodOnMouseRightUp
This will transform the mouse event to a Mouse2DEventArgs event and invoke the OnMouse2DReleased(Mouse2DEventArgs) and possibly OnMouse2DClicked(Mouse2DEventArgs) methods.
Protected methodOnMouseUp
This will transform the mouse event to a Mouse2DEventArgs event and invoke the OnMouse2DReleased(Mouse2DEventArgs) and possibly OnMouse2DClicked(Mouse2DEventArgs) methods.
Protected methodOnMouseWheel
This will transform the mouse event to a Mouse2DEventArgs event and invoke the OnMouse2DWheelTurned(Mouse2DEventArgs) method.
Protected methodOnRenderSizeChanged
Protected methodOnTouchDown
Receives and handles the TouchEventArgs.
Protected methodOnTouchEnter
Receives and handles the TouchEventArgs.
Protected methodOnTouchLeave
Receives and handles the TouchEventArgs.
Protected methodOnTouchMove
Receives and handles the TouchEventArgs.
Protected methodOnTouchUp
Receives and handles the TouchEventArgs.
Public methodReadLocalValue
Returns the local value of a dependency property, if a local value is set.
(Inherited from DependencyObject.)
Public methodReleaseMouseCapture
Removes mouse capture from a UIElement. After this call, typically no object holds mouse capture.
(Inherited from UIElement.)
Public methodRemoveHandler
Removes the specified routed event handler from this UIElement.
(Inherited from UIElement.)
Public methodSetBinding
Attaches a binding to a FrameworkElement, using the provided binding object, and returns a BindingExpressionBase for possible later use.
(Inherited from FrameworkElement.)
Public methodSetValue
Sets the local value of a dependency property on a DependencyObject.
(Inherited from DependencyObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransformToVisual
Returns a transform object that can be used to transform coordinates from the UIElement to the specified object.
(Inherited from UIElement.)
Public methodUpdateLayout
Ensures that all positions of child objects of a UIElement are properly updated for layout.
(Inherited from UIElement.)

Extension Methods

  NameDescription
Public Extension MethodGetRenderDataCache<(Of <<'(T>)>>)
Gets the render data cache from the attached RenderDataCacheProperty.
(Defined by UIElementExtensions.)
Public Extension MethodIsKeyboardFocused
Determines whether the specified source has the keyboard focus.
(Defined by UIElementExtensions.)
Public Extension MethodIsKeyboardFocusWithin
Determines whether the keyboard focus is within the visual tree of the specified element.
(Defined by UIElementExtensions.)
Public Extension MethodIsVisible
Determines whether the specified element is visible.
(Defined by UIElementExtensions.)
Public Extension MethodSetCanvasArrangeRect
Helper method that sets the attached CanvasControlArrangeRectProperty on the given element.
(Defined by UIElementExtensions.)
Public Extension MethodSetRenderDataCache<(Of <<'(T>)>>)
Helper method that sets the attached RenderDataCacheProperty on the given element.
(Defined by UIElementExtensions.)

Properties

  NameDescription
Public propertyActualHeight
Gets the rendered height of a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyActualWidth
Gets the rendered width of a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyAllowDrop
Gets or sets a value indicating whether drop operations are allowed on this instance.
Public propertyBackground
Gets or sets a Brush that is used to fill the panel.
(Inherited from Panel.)
Public propertyCacheMode
Gets or sets a value that indicates that rendered content should be cached when possible.
(Inherited from UIElement.)
Public propertyCanvasCursor
Gets or sets the cursor to display in the content host.
Public propertyChildren
Gets the collection of child elements of the panel.
(Inherited from Panel.)
Public propertyClip
Gets or sets the Geometry used to define the outline of the contents of a UIElement.
(Inherited from UIElement.)
Public propertyCursor
Gets or sets the cursor image that displays while the mouse pointer is over a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyDataContext
Gets or sets the data context for a FrameworkElement when it participates in data binding.
(Inherited from FrameworkElement.)
Public propertyDesiredSize
Gets the size that this UIElement computed during the measure pass of the layout process.
(Inherited from UIElement.)
Public propertyDispatcher
Gets the Dispatcher this object is associated with.
(Inherited from DependencyObject.)
Public propertyEffect
Gets or sets the pixel shader effect to use for rendering this UIElement.
(Inherited from UIElement.)
Public propertyFlowDirection
Gets or sets the direction that text and other user interface elements flow within any parent element that controls their layout.
(Inherited from FrameworkElement.)
Public propertyHeight
Gets or sets the suggested height of a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyHorizontalAlignment
Gets or sets the horizontal alignment characteristics that are applied to a FrameworkElement when it is composed in a layout parent, such as a panel or items control.
(Inherited from FrameworkElement.)
Public propertyIsHitTestVisible
Gets or sets whether the contained area of this UIElement can return true values for hit testing.
(Inherited from UIElement.)
Public propertyIsItemsHost
Gets a value that indicates whether this Panel is a container for UI items that are generated by an ItemsControl.
(Inherited from Panel.)
Public propertyLanguage
Gets or sets localization/globalization language information that applies to a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyMargin
Gets or sets the outer margin of a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyMaxHeight
Gets or sets the maximum height constraint of a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyMaxWidth
Gets or sets the maximum width constraint of a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyMinHeight
Gets or sets the minimum height constraint of a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyMinWidth
Gets or sets the minimum width constraint of a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyName
Gets or sets the identifying name of the object. When a XAML processor creates the object tree from XAML markup, run-time code can refer to the XAML-declared object by this name.
(Inherited from FrameworkElement.)
Public propertyOpacity
Gets or sets the degree of the object's opacity.
(Inherited from UIElement.)
Public propertyOpacityMask
Gets or sets the brush used to alter the opacity of regions of this object.
(Inherited from UIElement.)
Public propertyParent
Gets the parent object of this FrameworkElement in the object tree.
(Inherited from FrameworkElement.)
Public propertyProjection
Gets or sets the perspective projection (3-D effect) to apply when rendering this UIElement.
(Inherited from UIElement.)
Public propertyRenderSize
Gets the final render size of a UIElement.
(Inherited from UIElement.)
Public propertyRenderTransform
Gets or sets transform information that affects the rendering position of a UIElement.
(Inherited from UIElement.)
Public propertyRenderTransformOrigin
Gets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement.
(Inherited from UIElement.)
Public propertyResources
Gets the locally defined resource dictionary. In XAML, you can establish resource items as child object elements of a frameworkElement.Resources property element, through XAML implicit collection syntax.
(Inherited from FrameworkElement.)
Public propertyStyle
Gets or sets an instance Style that is applied for this object during rendering.
(Inherited from FrameworkElement.)
Public propertyTag
Gets or sets an arbitrary object value that can be used to store custom information about this object.
(Inherited from FrameworkElement.)
Public propertyTriggers
Gets the collection of triggers for animations that are defined for a FrameworkElement.
(Inherited from FrameworkElement.)
Public propertyUseLayoutRounding
Gets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels.
(Inherited from UIElement.)
Public propertyVerticalAlignment
Gets or sets the vertical alignment characteristics that are applied to a FrameworkElement when it is composed in a parent object such as a panel or items control.
(Inherited from FrameworkElement.)
Public propertyVisibility
Gets or sets the visibility of a UIElement. A UIElement that is not visible does not render and does not communicate its desired size to layout.
(Inherited from UIElement.)
Public propertyWidth
Gets or sets the width of a FrameworkElement.
(Inherited from FrameworkElement.)

Events

  NameDescription
Public eventBindingValidationError
Occurs when a data validation error is reported by a binding source.
(Inherited from FrameworkElement.)
Public eventDataContextChanged
Occurs when the data context for this element changes.
(Inherited from FrameworkElement.)
Public eventDoubleTap
Occurs when a DoubleTap gesture is committed while over this UIElement.
(Inherited from UIElement.)
Public eventDragEnter
Occurs when a drag operation enters the bounds of this control.
Public eventDragLeave
Occurs when a drag operation leaves the bounds of this control.
Public eventDragOver
Occurs when a drag operation is in progress inside the bounds of this control.
Public eventDrop
Occurs when a drop operation is happening on this control.
Public eventGotFocus
Occurs when a UIElement receives focus.
(Inherited from UIElement.)
Public eventHold
Occurs when a Hold gesture is committed while over this UIElement.
(Inherited from UIElement.)
Public eventKeyDown
Occurs when a keyboard key is pressed while the UIElement has focus.
(Inherited from UIElement.)
Public eventKeyUp
Occurs when a keyboard key is released while the UIElement has focus.
(Inherited from UIElement.)
Public eventLayoutUpdated
Occurs when the layout of the Silverlight visual tree changes.
(Inherited from FrameworkElement.)
Public eventLoaded
Occurs when a FrameworkElement has been constructed and added to the object tree.
(Inherited from FrameworkElement.)
Public eventLostFocus
Occurs when a UIElement loses focus.
(Inherited from UIElement.)
Public eventLostMouseCapture
Occurs when the UIElement loses mouse capture.
(Inherited from UIElement.)
Public eventManipulationCompleted
Occurs when a manipulation and inertia on the UIElement is complete.
(Inherited from UIElement.)
Public eventManipulationDelta
Occurs when the input device changes position during a manipulation.
(Inherited from UIElement.)
Public eventManipulationStarted
Occurs when an input device begins a manipulation on the UIElement.
(Inherited from UIElement.)
Public eventMediaCommand
Occurs when a button is pressed on a remote control.
(Inherited from UIElement.)
Public eventMouseEnter
Occurs when the mouse (or a stylus) enters the bounding area of a UIElement.
(Inherited from UIElement.)
Public eventMouseLeave
Occurs when the mouse (or the stylus) leaves the bounding area of a UIElement.
(Inherited from UIElement.)
Public eventMouseLeftButtonDown
Occurs when the left mouse button is pressed (or when the tip of the stylus touches the tablet) while the mouse pointer is over a UIElement.
(Inherited from UIElement.)
Public eventMouseLeftButtonUp
Occurs when the left mouse button is released (or the tip of the stylus is removed from the tablet) while the mouse (or the stylus) is over a UIElement (or while a UIElement holds mouse capture).
(Inherited from UIElement.)
Public eventMouseMove
Occurs when the coordinate position of the mouse (or stylus) changes while over a UIElement (or while a UIElement holds mouse capture).
(Inherited from UIElement.)
Public eventMouseRightButtonDown
Occurs when the right mouse button is pressed while the mouse pointer is over a UIElement.
(Inherited from UIElement.)
Public eventMouseRightButtonUp
Occurs when the right mouse button is released while the mouse pointer is over a UIElement. However, this event will only be raised if a caller marks the preceding MouseRightButtonDown event as handled; see Remarks.
(Inherited from UIElement.)
Public eventMouseWheel
Occurs when the user rotates the mouse wheel while the mouse pointer is over a UIElement, or the UIElement has focus.
(Inherited from UIElement.)
Public eventSizeChanged
Occurs when either the ActualHeight or the ActualWidth properties change value on a FrameworkElement.
(Inherited from FrameworkElement.)
Public eventTap
Occurs when a Tap gesture is committed while over this UIElement.
(Inherited from UIElement.)
Public eventTextInput
Occurs when a UI element gets text in a device-independent manner.
(Inherited from UIElement.)
Public eventTextInputStart
Occurs when a UI element initially gets text in a device-independent manner.
(Inherited from UIElement.)
Public eventTextInputUpdate
Occurs when text continues to be composed via an input method editor (IME).
(Inherited from UIElement.)
Public eventUnloaded
Occurs when this object is no longer connected to the main object tree.
(Inherited from FrameworkElement.)

See Also