NavigableSymbolSelector Class
Represents a control that contains drop-down lists of accessible symbols (typically types and members) for a document.
[TemplateVisualState(Name = "SelectedRootSymbolActive", GroupName = "RootSymbolStates")]
[TemplateVisualState(Name = "SelectedRootSymbolInactive", GroupName = "RootSymbolStates")]
[TemplateVisualState(Name = "SelectedMemberSymbolActive", GroupName = "MemberSymbolStates")]
[TemplateVisualState(Name = "SelectedMemberSymbolInactive", GroupName = "MemberSymbolStates")]
[TemplateVisualState(Name = "RootDropDown", GroupName = "DisplayModeStates")]
[TemplateVisualState(Name = "MemberDropDown", GroupName = "DisplayModeStates")]
[TemplateVisualState(Name = "DualDropDown", GroupName = "DisplayModeStates")]
public class NavigableSymbolSelector : Control
- Inheritance:
- object Visual UIElement FrameworkElement Control object
Constructors
NavigableSymbolSelector()
Initializes an instance of the class.
public NavigableSymbolSelector()
Properties
AreMemberSymbolsSupported
Indicates whether the member symbols drop-down is displayed.
public bool AreMemberSymbolsSupported { get; set; }
Property Value
- bool:
trueif the member symbols drop-down is displayed; otherwise,false. The default value istrue.
AreRootSymbolsSupported
Indicates whether the root symbols drop-down is displayed.
public bool AreRootSymbolsSupported { get; set; }
Property Value
- bool:
trueif the root symbols drop-down is displayed; otherwise,false. The default value istrue.
IsInSelectedMemberSymbol
Indicates whether the attached SyntaxEditor's caret is within the SelectedMemberSymbol.
public bool IsInSelectedMemberSymbol { get; }
Property Value
- bool:
trueif the attached SyntaxEditor's caret is within the SelectedMemberSymbol; otherwise,false.
IsInSelectedRootSymbol
Indicates whether the attached SyntaxEditor's caret is within the SelectedRootSymbol.
public bool IsInSelectedRootSymbol { get; }
Property Value
- bool:
trueif the attached SyntaxEditor's caret is within the SelectedRootSymbol; otherwise,false.
MemberSymbols
The collection of member INavigableSymbol objects, when available.
public IEnumerable<INavigableSymbol>? MemberSymbols { get; }
Property Value
RootSymbols
The collection of root INavigableSymbol objects, when available.
public IEnumerable<INavigableSymbol>? RootSymbols { get; }
Property Value
SelectedMemberSymbol
The currently-selected INavigableSymbol for a member symbol, if any.
SelectedRootSymbol
Gets or sets the currently-selected INavigableSymbol for a root symbol, if any.
SyntaxEditor
The SyntaxEditor to monitor.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
protected override void OnRender(DrawingContext drawingContext)
| Parameter | Type | Description |
|---|---|---|
| drawingContext | DrawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |
Fields
AreMemberSymbolsSupportedProperty
Defines the AreMemberSymbolsSupported property.
public static readonly DependencyProperty AreMemberSymbolsSupportedProperty
AreRootSymbolsSupportedProperty
Defines the AreRootSymbolsSupported property.
public static readonly DependencyProperty AreRootSymbolsSupportedProperty
IsInSelectedMemberSymbolProperty
Defines the IsInSelectedMemberSymbol property.
public static readonly DependencyProperty IsInSelectedMemberSymbolProperty
IsInSelectedRootSymbolProperty
Defines the IsInSelectedRootSymbol property.
public static readonly DependencyProperty IsInSelectedRootSymbolProperty
MemberSymbolsProperty
Defines the MemberSymbols property.
public static readonly DependencyProperty MemberSymbolsProperty
RootSymbolsProperty
Defines the RootSymbols property.
public static readonly DependencyProperty RootSymbolsProperty
SelectedMemberSymbolProperty
Defines the SelectedMemberSymbol property.
public static readonly DependencyProperty SelectedMemberSymbolProperty
SelectedRootSymbolProperty
Defines the SelectedRootSymbol property.
public static readonly DependencyProperty SelectedRootSymbolProperty
SyntaxEditorProperty
Defines the SyntaxEditor property.
public static readonly DependencyProperty SyntaxEditorProperty