ToggleButton Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The ToggleButton type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone AddHandler 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 methodSupported by Silverlight for Windows Phone ApplyTemplate Loads the relevant control template so that its parts can be referenced. (Inherited from Control.)
Public methodSupported by Silverlight for Windows Phone Arrange 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 methodSupported by Silverlight for Windows Phone ArrangeOverride 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 methodSupported by Silverlight for Windows Phone CaptureMouse Sets mouse capture to a UIElement. (Inherited from UIElement.)
Public methodSupported by Silverlight for Windows Phone CheckAccess Determines whether the calling thread has access to this object. (Inherited from DependencyObject.)
Public methodSupported by Silverlight for Windows Phone ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject.)
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone Finalize 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 methodSupported by Silverlight for Windows Phone FindName Retrieves an object that has the specified identifier name. (Inherited from FrameworkElement.)
Public methodSupported by Silverlight for Windows Phone Focus Attempts to set the focus on the control. (Inherited from Control.)
Public methodSupported by Silverlight for Windows Phone GetAnimationBaseValue 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 methodSupported by Silverlight for Windows Phone GetBindingExpression Retrieves the BindingExpression for a dependency property where a binding is established. (Inherited from FrameworkElement.)
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone GetTemplateChild Retrieves the named element in the instantiated ControlTemplate visual tree. (Inherited from Control.)
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject.)
Public methodSupported by Silverlight for Windows Phone InvalidateArrange 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 methodSupported by Silverlight for Windows Phone InvalidateMeasure Invalidates the measurement state (layout) for a UIElement. (Inherited from UIElement.)
Public methodSupported by Silverlight for Windows Phone Measure Updates the DesiredSize of a UIElement. Typically, objects that implement custom layout for their layout children call this method from their own MeasureOverride implementations to form a recursive layout update. (Inherited from UIElement.)
Protected methodSupported by Silverlight for Windows Phone MeasureOverride 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 methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone OnApplyTemplate Builds the visual tree for the Slider control when a new template is applied. (Inherited from ButtonBase.)

In Silverlight for Windows Phone, this member is overridden by OnApplyTemplate().
Protected methodSupported by Silverlight for Windows Phone OnClick Called when the ToggleButton is clicked by the mouse or the keyboard. (Overrides ButtonBase.OnClick().)
Protected methodSupported by Silverlight for Windows Phone OnContentChanged Called when the ContentControl property changes. (Overrides ContentControl.OnContentChanged(Object, Object).)
Protected methodSupported by Silverlight for Windows Phone OnCreateAutomationPeer Returns a ToggleButtonAutomationPeer for use by the Silverlight automation infrastructure. (Overrides UIElement.OnCreateAutomationPeer().)
Protected methodSupported by Silverlight for Windows Phone OnDoubleTap Called before the DoubleTap event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnDragEnter Called before the DragEnter event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnDragLeave Called before the DragLeave event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnDragOver Called before the DragOver event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnDrop Called before the Drop event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnGotFocus Provides handling for the GotFocus event. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnHold Called before the Hold event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnIsPressedChanged Called when the value of the IsPressed property changes. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnKeyDown Provides class handling for the KeyDown event that occurs when the user presses a key while this control has focus. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnKeyUp Provides class handling for the KeyUp routed event that occurs when the user releases a key while this control has focus. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnLostFocus Provides handling for the LostFocus event. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnLostMouseCapture Provides handling for the LostMouseCapture event. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnManipulationCompleted Called before the ManipulationCompleted event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnManipulationDelta Called before the ManipulationDelta event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnManipulationStarted Called before the ManipulationStarted event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnMouseEnter Provides class handling for the MouseEnter event that occurs when the mouse enters this control. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnMouseLeave Provides class handling for the MouseLeave routed event that occurs when the mouse leaves an element. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnMouseLeftButtonDown Provides class handling for the MouseLeftButtonDown event that occurs when the left mouse button is pressed while the mouse pointer is over this control. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnMouseLeftButtonUp Provides class handling for the MouseLeftButtonUp event that occurs when the left mouse button is released while the mouse pointer is over this control. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnMouseMove Provides class handling for the MouseMove event that occurs when the mouse pointer moves while over this element. (Inherited from ButtonBase.)
Protected methodSupported by Silverlight for Windows Phone OnMouseRightButtonDown Called before the MouseRightButtonDown event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnMouseRightButtonUp Called before the MouseRightButtonUp event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnMouseWheel Called before the MouseWheel event occurs to provide handling for the event in a derived class without attaching a delegate. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnTap Called before the Tap event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnTextInput Called before the TextInput event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnTextInputStart Called before the TextInputStart event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnTextInputUpdate Called before the TextInputUpdate event occurs. (Inherited from Control.)
Protected methodSupported by Silverlight for Windows Phone OnToggle Called by the OnClick method to implement toggle behavior.
Public methodSupported by Silverlight for Windows Phone ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject.)
Public methodSupported by Silverlight for Windows Phone ReleaseMouseCapture Removes mouse capture from a UIElement. After this call, typically no object holds mouse capture. (Inherited from UIElement.)
Public methodSupported by Silverlight for Windows Phone RemoveHandler Removes the specified routed event handler from this UIElement. (Inherited from UIElement.)
Public methodSupported by Silverlight for Windows Phone SetBinding Attaches a binding to a FrameworkElement, using the provided binding object, and returns a BindingExpressionBase for possible later use. (Inherited from FrameworkElement.)
Public methodSupported by Silverlight for Windows Phone SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject.)
Public methodSupported by Silverlight for Windows Phone ToString Returns the string representation of a ToggleButton object. (Overrides Object.ToString().)
Public methodSupported by Silverlight for Windows Phone TransformToVisual Returns a transform object that can be used to transform coordinates from the UIElement to the specified object. (Inherited from UIElement.)
Public methodSupported by Silverlight for Windows Phone UpdateLayout Ensures that all positions of child objects of a UIElement are properly updated for layout. (Inherited from UIElement.)

Top