Dela via


ContentLink Class

Definition

Provides an inline-level content element that provides facilities for hosting links to contextual information.

public ref class ContentLink sealed : Inline
/// [Windows.Foundation.Metadata.Activatable(393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ContentLink final : Inline
[Windows.Foundation.Metadata.Activatable(393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ContentLink : Inline
Public NotInheritable Class ContentLink
Inherits Inline
Inheritance
Object Platform::Object IInspectable DependencyObject TextElement Inline ContentLink
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

Important

This API supports content links. The Windows features that enable content links are not available in versions of Windows after Windows 10 version 1903. Content links for XAML text controls will not function in versions of Windows later than version 1903.

Constructors

ContentLink()

Initializes a new instance of the ContentLink class.

Properties

AccessKey

Gets or sets the access key for this element.

(Inherited from TextElement)
AccessKeyScopeOwner

Gets or sets a source element that provides the access key scope for this element, even if it's not in the visual tree of the source element.

(Inherited from TextElement)
AllowFocusOnInteraction

Gets or sets a value that indicates whether the element automatically gets focus when the user interacts with it.

(Inherited from TextElement)
Background

Gets or sets a brush that provides the background color of the link.

BackgroundProperty

Identifies the Background dependency property.

CharacterSpacing

Gets or sets the uniform spacing between characters, in units of 1/1000 of an em.

(Inherited from TextElement)
ContentEnd

Gets a TextPointer that represents the end of the content in the element.

(Inherited from TextElement)
ContentStart

Gets a TextPointer that represents the start of content in the element.

(Inherited from TextElement)
Cursor

Gets or sets the type of cursor to show when the pointer is over the link.

CursorProperty

Identifies the Cursor dependency property.

Dispatcher

Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread.

(Inherited from DependencyObject)
ElementEnd

Gets a TextPointer that represents the position just after the end of the element.

(Inherited from TextElement)
ElementSoundMode

Gets or sets a value that specifies the control's preference for whether it plays sounds.

ElementSoundModeProperty

Identifies the ElementSoundMode dependency property.

ElementStart

Gets a TextPointer that represents the position just before the start of the element.

(Inherited from TextElement)
ExitDisplayModeOnAccessKeyInvoked

Gets or sets a value that specifies whether the access key display is dismissed when an access key is invoked.

(Inherited from TextElement)
FocusState

Gets a value that specifies whether this link has focus, and the mode by which focus was obtained.

FocusStateProperty

Identifies the FocusState dependency property.

FontFamily

Gets or sets the preferred top-level font family for the content of the element.

(Inherited from TextElement)
FontSize

Gets or sets the font size for the content of the element.

(Inherited from TextElement)
FontStretch

Gets or sets the glyph width of the font in a family to select.

(Inherited from TextElement)
FontStyle

Gets or sets the font style for the content in this element.

(Inherited from TextElement)
FontWeight

Gets or sets the top-level font weight to select from the font family for the content in this element.

(Inherited from TextElement)
Foreground

Gets or sets the Brush to apply to the content in this element.

(Inherited from TextElement)
Info

Gets or sets the information that the ContentLink contains.

IsAccessKeyScope

Gets or sets a value that indicates whether an element defines its own access key scope.

(Inherited from TextElement)
IsTabStop

Gets or sets a value that indicates whether the link is included in tab navigation.

IsTabStopProperty

Identifies the IsTabStop dependency property.

IsTextScaleFactorEnabled

Gets or sets whether automatic text enlargement, to reflect the system text size setting, is enabled.

(Inherited from TextElement)
KeyTipHorizontalOffset

Gets or sets a value that indicates how far left or right the keytip is placed in relation to the text element.

(Inherited from TextElement)
KeyTipPlacementMode

Gets or sets a value that indicates where the KeyTip is placed in relation to the text element.

(Inherited from TextElement)
KeyTipVerticalOffset

Gets or sets a value that indicates how far up or down the keytip is placed in relation to the text element.

(Inherited from TextElement)
Language

Gets or sets localization/globalization language information that applies to a TextElement.

(Inherited from TextElement)
Name

Gets or sets a unique identification for the object. Name can only be set from initial parsing of XAML.

(Inherited from TextElement)
TabIndex

Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key.

TabIndexProperty

Identifies the TabIndex dependency property.

TextDecorations

Gets or sets a value that indicates what decorations are applied to the text.

(Inherited from TextElement)
XamlRoot

Gets or sets the XamlRoot in which this element is being viewed.

(Inherited from TextElement)
XYFocusDown

Gets or sets the object that gets focus when a user presses the Directional Pad (DPAD) down.

XYFocusDownNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of a down navigation.

XYFocusDownNavigationStrategyProperty

Identifies the XYFocusDownNavigationStrategy dependency property.

XYFocusDownProperty

Identifies the XYFocusDown dependency property.

XYFocusLeft

Gets or sets the object that gets focus when a user presses the Directional Pad (DPAD) left.

XYFocusLeftNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of a left navigation.

XYFocusLeftNavigationStrategyProperty

Identifies the XYFocusLeftNavigationStrategy dependency property.

XYFocusLeftProperty

Identifies the XYFocusLeft dependency property.

XYFocusRight

Gets or sets the object that gets focus when a user presses the Directional Pad (DPAD) right.

XYFocusRightNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of a right navigation.

XYFocusRightNavigationStrategyProperty

Identifies the XYFocusRightNavigationStrategy dependency property.

XYFocusRightProperty

Identifies the XYFocusRight dependency property.

XYFocusUp

Gets or sets the object that gets focus when a user presses the Directional Pad (DPAD) up.

XYFocusUpNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of an up navigation.

XYFocusUpNavigationStrategyProperty

Identifies the XYFocusUpNavigationStrategy dependency property.

XYFocusUpProperty

Identifies the XYFocusUp dependency property.

Methods

ClearValue(DependencyProperty)

Clears the local value of a dependency property.

(Inherited from DependencyObject)
FindName(String)

Retrieves an object in the object model / runtime object graph by referencing the object's x:Name or Name attribute value.

(Inherited from TextElement)
Focus(FocusState)

Attempts to set the focus on the link.

GetAnimationBaseValue(DependencyProperty)

Returns any base value established for a dependency property, which would apply in cases where an animation is not active.

(Inherited from DependencyObject)
GetValue(DependencyProperty)

Returns the current effective value of a dependency property from a DependencyObject.

(Inherited from DependencyObject)
OnDisconnectVisualChildren()

Override this method to implement how layout and logic should behave when items are removed from a class-specific content or child property.

(Inherited from TextElement)
ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if a local value is set.

(Inherited from DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance.

(Inherited from DependencyObject)
SetValue(DependencyProperty, Object)

Sets the local value of a dependency property on a DependencyObject.

(Inherited from DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback.

(Inherited from DependencyObject)

Events

AccessKeyDisplayDismissed

Occurs when the access key sequence is complete to notify controls that they should hide access key visuals.

(Inherited from TextElement)
AccessKeyDisplayRequested

Occurs when the access key sequence is started to notify controls that they should show access key visuals.

(Inherited from TextElement)
AccessKeyInvoked

Occurs when a user completes an access key sequence to notify the element that the access key action should be invoked.

(Inherited from TextElement)
GotFocus

Occurs when a link receives focus.

Invoked

Occurs when user interaction activates the link.

LostFocus

Occurs when a link loses focus.

Applies to