11 instantiations of VisualState
Microsoft.Maui.Controls (11)
RadioButton\RadioButton.cs (4)
580 common.States.Add(new VisualState() { Name = VisualStateManager.CommonStates.Normal }); 581 common.States.Add(new VisualState() { Name = VisualStateManager.CommonStates.Disabled }); 587 VisualState checkedVisualState = new VisualState() { Name = CheckedVisualState }; 612 VisualState uncheckedVisualState = new VisualState() { Name = UncheckedVisualState };
Shell\BaseShellItem.cs (2)
392 var normalState = new VisualState(); 396 var selectedState = new VisualState();
TitleBar\TitleBar.cs (4)
438 var activeVisualState = new VisualState() { Name = TitleBarActiveState }; 447 var inactiveVisualState = new VisualState() { Name = TitleBarInactiveState }; 553 var visualVisibleState = new VisualState() { Name = visibleState }; 563 var collapsedState = new VisualState() { Name = hiddenState };
VisualStateManager.cs (1)
622 var clone = new VisualState { Name = Name, TargetType = TargetType };
36 references to VisualState
Microsoft.Maui.Controls (34)
BindablePropertyConverter.cs (1)
51 else if (parent is VisualState visualState)
RadioButton\RadioButton.cs (2)
587 VisualState checkedVisualState = new VisualState() { Name = CheckedVisualState }; 612 VisualState uncheckedVisualState = new VisualState() { Name = UncheckedVisualState };
Shell\BaseShellItem.cs (2)
392 var normalState = new VisualState(); 396 var selectedState = new VisualState();
StateTriggerBase.cs (1)
32 internal VisualState VisualState { get; set; }
TitleBar\TitleBar.cs (4)
438 var activeVisualState = new VisualState() { Name = TitleBarActiveState }; 447 var inactiveVisualState = new VisualState() { Name = TitleBarInactiveState }; 553 var visualVisibleState = new VisualState() { Name = visibleState }; 563 var collapsedState = new VisualState() { Name = hiddenState };
VisualElement\VisualElement.cs (2)
1458 foreach (var state in group.States) 1541 foreach (var state in group.States)
VisualStateManager.cs (22)
94 var target = group.GetState(name); 385 States = new WatchAddList<VisualState>(OnStatesChanged); 395 public IList<VisualState> States { get; } 398 public VisualState CurrentState { get; internal set; } 416 internal VisualState GetState(string name) 418 foreach (VisualState state in States) 433 foreach (VisualState state in States) 445 internal VisualState GetActiveTrigger() 447 var defaultState = default(VisualState); 448 var visualState = defaultState; 453 var state = States[stateIndex]; 474 VisualState ResolveStateTriggersConflict(List<StateTriggerBase> conflicts) 515 foreach (VisualState state in States) 537 var newStateTrigger = GetActiveTrigger(); 542 var oldStateTrigger = CurrentState; 552 void OnStatesChanged(IList<VisualState> states) 559 foreach (var state in states) 620 internal VisualState Clone() 622 var clone = new VisualState { Name = Name, TargetType = TargetType }; 651 public override bool Equals(object obj) => Equals(obj as VisualState); 653 bool Equals(VisualState other)
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\BindablePropertyConverter.cs (1)
49 else if (parent.XmlType.NamespaceUri == XamlParser.MauiUri && parent.XmlType.Name == nameof(VisualState))
Microsoft.Maui.Controls.Compatibility (1)
iOS\CollectionView\TemplatedCell.cs (1)
214 var state = group.States[stateIndex];