Class TitleView
A lightweight View that renders title text with focus-appropriate attributes and raises directional Commands based on its Orientation and Direction.
public sealed class TitleView : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, ITitleView, IOrientation, IDesignable
- Inheritance
-
TitleView
- Implements
- Inherited Members
- Extension Methods
Remarks
TitleView implements IOrientation. When Orientation is Horizontal, Direction is set to LeftRight_TopBottom and Left/Right arrow keys are bound to Left/Right. When Vertical, text renders top-to-bottom and Up/Down arrow keys are bound to Up/Down.
The owning view subscribes to TitleView's directional commands (via CommandsToBubbleUp) to handle navigation.
Constructors
- TitleView()
Initializes a new instance of the TitleView class.
Properties
- Direction
Gets or sets the navigation direction for this title view.
- MeasuredTabLength
Gets the measured tab length (in cells) after UpdateLayout(in TabLayoutContext) has auto-sized the title view. Returns 0 if UpdateLayout(in TabLayoutContext) has not yet been called.
- Orientation
Gets or sets the orientation of the View.
- TabDepth
Gets or sets the tab depth — the number of rows (or columns) the tab header occupies on its TabSide.
- TabSide
Gets or sets which side of the content border the tab header sits on.
Methods
- EnableForDesign()
Causes the View to enable design-time mode. This typically means that the view will load demo data and be configured to allow for design-time manipulation.
- OnOrientationChanged(Orientation)
Called when Orientation has been changed.
Events
- OrientationChanged
Raised when Orientation has changed.
- OrientationChanging
Raised when Orientation is changing. Can be cancelled.