Export (0) Print
Expand All

DefinitionBase Class

Defines the functionality required to support a shared-size group that is used by the ColumnDefinitionCollection and RowDefinitionCollection classes. This is an abstract class.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

[LocalizabilityAttribute(LocalizationCategory.Ignore)]
public abstract class DefinitionBase : FrameworkContentElement

The DefinitionBase type exposes the following members.

  NameDescription
Public propertyAllowDropGets or sets a value that indicates whether this element can be used as the target of a drag-and-drop operation. (Inherited from ContentElement.)
Public propertyAreAnyTouchesCapturedGets a value that indicates whether at least one touch is captured to this element. (Inherited from ContentElement.)
Public propertyAreAnyTouchesCapturedWithinGets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree. (Inherited from ContentElement.)
Public propertyAreAnyTouchesDirectlyOverGets a value that indicates whether at least one touch is pressed over this element. (Inherited from ContentElement.)
Public propertyAreAnyTouchesOverGets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree. (Inherited from ContentElement.)
Public propertyBindingGroupGets or sets the BindingGroup that is used for the element. (Inherited from FrameworkContentElement.)
Public propertyCommandBindingsGets a collection of CommandBinding objects that are associated with this element. (Inherited from ContentElement.)
Public propertyContextMenuGets or sets the context menu element that should appear whenever the context menu is requested via user interface (UI) from within this element. (Inherited from FrameworkContentElement.)
Public propertyCursorGets or sets the cursor that displays when the mouse pointer is over this element. (Inherited from FrameworkContentElement.)
Public propertyDataContextGets or sets the data context for an element when it participates in data binding. (Inherited from FrameworkContentElement.)
Protected propertyDefaultStyleKeyGets or sets the key to use to find the style template for this control in themes. (Inherited from FrameworkContentElement.)
Public propertyDependencyObjectTypeGets the DependencyObjectType that wraps the CLR type of this instance.  (Inherited from DependencyObject.)
Public propertyDispatcherGets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public propertyFocusableGets or sets a value that indicates whether the element can receive focus. (Inherited from ContentElement.)
Public propertyFocusVisualStyleGets or sets an object that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus. (Inherited from FrameworkContentElement.)
Public propertyForceCursorGets or sets a value indicating whether this FrameworkContentElement should force the user interface (UI) to render the cursor as declared by this instance's Cursor property. (Inherited from FrameworkContentElement.)
Public propertyHasAnimatedPropertiesGets a value that indicates whether this element has any animated properties. (Inherited from ContentElement.)
Public propertyInputBindingsGets the collection of input bindings that are associated with this element. (Inherited from ContentElement.)
Public propertyInputScopeGets or sets the context for input used by this FrameworkContentElement. (Inherited from FrameworkContentElement.)
Public propertyIsEnabledGets or sets a value that indicates whether this element is enabled in the user interface (UI).   (Inherited from ContentElement.)
Protected propertyIsEnabledCoreGets a value that becomes the return value of IsEnabled in derived classes. (Inherited from ContentElement.)
Public propertyIsFocusedGets a value that determines whether this element has logical focus. (Inherited from ContentElement.)
Public propertyIsInitializedGets a value indicating whether this element has been initialized, either by being loaded as Extensible Application Markup Language (XAML), or by explicitly having its EndInit method called. (Inherited from FrameworkContentElement.)
Public propertyIsInputMethodEnabledGets a value that indicates whether an input method system, such as an Input Method Editor (IME), is enabled for processing the input to this element. (Inherited from ContentElement.)
Public propertyIsKeyboardFocusedGets a value that indicates whether this element has keyboard focus. (Inherited from ContentElement.)
Public propertyIsKeyboardFocusWithinGets a value that indicates whether keyboard focus is anywhere within the element or child elements. (Inherited from ContentElement.)
Public propertyIsLoadedGets a value indicating whether this element has been loaded for presentation. (Inherited from FrameworkContentElement.)
Public propertyIsMouseCapturedGets a value that indicates whether the mouse is captured by this element. (Inherited from ContentElement.)
Public propertyIsMouseCaptureWithinGets a value that determines whether mouse capture is held by this element or by child elements in its element tree. (Inherited from ContentElement.)
Public propertyIsMouseDirectlyOverGets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account. (Inherited from ContentElement.)
Public propertyIsMouseOverGets a value that indicates whether the mouse pointer is located over this element (including visual child elements, or its control compositing). (Inherited from ContentElement.)
Public propertyIsSealedGets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject.)
Public propertyIsStylusCapturedGets a value that indicates whether the stylus is captured to this element. (Inherited from ContentElement.)
Public propertyIsStylusCaptureWithinGets a value that determines whether stylus capture is held by this element, including child elements and control compositing. (Inherited from ContentElement.)
Public propertyIsStylusDirectlyOverGets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. (Inherited from ContentElement.)
Public propertyIsStylusOverGets a value that indicates whether the stylus is located over this element (including visual child elements). (Inherited from ContentElement.)
Public propertyLanguageGets or sets localization/globalization language information that applies to an individual element. (Inherited from FrameworkContentElement.)
Protected propertyLogicalChildrenGets an enumerator for the logical child elements of this element. (Inherited from FrameworkContentElement.)
Public propertyNameGets or sets the identifying name of the element. The name provides an instance reference so that programmatic code-behind, such as event handler code, can refer to an element once it is constructed during parsing of XAML. (Inherited from FrameworkContentElement.)
Public propertyOverridesDefaultStyleGets or sets a value indicating whether this element incorporates style properties from theme styles. (Inherited from FrameworkContentElement.)
Public propertyParentGets the parent in the logical tree for this element. (Inherited from FrameworkContentElement.)
Public propertyResourcesGets or sets the current locally-defined resource dictionary. (Inherited from FrameworkContentElement.)
Public propertySharedSizeGroupGets or sets a value that identifies a ColumnDefinition or RowDefinition as a member of a defined group that shares sizing properties.
Public propertyStyleGets or sets the style to be used by this element. (Inherited from FrameworkContentElement.)
Public propertyTagGets or sets an arbitrary object value that can be used to store custom information about this element. (Inherited from FrameworkContentElement.)
Public propertyTemplatedParent Gets a reference to the template parent of this element. This property is not relevant if the element was not created through a template. (Inherited from FrameworkContentElement.)
Public propertyToolTipGets or sets the tool-tip object that is displayed for this element in the user interface (UI). (Inherited from FrameworkContentElement.)
Public propertyTouchesCapturedGets all touch devices that are captured to this element. (Inherited from ContentElement.)
Public propertyTouchesCapturedWithinGets all touch devices that are captured to this element or any child elements in its visual tree. (Inherited from ContentElement.)
Public propertyTouchesDirectlyOverGets all touch devices that are over this element. (Inherited from ContentElement.)
Public propertyTouchesOverGets all touch devices that are over this element or any child elements in its visual tree. (Inherited from ContentElement.)
Top

  NameDescription
Public methodAddHandler(RoutedEvent, Delegate)Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. (Inherited from ContentElement.)
Public methodAddHandler(RoutedEvent, Delegate, Boolean)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 ContentElement.)
Protected methodAddLogicalChildAdds the provided element as a child of this element. (Inherited from FrameworkContentElement.)
Public methodAddToEventRouteAdds handlers to the specified EventRoute for the current ContentElement event handler collection. (Inherited from ContentElement.)
Public methodApplyAnimationClock(DependencyProperty, AnimationClock)Applies an animation to a specified dependency property on this element. Any existing animations are stopped and replaced with the new animation. (Inherited from ContentElement.)
Public methodApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)Applies an animation to a specified dependency property on this element, with the ability to specify what happens if the property already has a running animation. (Inherited from ContentElement.)
Public methodBeginAnimation(DependencyProperty, AnimationTimeline)Starts an animation for a specified animated property on this element. (Inherited from ContentElement.)
Public methodBeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)Starts a specific animation for a specified animated property on this element, with the option of specifying what happens if the property already has a running animation. (Inherited from ContentElement.)
Public methodBeginInitCalled before an element is initialized. (Inherited from FrameworkContentElement.)
Public methodBeginStoryboard(Storyboard)Begins the sequence of actions that are contained in the provided storyboard. (Inherited from FrameworkContentElement.)
Public methodBeginStoryboard(Storyboard, HandoffBehavior) Begins the sequence of actions that are contained in the provided storyboard, with options specified for what should occur if the property is already animated. (Inherited from FrameworkContentElement.)
Public methodBeginStoryboard(Storyboard, HandoffBehavior, Boolean) Begins the sequence of actions that are contained in the provided storyboard, with specified state for control of the animation after it is started. (Inherited from FrameworkContentElement.)
Public methodBringIntoViewAttempts to bring this element into view, within any scrollable regions it is contained within. (Inherited from FrameworkContentElement.)
Public methodCaptureMouseAttempts to force capture of the mouse to this element. (Inherited from ContentElement.)
Public methodCaptureStylusAttempts to force capture of the stylus to this element. (Inherited from ContentElement.)
Public methodCaptureTouchAttempts to force capture of a touch to this element. (Inherited from ContentElement.)
Public methodCheckAccessDetermines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public methodClearValue(DependencyProperty)Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (Inherited from DependencyObject.)
Public methodClearValue(DependencyPropertyKey)Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (Inherited from DependencyObject.)
Public methodCoerceValueCoerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject.)
Public methodEndInit Called immediately after an element is initialized. (Inherited from FrameworkContentElement.)
Public methodEqualsDetermines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindName Finds an element that has the provided identifier name. (Inherited from FrameworkContentElement.)
Public methodFindResource Searches for a resource with the specified key, and will throw an exception if the requested resource is not found. (Inherited from FrameworkContentElement.)
Public methodFocusAttempts to set focus to this element. (Inherited from ContentElement.)
Public methodGetAnimationBaseValueReturns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation. (Inherited from ContentElement.)
Public methodGetBindingExpression Gets the BindingExpression for the specified property's binding. (Inherited from FrameworkContentElement.)
Public methodGetHashCodeGets a hash code for this DependencyObject. (Inherited from DependencyObject.)
Public methodGetLocalValueEnumeratorCreates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetUIParentCoreReturns an alternative logical parent for this element if there is no visual parent. In this case, a FrameworkContentElement parent is always the same value as the Parent property. (Inherited from FrameworkContentElement.)
Public methodGetValueReturns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.)
Public methodInvalidatePropertyRe-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodMoveFocus Moves the keyboard focus from this element to another element. (Inherited from FrameworkContentElement.)
Protected methodOnContextMenuClosing Invoked whenever the ContextMenuClosing routed event reaches this class in its route. Implement this method to add class handling for this event. (Inherited from FrameworkContentElement.)
Protected methodOnContextMenuOpening Invoked whenever the ContextMenuOpening routed event reaches this class in its route. Implement this method to add class handling for this event. (Inherited from FrameworkContentElement.)
Protected methodOnCreateAutomationPeerReturns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure. (Inherited from ContentElement.)
Protected methodOnDragEnterInvoked when an unhandled DragDrop.DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnDragLeaveInvoked when an unhandled DragDrop.DragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnDragOverInvoked when an unhandled DragDrop.DragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnDropInvoked when an unhandled DragDrop.DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnGiveFeedbackInvoked when an unhandled DragDrop.GiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnGotFocusClass handler for the GotFocus event. (Inherited from FrameworkContentElement.)
Protected methodOnGotKeyboardFocusInvoked when an unhandled Keyboard.GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnGotMouseCaptureInvoked when an unhandled Mouse.GotMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnGotStylusCaptureInvoked when an unhandled Stylus.GotStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnGotTouchCaptureProvides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element. (Inherited from ContentElement.)
Protected methodOnInitialized Raises the Initialized event. This method is invoked whenever IsInitialized is set to true. (Inherited from FrameworkContentElement.)
Protected methodOnIsKeyboardFocusedChangedInvoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnIsKeyboardFocusWithinChangedInvoked just before the IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnIsMouseCapturedChangedInvoked when an unhandled IsMouseCapturedChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnIsMouseCaptureWithinChangedInvoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnIsMouseDirectlyOverChangedInvoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnIsStylusCapturedChangedInvoked when an unhandled IsStylusCapturedChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnIsStylusCaptureWithinChangedInvoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnIsStylusDirectlyOverChangedInvoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnKeyDownInvoked when an unhandled Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnKeyUpInvoked when an unhandled Keyboard.KeyUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnLostFocusRaises the LostFocus routed event by using the event data that is provided. (Inherited from ContentElement.)
Protected methodOnLostKeyboardFocusInvoked when an unhandled Keyboard.LostKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnLostMouseCaptureInvoked when an unhandled Mouse.LostMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnLostStylusCaptureInvoked when an unhandled Stylus.LostStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnLostTouchCaptureProvides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture. (Inherited from ContentElement.)
Protected methodOnMouseDownInvoked when an unhandled Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnMouseEnterInvoked when an unhandled Mouse.MouseEnter attached event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnMouseLeaveInvoked when an unhandled Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnMouseLeftButtonDownInvoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnMouseLeftButtonUpInvoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnMouseMoveInvoked when an unhandled Mouse.MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnMouseRightButtonDownInvoked when an unhandled MouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnMouseRightButtonUpInvoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnMouseUpInvoked when an unhandled Mouse.MouseUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnMouseWheelInvoked when an unhandled Mouse.MouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewDragEnterInvoked when an unhandled DragDrop.PreviewDragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewDragLeaveInvoked when an unhandled DragDrop.PreviewDragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewDragOverInvoked when an unhandled DragDrop.PreviewDragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewDropInvoked when an unhandled DragDrop.PreviewDrop attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewGiveFeedbackInvoked when an unhandled DragDrop.PreviewGiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewGotKeyboardFocusInvoked when an unhandled Keyboard.PreviewGotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewKeyDownInvoked when an unhandled Keyboard.PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewKeyUpInvoked when an unhandled Keyboard.PreviewKeyUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewLostKeyboardFocusInvoked when an unhandled Keyboard.PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewMouseDownInvoked when an unhandled Mouse.PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewMouseLeftButtonDownInvoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewMouseLeftButtonUpInvoked when an unhandled PreviewMouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewMouseMoveInvoked when an unhandled Mouse.PreviewMouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewMouseRightButtonDownInvoked when an unhandled PreviewMouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewMouseRightButtonUpInvoked when an unhandled PreviewMouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewMouseUpInvoked when an unhandled Mouse.PreviewMouseUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewMouseWheelInvoked when an unhandled Mouse.PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewQueryContinueDragInvoked when an unhandled DragDrop.PreviewQueryContinueDrag attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewStylusButtonDownInvoked when an unhandled Stylus.PreviewStylusButtonDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewStylusButtonUpInvoked when an unhandled Stylus.PreviewStylusButtonUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewStylusDownInvoked when an unhandled Stylus.PreviewStylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewStylusInAirMoveInvoked when an unhandled Stylus.PreviewStylusInAirMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewStylusInRangeInvoked when an unhandled Stylus.PreviewStylusInRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewStylusMoveInvoked when an unhandled Stylus.PreviewStylusMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewStylusOutOfRangeInvoked when an unhandled Stylus.PreviewStylusOutOfRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewStylusSystemGestureInvoked when an unhandled Stylus.PreviewStylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewStylusUpInvoked when an unhandled Stylus.PreviewStylusUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewTextInputInvoked when an unhandled TextCompositionManager.PreviewTextInput attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnPreviewTouchDownProvides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element. (Inherited from ContentElement.)
Protected methodOnPreviewTouchMoveProvides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element. (Inherited from ContentElement.)
Protected methodOnPreviewTouchUpProvides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element. (Inherited from ContentElement.)
Protected methodOnPropertyChangedInvoked whenever the effective value of any dependency property on this FrameworkContentElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides OnPropertyChanged. (Inherited from FrameworkContentElement.)
Protected methodOnQueryContinueDragInvoked when an unhandled DragDrop.QueryContinueDrag attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnQueryCursorInvoked when an unhandled Mouse.QueryCursor attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStyleChangedInvoked when the style that is in use on this element changes. (Inherited from FrameworkContentElement.)
Protected methodOnStylusButtonDownInvoked when an unhandled Stylus.StylusButtonDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusButtonUpInvoked when an unhandled Stylus.StylusButtonUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusDownInvoked when an unhandled Stylus.StylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusEnterInvoked when an unhandled Stylus.StylusEnter attached event is raised by this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusInAirMoveInvoked when an unhandled Stylus.StylusInAirMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusInRangeInvoked when an unhandled Stylus.StylusInRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusLeaveInvoked when an unhandled Stylus.StylusLeave attached event is raised by this element. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusMoveInvoked when an unhandled Stylus.StylusMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusOutOfRangeInvoked when an unhandled Stylus.StylusOutOfRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusSystemGestureInvoked when an unhandled Stylus.StylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnStylusUpInvoked when an unhandled Stylus.StylusUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnTextInputInvoked when an unhandled TextCompositionManager.TextInput attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from ContentElement.)
Protected methodOnToolTipClosing Invoked whenever the ToolTipClosing routed event reaches this class in its route. Implement this method to add class handling for this event. (Inherited from FrameworkContentElement.)
Protected methodOnToolTipOpening Invoked whenever the ToolTipOpening routed event reaches this class in its route. Implement this method to add class handling for this event. (Inherited from FrameworkContentElement.)
Protected methodOnTouchDownProvides class handling for the TouchDown routed event that occurs when a touch presses inside this element. (Inherited from ContentElement.)
Protected methodOnTouchEnterProvides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element. (Inherited from ContentElement.)
Protected methodOnTouchLeaveProvides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this element. (Inherited from ContentElement.)
Protected methodOnTouchMoveProvides class handling for the TouchMove routed event that occurs when a touch moves while inside this element. (Inherited from ContentElement.)
Protected methodOnTouchUpProvides class handling for the TouchUp routed event that occurs when a touch is released inside this element. (Inherited from ContentElement.)
Public methodPredictFocusDetermines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus. This method is sealed and cannot be overridden. (Inherited from FrameworkContentElement.)
Public methodRaiseEventRaises 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). (Inherited from ContentElement.)
Public methodReadLocalValueReturns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Public methodRegisterNameProvides an accessor that simplifies access to the NameScope registration method. (Inherited from FrameworkContentElement.)
Public methodReleaseAllTouchCapturesReleases all captured touch devices from this element. (Inherited from ContentElement.)
Public methodReleaseMouseCaptureReleases the mouse capture, if this element held the capture. (Inherited from ContentElement.)
Public methodReleaseStylusCaptureReleases the stylus device capture, if this element held the capture. (Inherited from ContentElement.)
Public methodReleaseTouchCaptureAttempts to release the specified touch device from this element. (Inherited from ContentElement.)
Public methodRemoveHandlerRemoves the specified routed event handler from this element. (Inherited from ContentElement.)
Protected methodRemoveLogicalChildRemoves the specified element from the logical tree for this element. (Inherited from FrameworkContentElement.)
Public methodSetBinding(DependencyProperty, String)Attaches a binding to this element, based on the provided source property name as a path qualification to the data source. (Inherited from FrameworkContentElement.)
Public methodSetBinding(DependencyProperty, BindingBase)Attaches a binding to this element, based on the provided binding object. (Inherited from FrameworkContentElement.)
Public methodSetCurrentValueSets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Public methodSetResourceReferenceSearches for a resource with the specified name and sets up a resource reference to it for the specified property. (Inherited from FrameworkContentElement.)
Public methodSetValue(DependencyProperty, Object)Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Public methodSetValue(DependencyPropertyKey, Object)Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (Inherited from DependencyObject.)
Public methodShouldSerializeCommandBindingsReturns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class. (Inherited from ContentElement.)
Public methodShouldSerializeInputBindingsReturns whether serialization processes should serialize the contents of the InputBindings property on instances of this class. (Inherited from ContentElement.)
Protected methodShouldSerializePropertyReturns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from DependencyObject.)
Public methodShouldSerializeResourcesReturns whether serialization processes should serialize the contents of the Resources property on instances of this class. (Inherited from FrameworkContentElement.)
Public methodShouldSerializeStyleReturns whether serialization processes should serialize the contents of the Style property on instances of this class. (Inherited from FrameworkContentElement.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryFindResourceSearches for a resource with the specified key, and returns that resource if found. (Inherited from FrameworkContentElement.)
Public methodUnregisterNameSimplifies access to the NameScope de-registration method. (Inherited from FrameworkContentElement.)
Public methodUpdateDefaultStyleReapplies the default style to the current FrameworkContentElement. (Inherited from FrameworkContentElement.)
Public methodVerifyAccessEnforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top

  NameDescription
Public eventContextMenuClosingOccurs just before any context menu on the element is closed. (Inherited from FrameworkContentElement.)
Public eventContextMenuOpening Occurs when any context menu on the element is opened. (Inherited from FrameworkContentElement.)
Public eventDataContextChanged Occurs when this element's data context changes. (Inherited from FrameworkContentElement.)
Public eventDragEnterOccurs when the input system reports an underlying drag event with this element as the drag target. (Inherited from ContentElement.)
Public eventDragLeaveOccurs when the input system reports an underlying drag event with this element as the drag origin. (Inherited from ContentElement.)
Public eventDragOverOccurs when the input system reports an underlying drag event with this element as the potential drop target. (Inherited from ContentElement.)
Public eventDropOccurs when the input system reports an underlying drop event with this element as the drop target. (Inherited from ContentElement.)
Public eventFocusableChangedOccurs when the value of the Focusable property changes. (Inherited from ContentElement.)
Public eventGiveFeedbackOccurs when the input system reports an underlying drag-and-drop event that involves this element. (Inherited from ContentElement.)
Public eventGotFocusOccurs when this element gets logical focus. (Inherited from ContentElement.)
Public eventGotKeyboardFocusOccurs when the keyboard is focused on this element. (Inherited from ContentElement.)
Public eventGotMouseCaptureOccurs when this element captures the mouse. (Inherited from ContentElement.)
Public eventGotStylusCaptureOccurs when this element captures the stylus. (Inherited from ContentElement.)
Public eventGotTouchCaptureOccurs when a touch is captured to this element. (Inherited from ContentElement.)
Public eventInitialized Occurs when this FrameworkContentElement is initialized. This coincides with cases where the value of the IsInitialized property changes from false (or undefined) to true. (Inherited from FrameworkContentElement.)
Public eventIsEnabledChangedOccurs when the value of the IsEnabled property on this element changes. (Inherited from ContentElement.)
Public eventIsKeyboardFocusedChangedOccurs when the value of the IsKeyboardFocused property changes on this element. (Inherited from ContentElement.)
Public eventIsKeyboardFocusWithinChangedOccurs when the value of the IsKeyboardFocusWithinChanged property changes on this element. (Inherited from ContentElement.)
Public eventIsMouseCapturedChangedOccurs when the value of the IsMouseCaptured property changes on this element. (Inherited from ContentElement.)
Public eventIsMouseCaptureWithinChangedOccurs when the value of the IsMouseCaptureWithinProperty changes on this element. (Inherited from ContentElement.)
Public eventIsMouseDirectlyOverChangedOccurs when the value of the IsMouseDirectlyOver property changes on this element. (Inherited from ContentElement.)
Public eventIsStylusCapturedChangedOccurs when the value of the IsStylusCaptured property changes on this element. (Inherited from ContentElement.)
Public eventIsStylusCaptureWithinChangedOccurs when the value of the IsStylusCaptureWithin property changes on this element. (Inherited from ContentElement.)
Public eventIsStylusDirectlyOverChangedOccurs when the value of the IsStylusDirectlyOver property changes on this element. (Inherited from ContentElement.)
Public eventKeyDownOccurs when a key is pressed while focus is on this element. (Inherited from ContentElement.)
Public eventKeyUpOccurs when a key is released while focus is on this element. (Inherited from ContentElement.)
Public eventLoaded Occurs when the element is laid out, rendered, and ready for interaction. (Inherited from FrameworkContentElement.)
Public eventLostFocusOccurs when this element loses logical focus. (Inherited from ContentElement.)
Public eventLostKeyboardFocusOccurs when the keyboard is no longer focused on this element. (Inherited from ContentElement.)
Public eventLostMouseCaptureOccurs when this element loses mouse capture. (Inherited from ContentElement.)
Public eventLostStylusCaptureOccurs when this element loses stylus capture. (Inherited from ContentElement.)
Public eventLostTouchCaptureOccurs when this element loses a touch capture. (Inherited from ContentElement.)
Public eventMouseDownOccurs when any mouse button is pressed while the pointer is over this element. (Inherited from ContentElement.)
Public eventMouseEnterOccurs when the mouse pointer enters the bounds of this element. (Inherited from ContentElement.)
Public eventMouseLeaveOccurs when the mouse pointer leaves the bounds of this element. (Inherited from ContentElement.)
Public eventMouseLeftButtonDownOccurs when the left mouse button is pressed while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventMouseLeftButtonUpOccurs when the left mouse button is released while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventMouseMoveOccurs when the mouse pointer moves while over this element. (Inherited from ContentElement.)
Public eventMouseRightButtonDownOccurs when the right mouse button is pressed while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventMouseRightButtonUpOccurs when the right mouse button is released while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventMouseUpOccurs when any mouse button is released over this element. (Inherited from ContentElement.)
Public eventMouseWheelOccurs when the user rotates the mouse wheel while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewDragEnterOccurs when the input system reports an underlying drag event with this element as the drag target. (Inherited from ContentElement.)
Public eventPreviewDragLeaveOccurs when the input system reports an underlying drag event with this element as the drag origin. (Inherited from ContentElement.)
Public eventPreviewDragOverOccurs when the input system reports an underlying drag event with this element as the potential drop target. (Inherited from ContentElement.)
Public eventPreviewDropOccurs when the input system reports an underlying drop event with this element as the drop target. (Inherited from ContentElement.)
Public eventPreviewGiveFeedbackOccurs when a drag-and-drop operation is started. (Inherited from ContentElement.)
Public eventPreviewGotKeyboardFocusOccurs when the keyboard is focused on this element. (Inherited from ContentElement.)
Public eventPreviewKeyDownOccurs when a key is pressed while the keyboard is focused on this element. (Inherited from ContentElement.)
Public eventPreviewKeyUpOccurs when a key is released while the keyboard is focused on this element. (Inherited from ContentElement.)
Public eventPreviewLostKeyboardFocusOccurs when the keyboard is no longer focused on this element. (Inherited from ContentElement.)
Public eventPreviewMouseDownOccurs when any mouse button is pressed while the pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewMouseLeftButtonDownOccurs when the left mouse button is pressed while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewMouseLeftButtonUpOccurs when the left mouse button is released while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewMouseMoveOccurs when the mouse pointer moves while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewMouseRightButtonDownOccurs when the right mouse button is pressed while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewMouseRightButtonUpOccurs when the right mouse button is released while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewMouseUpOccurs when any mouse button is released while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewMouseWheelOccurs when the user rotates the mouse wheel while the mouse pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewQueryContinueDragOccurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. (Inherited from ContentElement.)
Public eventPreviewStylusButtonDownOccurs when the stylus button is pressed while the pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewStylusButtonUpOccurs when the stylus button is released while the pointer is over this element. (Inherited from ContentElement.)
Public eventPreviewStylusDownOccurs when the stylus touches the digitizer while it is over this element. (Inherited from ContentElement.)
Public eventPreviewStylusInAirMoveOccurs when the stylus moves over an element without actually touching the digitizer. (Inherited from ContentElement.)
Public eventPreviewStylusInRangeOccurs when the stylus is close enough to the digitizer to be detected, while over this element. (Inherited from ContentElement.)
Public eventPreviewStylusMoveOccurs when the stylus moves while over the element. The stylus must move while being detected by the  digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead. (Inherited from ContentElement.)
Public eventPreviewStylusOutOfRangeOccurs when the stylus is too far from the digitizer to be detected. (Inherited from ContentElement.)
Public eventPreviewStylusSystemGestureOccurs when a user performs one of several stylus gestures. (Inherited from ContentElement.)
Public eventPreviewStylusUpOccurs when the user raises the stylus off the digitizer while the stylus is over this element. (Inherited from ContentElement.)
Public eventPreviewTextInputOccurs when this element gets text in a device-independent manner. (Inherited from ContentElement.)
Public eventPreviewTouchDownOccurs when a finger touches the screen while the finger is over this element. (Inherited from ContentElement.)
Public eventPreviewTouchMoveOccurs when a finger moves on the screen while the finger is over this element. (Inherited from ContentElement.)
Public eventPreviewTouchUpOccurs when a finger is raised off of the screen while the finger is over this element. (Inherited from ContentElement.)
Public eventQueryContinueDragOccurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. (Inherited from ContentElement.)
Public eventQueryCursorOccurs when the cursor is requested to display. This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position. (Inherited from ContentElement.)
Public eventSourceUpdatedOccurs when any associated data source participating in a binding on this element changes. (Inherited from FrameworkContentElement.)
Public eventStylusButtonDownOccurs when the stylus button is pressed while the pointer is over this element. (Inherited from ContentElement.)
Public eventStylusButtonUpOccurs when the stylus button is released while the pointer is over this element. (Inherited from ContentElement.)
Public eventStylusDownOccurs when the stylus touches the digitizer while the stylus is over this element. (Inherited from ContentElement.)
Public eventStylusEnterOccurs when the stylus enters the bounds of this element. (Inherited from ContentElement.)
Public eventStylusInAirMoveOccurs when the stylus moves over an element without actually touching the digitizer. (Inherited from ContentElement.)
Public eventStylusInRangeOccurs when the stylus is close enough to the digitizer to be detected, while over this element. (Inherited from ContentElement.)
Public eventStylusLeaveOccurs when the stylus leaves the bounds of the element. (Inherited from ContentElement.)
Public eventStylusMoveOccurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead. (Inherited from ContentElement.)
Public eventStylusOutOfRangeOccurs when the stylus is too far from the digitizer to be detected, while over this element. (Inherited from ContentElement.)
Public eventStylusSystemGestureOccurs when a user performs one of several stylus gestures. (Inherited from ContentElement.)
Public eventStylusUpOccurs when the user raises the stylus off the digitizer while it is over this element. (Inherited from ContentElement.)
Public eventTargetUpdated Occurs when any associated target property participating in a binding on this element changes. (Inherited from FrameworkContentElement.)
Public eventTextInputOccurs when this element gets text in a device-independent manner. (Inherited from ContentElement.)
Public eventToolTipClosing Occurs just before any tooltip on the element is closed. (Inherited from FrameworkContentElement.)
Public eventToolTipOpening Occurs when any tooltip on the element is opened. (Inherited from FrameworkContentElement.)
Public eventTouchDownOccurs when a finger touches the screen while the finger is over this element. (Inherited from ContentElement.)
Public eventTouchEnterOccurs when a touch moves from outside to inside the bounds of this element. (Inherited from ContentElement.)
Public eventTouchLeaveOccurs when a touch moves from inside to outside the bounds of this element. (Inherited from ContentElement.)
Public eventTouchMoveOccurs when a finger moves on the screen while the finger is over this element. (Inherited from ContentElement.)
Public eventTouchUpOccurs when a finger is raised off of the screen while the finger is over this element. (Inherited from ContentElement.)
Public eventUnloadedOccurs when the element is removed from an element tree of loaded elements. (Inherited from FrameworkContentElement.)
Top

  NameDescription
Public fieldStatic memberSharedSizeGroupPropertyIdentifies the SharedSizeGroup dependency property.
Top

  NameDescription
Explicit interface implemetationPrivate methodIQueryAmbient.IsAmbientPropertyAvailableFor a description of this member, see the IsAmbientPropertyAvailable method. (Inherited from FrameworkContentElement.)
Top

This example shows how to share the sizing data of columns and rows between Grid elements in order to keep sizing consistent.

The following example introduces two Grid elements as child elements of a parent DockPanel. The IsSharedSizeScope attached property of Grid is defined on the parent DockPanel.

The example manipulates the property value by using two Button elements; each element represents one of the Boolean property values. When the IsSharedSizeScope property value is set to true, each column or row member of a SharedSizeGroup shares sizing information, regardless of the content of a row or column.

	<DockPanel Name="dp1" Grid.IsSharedSizeScope="False" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10">

...

<StackPanel Orientation="Horizontal" DockPanel.Dock="Top">  
    <Button Click="setTrue" Margin="0,0,10,10">Set IsSharedSizeScope="True"</Button>
    <Button Click="setFalse" Margin="0,0,10,10">Set IsSharedSizeScope="False"</Button>
</StackPanel> 

<StackPanel Orientation="Horizontal" DockPanel.Dock="Top">

<Grid ShowGridLines="True" Margin="0,0,10,0">
  <Grid.ColumnDefinitions>
    <ColumnDefinition SharedSizeGroup="FirstColumn"/>
    <ColumnDefinition SharedSizeGroup="SecondColumn"/>
  </Grid.ColumnDefinitions>
  <Grid.RowDefinitions>
    <RowDefinition Height="Auto" SharedSizeGroup="FirstRow"/>
  </Grid.RowDefinitions>

    <Rectangle Fill="Silver" Grid.Column="0" Grid.Row="0" Width="200" Height="100"/>
    <Rectangle Fill="Blue" Grid.Column="1" Grid.Row="0" Width="150" Height="100"/>

    <TextBlock Grid.Column="0" Grid.Row="0" FontWeight="Bold">First Column</TextBlock>
    <TextBlock Grid.Column="1" Grid.Row="0" FontWeight="Bold">Second Column</TextBlock>
</Grid>

<Grid ShowGridLines="True">
  <Grid.ColumnDefinitions>
    <ColumnDefinition SharedSizeGroup="FirstColumn"/>
    <ColumnDefinition SharedSizeGroup="SecondColumn"/>
  </Grid.ColumnDefinitions>
  <Grid.RowDefinitions>        
    <RowDefinition Height="Auto" SharedSizeGroup="FirstRow"/>
  </Grid.RowDefinitions>

    <Rectangle Fill="Silver" Grid.Column="0" Grid.Row="0"/>
    <Rectangle Fill="Blue" Grid.Column="1" Grid.Row="0"/>

    <TextBlock Grid.Column="0" Grid.Row="0" FontWeight="Bold">First Column</TextBlock>
    <TextBlock Grid.Column="1" Grid.Row="0" FontWeight="Bold">Second Column</TextBlock>
</Grid>

</StackPanel>

<TextBlock Margin="10" DockPanel.Dock="Top" Name="txt1"/>

The following code-behind example handles the methods that the button Click event raises. The example writes the results of these method calls to TextBlock elements that use related get methods to output the new property values as strings.

private void setTrue(object sender, System.Windows.RoutedEventArgs e)
{
    Grid.SetIsSharedSizeScope(dp1, true);
    txt1.Text = "IsSharedSizeScope Property is set to " + Grid.GetIsSharedSizeScope(dp1).ToString();
}

private void setFalse(object sender, System.Windows.RoutedEventArgs e)
{
    Grid.SetIsSharedSizeScope(dp1, false);
    txt1.Text = "IsSharedSizeScope Property is set to " + Grid.GetIsSharedSizeScope(dp1).ToString();
}

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft