1 write to States
Microsoft.Maui.Controls (1)
VisualStateManager.cs (1)
385 States = new WatchAddList<VisualState>(OnStatesChanged);
34 references to States
Microsoft.Maui.Controls (34)
Handlers\Items\iOS\TemplatedCell.cs (2)
247 for (var stateIndex = 0; stateIndex < group.States.Count; stateIndex++) 249 var state = group.States[stateIndex];
Handlers\Items2\iOS\TemplatedCell2.cs (2)
156 for (var stateIndex = 0; stateIndex < group.States.Count; stateIndex++) 158 var state = group.States[stateIndex];
RadioButton\RadioButton.cs (4)
580 common.States.Add(new VisualState() { Name = VisualStateManager.CommonStates.Normal }); 581 common.States.Add(new VisualState() { Name = VisualStateManager.CommonStates.Disabled }); 610 checkedStates.States.Add(checkedVisualState); 623 checkedStates.States.Add(uncheckedVisualState);
Shell\BaseShellItem.cs (2)
394 commonGroup.States.Add(normalState); 414 commonGroup.States.Add(selectedState);
TitleBar\TitleBar.cs (4)
457 labelActiveStateGroup.States.Add(activeVisualState); 458 labelActiveStateGroup.States.Add(inactiveVisualState); 561 visualGroup.States.Add(visualVisibleState); 571 visualGroup.States.Add(collapsedState);
VisualElement\VisualElement.cs (2)
1458 foreach (var state in group.States) 1541 foreach (var state in group.States)
VisualStateManager.cs (18)
191 var stateCount = group.States.Count; 196 if (!_names.Add(group.States[stateIndex].Name)) 379 [ContentProperty(nameof(States))] 418 foreach (VisualState state in States) 433 foreach (VisualState state in States) 451 for (var stateIndex = 0; stateIndex < States.Count; stateIndex++) 453 var state = States[stateIndex]; 515 foreach (VisualState state in States) 518 clone.States.Add(state.Clone()); 579 if (States.Count != other.States.Count) 581 for (var i = 0; i < States.Count; i++) 582 if (!States[i].Equals(other.States[i])) 592 for (var i = 0; i < States.Count; i++) 593 hash = (hash * 43) ^ States[i].GetHashCode(); 714 for (var j = 0; j < group.States.Count; j++) 716 if (group.States[j].Name == name)