6 instantiations of VisualStateGroup
Microsoft.Maui.Controls (6)
RadioButton\RadioButton.cs (2)
579 var common = new VisualStateGroup() { Name = "Common" }; 585 var checkedStates = new VisualStateGroup() { Name = "CheckedStates" };
Shell\BaseShellItem.cs (1)
388 var commonGroup = new VisualStateGroup();
TitleBar\TitleBar.cs (2)
456 var labelActiveStateGroup = new VisualStateGroup() { Name = "TitleActiveStates" }; 552 var visualGroup = new VisualStateGroup();
VisualStateManager.cs (1)
513 var clone = new VisualStateGroup { TargetType = TargetType, Name = Name, CurrentState = CurrentState, VisualElement = VisualElement };
54 references to VisualStateGroup
Microsoft.Maui.Controls (52)
BindablePropertyConverter.cs (2)
135 if (parents[2] is not VisualStateGroup) 136 throw new XamlParseException($"Expected {nameof(VisualStateGroup)} but found {parents[2]}.", lineInfo);
Handlers\Items\iOS\TemplatedCell.cs (1)
246 var group = groups[groupIndex];
Handlers\Items2\iOS\TemplatedCell2.cs (1)
155 var group = groups[groupIndex];
RadioButton\RadioButton.cs (2)
579 var common = new VisualStateGroup() { Name = "Common" }; 585 var checkedStates = new VisualStateGroup() { Name = "CheckedStates" };
Setter.cs (1)
81 else if (Value is IList<VisualStateGroup> visualStateGroupCollection)
Shell\BaseShellItem.cs (1)
388 var commonGroup = new VisualStateGroup();
TitleBar\TitleBar.cs (9)
385 var leadingVisibleGroup = GetVisibleStateGroup(TitleBarLeading, LeadingVisibleState, LeadingHiddenState); 408 var iconVisibleGroup = GetVisibleStateGroup(TitleBarIcon, IconVisibleState, IconHiddenState); 456 var labelActiveStateGroup = new VisualStateGroup() { Name = "TitleActiveStates" }; 461 var titleVisibleGroup = GetVisibleStateGroup(TitleBarTitle, TitleVisibleState, TitleHiddenState); 492 var subtitleVisibleGroup = GetVisibleStateGroup(TitleBarSubtitle, SubtitleVisibleState, SubtitleHiddenState); 511 var contentVisibleGroup = GetVisibleStateGroup(TitleBarContent, ContentVisibleState, ContentHiddenState); 530 var trailingContentVisibleGroup = GetVisibleStateGroup(TitleBarTrailing, TrailingVisibleState, TrailingHiddenState); 550 static VisualStateGroup GetVisibleStateGroup(string targetName, string visibleState, string hiddenState) 552 var visualGroup = new VisualStateGroup();
VisualElement\VisualElement.cs (4)
1452 var groups = (IList<VisualStateGroup>)GetValue(VisualStateManager.VisualStateGroupsProperty); 1457 foreach (var group in groups) 1535 var groups = (IList<VisualStateGroup>)GetValue(VisualStateManager.VisualStateGroupsProperty); 1540 foreach (var group in groups)
VisualStateManager.cs (31)
37 foreach (var group in oldVisualStateGroupList) 57 public static IList<VisualStateGroup> GetVisualStateGroups(VisualElement visualElement) 58 => (IList<VisualStateGroup>)visualElement.GetValue(VisualStateGroupsProperty); 85 foreach (VisualStateGroup group in groups) 138 var groups = (IList<VisualStateGroup>)visualElement.GetValue(VisualStateGroupsProperty); 140 foreach (VisualStateGroup group in groups) 149 public class VisualStateGroupList : IList<VisualStateGroup> 151 readonly IList<VisualStateGroup> _internalList; 158 void Validate(IList<VisualStateGroup> groups) 187 var group = groups[groupIndex]; 213 _internalList = new WatchAddList<VisualStateGroup>(ValidateAndNotify); 221 void ValidateAndNotify(IList<VisualStateGroup> groups) 231 public IEnumerator<VisualStateGroup> GetEnumerator() 242 public void Add(VisualStateGroup item) 257 foreach (var group in _internalList) 266 public bool Contains(VisualStateGroup item) 272 public void CopyTo(VisualStateGroup[] array, int arrayIndex) 278 public bool Remove(VisualStateGroup item) 296 public int IndexOf(VisualStateGroup item) 302 public void Insert(int index, VisualStateGroup item) 320 public VisualStateGroup this[int index] 511 internal VisualStateGroup Clone() 513 var clone = new VisualStateGroup { TargetType = TargetType, Name = Name, CurrentState = CurrentState, VisualElement = VisualElement }; 567 public override bool Equals(object obj) => Equals(obj as VisualStateGroup); 569 bool Equals(VisualStateGroup other) 618 internal VisualStateGroup VisualStateGroup { get; set; } 692 internal static IList<VisualStateGroup> Clone(this IList<VisualStateGroup> groups) 696 foreach (var group in groups) 710 IList<VisualStateGroup> list = VisualStateManager.GetVisualStateGroups(element); 713 VisualStateGroup group = list[i];
Microsoft.Maui.Controls.Build.Tasks (2)
CompiledConverters\BindablePropertyConverter.cs (2)
89 if (!(parent.Parent is IElementNode target) || target.XmlType.NamespaceUri != XamlParser.MauiUri || target.XmlType.Name != nameof(VisualStateGroup)) 90 throw new XamlParseException($"Expected {nameof(VisualStateGroup)} but found {parent.Parent}", lineInfo);