1 write to States
Microsoft.Maui.Controls (1)
VisualStateManager.cs (1)
385
States
= new WatchAddList<VisualState>(OnStatesChanged);
32 references to States
Microsoft.Maui.Controls (30)
RadioButton\RadioButton.cs (4)
573
common.
States
.Add(new VisualState() { Name = VisualStateManager.CommonStates.Normal });
574
common.
States
.Add(new VisualState() { Name = VisualStateManager.CommonStates.Disabled });
603
checkedStates.
States
.Add(checkedVisualState);
616
checkedStates.
States
.Add(uncheckedVisualState);
Shell\BaseShellItem.cs (2)
394
commonGroup.
States
.Add(normalState);
414
commonGroup.
States
.Add(selectedState);
TitleBar\TitleBar.cs (4)
471
labelActiveStateGroup.
States
.Add(activeVisualState);
472
labelActiveStateGroup.
States
.Add(inactiveVisualState);
575
visualGroup.
States
.Add(visualVisibleState);
585
visualGroup.
States
.Add(collapsedState);
VisualElement\VisualElement.cs (2)
1461
foreach (var state in group.
States
)
1544
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)
Microsoft.Maui.Controls.Compatibility (2)
iOS\CollectionView\TemplatedCell.cs (2)
212
for (var stateIndex = 0; stateIndex < group.
States
.Count; stateIndex++)
214
var state = group.
States
[stateIndex];