46 references to VisualStateManager
Microsoft.Maui.Controls (33)
Button\Button.cs (1)
367 VisualStateManager.GoToState(this, ButtonElement.PressedVisualState);
CheckBox\CheckBox.cs (1)
49 VisualStateManager.GoToState(this, IsCheckedVisualState);
ImageButton\ImageButton.cs (1)
140 VisualStateManager.GoToState(this, ButtonElement.PressedVisualState);
IndicatorView\IndicatorStackLayout.cs (3)
123 VisualStateManager.GoToState(visualElement, isSelected 124 ? VisualStateManager.CommonStates.Selected 125 : VisualStateManager.CommonStates.Normal);
PointerGestureRecognizer.cs (1)
257 element.HasVisualState(VisualStateManager.CommonStates.PointerOver);
RadioButton\RadioButton.cs (7)
348 VisualStateManager.GoToState(this, CheckedVisualState); 351 VisualStateManager.GoToState(_templateRoot, CheckedVisualState); 356 VisualStateManager.GoToState(this, UncheckedVisualState); 359 VisualStateManager.GoToState(_templateRoot, UncheckedVisualState); 573 common.States.Add(new VisualState() { Name = VisualStateManager.CommonStates.Normal }); 574 common.States.Add(new VisualState() { Name = VisualStateManager.CommonStates.Disabled }); 620 VisualStateManager.SetVisualStateGroups(border, visualStateGroups);
Shell\BaseShellItem.cs (1)
416 defaultGridClass.Setters.Add(new Setter { Property = VisualStateManager.VisualStateGroupsProperty, Value = groups });
Switch\Switch.cs (2)
70 VisualStateManager.GoToState(this, SwitchOnVisualState); 72 VisualStateManager.GoToState(this, SwitchOffVisualState);
TitleBar\TitleBar.cs (3)
286 VisualStateManager.GoToState(this, stateGroup); 290 VisualStateManager.GoToState(_templateRoot, stateGroup); 559 VisualStateManager.SetVisualStateGroups(contentGrid, visualStateGroups);
VisualElement\VisualElement.cs (11)
1455 var groups = (IList<VisualStateGroup>)GetValue(VisualStateManager.VisualStateGroupsProperty); 1538 var groups = (IList<VisualStateGroup>)GetValue(VisualStateManager.VisualStateGroupsProperty); 1577 VisualStateManager.GoToState(this, VisualStateManager.CommonStates.Disabled); 1581 VisualStateManager.GoToState(this, VisualStateManager.CommonStates.PointerOver); 1585 VisualStateManager.GoToState(this, VisualStateManager.CommonStates.Normal); 1593 VisualStateManager.GoToState(this, 1594 IsFocused ? VisualStateManager.CommonStates.Focused : VisualStateManager.CommonStates.Unfocused);
VisualStateManager.cs (2)
547 VisualStateManager.GoToState(VisualElement, newStateTrigger.Name); 710 IList<VisualStateGroup> list = VisualStateManager.GetVisualStateGroups(element);
Microsoft.Maui.Controls.Compatibility (13)
iOS\CollectionView\CarouselViewController.cs (6)
59 VisualStateManager.GoToState(element, CarouselView.DefaultItemVisualState); 437 VisualStateManager.GoToState(itemView, CarouselView.CurrentItemVisualState); 441 VisualStateManager.GoToState(itemView, CarouselView.PreviousItemVisualState); 445 VisualStateManager.GoToState(itemView, CarouselView.NextItemVisualState); 449 VisualStateManager.GoToState(itemView, CarouselView.DefaultItemVisualState); 464 VisualStateManager.GoToState(itemView, CarouselView.DefaultItemVisualState);
iOS\CollectionView\TemplatedCell.cs (5)
208 var groups = VisualStateManager.GetVisualStateGroups(view); 215 if (state.Name != VisualStateManager.CommonStates.Selected) 298 VisualStateManager.GoToState(element, Selected 299 ? VisualStateManager.CommonStates.Selected 300 : VisualStateManager.CommonStates.Normal);
iOS\Renderers\UIContainerCell.cs (2)
114 VisualStateManager.GoToState(View, "Selected"); 116 VisualStateManager.GoToState(View, "Normal");