Udostępnij za pośrednictwem


HubSection.IsHeaderInteractive Property

Definition

Gets or sets a value that indicates whether the section header raises a SectionHeaderClick event on its containing Hub.

public:
 property bool IsHeaderInteractive { bool get(); void set(bool value); };
bool IsHeaderInteractive();

void IsHeaderInteractive(bool value);
public bool IsHeaderInteractive { get; set; }
var boolean = hubSection.isHeaderInteractive;
hubSection.isHeaderInteractive = boolean;
Public Property IsHeaderInteractive As Boolean
<HubSection IsHeaderInteractive="bool" />

Property Value

Boolean

bool

true if the section header raises a SectionHeaderClick event; otherwise, false. The default is false.

Remarks

You can make a section header interactive by setting the IsHeaderInteractive property to true. Typically, the user can tap an interactive header to navigate to the corresponding app section page.

You can respond to a tapped header by handling the Hub.SectionHeaderClick event. You get the section that was clicked from the SectionHeaderClickEventArgs.Section property of the event data.

When its IsHeaderInteractive property is true, the default header includes the text, See more. When a user taps the See more text, the SectionHeaderClick event is raised. The text is rendered as a hyperlink, which uses the user selected system accent color by default.

Notes for previous versions

Windows 8.x When its IsHeaderInteractive property is true, the default header includes a chevron glyph, and "Hover" and "Pressed" visual states. If you use a custom HeaderTemplate, you should provide similar visual cues to indicate that the header is interactive.

Applies to

See also