The Ruler type exposes the following members.

Constructors

  NameDescription
Public methodRuler
Initializes a new instance of the Ruler class.

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 methodApplyTemplate
Loads the relevant control template so that its parts can be referenced.
(Inherited from Control.)
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.
(Inherited from FrameworkElement.)
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 attempt 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 methodFocus
Attempts to set the focus on the control.
(Inherited from Control.)
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 methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetTemplateChild
Retrieves the named element in the instantiated ControlTemplate visual tree.
(Inherited from Control.)
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.
(Inherited from FrameworkElement.)
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()()()().
(Overrides FrameworkElement..::..OnApplyTemplate()()()().)
Protected methodOnCreateAutomationPeer
When implemented in a derived class, returns class-specific AutomationPeer implementations for the Silverlight automation infrastructure.
(Inherited from UIElement.)
Protected methodOnDoubleTap (Inherited from Control.)
Protected methodOnDragEnter
Raises the DragEnter event.
(Inherited from Control.)
Protected methodOnDragLeave
Raises the DragLeave event.
(Inherited from Control.)
Protected methodOnDragOver
Raises the DragOver event.
(Inherited from Control.)
Protected methodOnDrop
Raises the Drop event.
(Inherited from Control.)
Protected methodOnGotFocus
Called before the GotFocus event occurs.
(Inherited from Control.)
Protected methodOnHold (Inherited from Control.)
Protected methodOnKeyDown
Called before the KeyDown event occurs.
(Inherited from Control.)
Protected methodOnKeyUp
Called before the KeyUp event occurs.
(Inherited from Control.)
Protected methodOnLostFocus
Called before the LostFocus event occurs.
(Inherited from Control.)
Protected methodOnLostMouseCapture
Called before the LostMouseCapture event occurs to provide handling for the event in a derived class without attaching a delegate.
(Inherited from Control.)
Protected methodOnManipulationCompleted
Called when the ManipulationCompleted event occurs. This member overrides OnManipulationCompleted(Object, ManipulationCompletedEventArgs).
(Inherited from Control.)
Protected methodOnManipulationDelta
Called when the ManipulationDelta event occurs. This member overrides OnManipulationDelta(Object, ManipulationDeltaEventArgs).
(Inherited from Control.)
Protected methodOnManipulationStarted
Called when the ManipulationStarted event occurs. This member overrides OnManipulationStarted(Object, ManipulationStartedEventArgs).
(Inherited from Control.)
Protected methodOnMouseEnter
Called before the MouseEnter event occurs.
(Inherited from Control.)
Protected methodOnMouseLeave
Called before the MouseLeave event occurs.
(Inherited from Control.)
Protected methodOnMouseLeftButtonDown
Called before the MouseLeftButtonDown event occurs.
(Inherited from Control.)
Protected methodOnMouseLeftButtonUp
Called before the MouseLeftButtonUp event occurs.
(Inherited from Control.)
Protected methodOnMouseMove
Called before the MouseMove event occurs.
(Inherited from Control.)
Protected methodOnMouseRightButtonDown
Raises the MouseRightButtonDown event.
(Inherited from Control.)
Protected methodOnMouseRightButtonUp
Raises the MouseRightButtonUp event.
(Inherited from Control.)
Protected methodOnMouseWheel
Called before the MouseWheel event occurs to provide handling for the event in a derived class without attaching a delegate.
(Inherited from Control.)
Protected methodOnTap (Inherited from Control.)
Protected methodOnTextInput
Raises the TextInput event.
(Inherited from Control.)
Protected methodOnTextInputStart
Raises the TextInputStart event.
(Inherited from Control.)
Protected methodOnTextInputUpdate
Raises the TextInputUpdate event.
(Inherited from Control.)
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 MethodAncestors
Returns a collection of the visual ancestor elements of specified dependency object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodAncestorsAndSelf
Returns a collection of visual elements that contain specified object, and the ancestors of specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodCreateObjectInfo
Creates an info instance from given object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodDependencyProperties()()()()Overloaded.
Returns the collection of dependency properties available on specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodDependencyProperties(Boolean)Overloaded.
Returns the collection of dependency properties available on specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodDependencyProperty
Get the specified dependency property of given object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodDescendants
Retrieves the visual descendant child elements of specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodDescendantsAndSelf
Returns a collection of elements that contain the specified object and all descendant elements.
(Defined by DependencyObjectExtensions.)
Public Extension MethodElements
Retrieves the visual child elements of specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodElementsAfterSelf
Returns a collection of the sibling visual elements after this object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodElementsBeforeSelf
Returns a collection of the sibling visual elements before this object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodGetDepth
Gets the depth of nesting of specified object in the visual tree.
(Defined by DependencyObjectExtensions.)
Public Extension MethodGetId
Gets the id uniquely identifying given object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodGetName
Gets the name assigned to specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodGetStatistics
Gets the statistics for given element.
(Defined by FrameworkElementExtensions.)
Public Extension MethodGetTransformedPoints
Gets the transformed points that outline the specified element.
(Defined by FrameworkElementExtensions.)
Public Extension MethodIsConnected
Determines whether the specified object is available in a visual tree.
(Defined by DependencyObjectExtensions.)
Public Extension MethodLogicalElements
Retrieves the child elements available in the logical tree of specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodRoutedEvents()()()()Overloaded.
Returns the collection of routed events available on specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodRoutedEvents(Boolean)Overloaded.
Returns the collection of routed events available on specified object.
(Defined by DependencyObjectExtensions.)

Fields

  NameDescription
Public fieldStatic memberDefaultBackground
Defines the default background.
Public fieldStatic memberDefaultForeground
Defines the default foreground.
Public fieldStatic memberDockProperty
Identifies the Dock dependency property.
Public fieldStatic memberMarkersProperty
Identifies the Markers dependency property.
Public fieldStatic memberRulerHeight
Defines the ruler height in pixels.

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 that determines whether this UIElement can be a drop target for purposes of Silverlight drag-and-drop operations.
(Inherited from UIElement.)
Public propertyBackground
Gets or sets a brush that provides the background of the control.
(Inherited from Control.)
Public propertyBorderBrush
Gets or sets a brush that describes the border background of a control.
(Inherited from Control.)
Public propertyBorderThickness
Gets or sets the border thickness of a control.
(Inherited from Control.)
Public propertyCacheMode
Gets or sets a value that indicates that rendered content should be cached when possible.
(Inherited from UIElement.)
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 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.)
Protected propertyDefaultStyleKey
Gets or sets the key that references the default style for the control.
(Inherited from Control.)
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 propertyDock
Gets or sets the dock style.
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 propertyFontFamily
Gets or sets the font used to display text in the control.
(Inherited from Control.)
Public propertyFontSize
Gets or sets the size of the text in this control.
(Inherited from Control.)
Public propertyFontStretch
Gets or sets the degree to which a font is condensed or expanded on the screen.
(Inherited from Control.)
Public propertyFontStyle
Gets or sets the style in which the text is rendered.
(Inherited from Control.)
Public propertyFontWeight
Gets or sets the thickness of the specified font.
(Inherited from Control.)
Public propertyForeground
Gets or sets a brush that describes the foreground color.
(Inherited from Control.)
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 propertyHorizontalContentAlignment
Gets or sets the horizontal alignment of the control's content.
(Inherited from Control.)
Public propertyIsEnabled
Gets or sets a value indicating whether the user can interact with the control.
(Inherited from Control.)
Public propertyIsHitTestVisible
Gets or sets whether the contained area of this UIElement can return true values for hit testing.
(Inherited from UIElement.)
Public propertyIsTabStop
Gets or sets a value that indicates whether a control is included in tab navigation.
(Inherited from Control.)
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 propertyMarkers
Gets or sets the markers.
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, but see Remarks) the identifying name of the object. The name provides a reference that is initially markup-compiled. After a XAML processor creates the object tree from markup, run-time code can refer to a markup element 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 propertyPadding
Gets or sets the padding inside a control.
(Inherited from Control.)
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 propertyTabIndex
Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by using the TAB key.
(Inherited from Control.)
Public propertyTabNavigation
Gets or sets a value that modifies how tabbing and TabIndex work for this control.
(Inherited from Control.)
Public propertyTag
Gets or sets an arbitrary object value that can be used to store custom information about this object.
(Inherited from FrameworkElement.)
Public propertyTemplate
Gets or sets a control template.
(Inherited from Control.)
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 propertyVerticalContentAlignment
Gets or sets the vertical alignment of the control's content.
(Inherited from Control.)
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 eventDoubleTap (Inherited from UIElement.)
Public eventDragEnter
Occurs when the input system reports an underlying drag event with this element as the target.
(Inherited from UIElement.)
Public eventDragLeave
Occurs when the input system reports an underlying drag event with this element as the origin.
(Inherited from UIElement.)
Public eventDragOver
Occurs when the input system reports an underlying drag event with this element as the potential drop target.
(Inherited from UIElement.)
Public eventDrop
Occurs when the input system reports an underlying drop event with this element as the drop target.
(Inherited from UIElement.)
Public eventGotFocus
Occurs when a UIElement receives focus.
(Inherited from UIElement.)
Public eventHold (Inherited from UIElement.)
Public eventIsEnabledChanged
Occurs when the IsEnabled property changes.
(Inherited from Control.)
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 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 (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