57 references to VisualStateManager
Microsoft.Maui.Controls (57)
Button\Button.cs (1)
366 VisualStateManager.GoToState(this, ButtonElement.PressedVisualState);
CheckBox\CheckBox.cs (1)
47 VisualStateManager.GoToState(this, IsCheckedVisualState);
Compatibility\Handlers\Shell\iOS\UIContainerCell.cs (2)
124 VisualStateManager.GoToState(View, "Selected"); 126 VisualStateManager.GoToState(View, "Normal");
Handlers\Items\iOS\CarouselViewController.cs (6)
75 VisualStateManager.GoToState(element, CarouselView.DefaultItemVisualState); 622 VisualStateManager.GoToState(itemView, CarouselView.CurrentItemVisualState); 626 VisualStateManager.GoToState(itemView, CarouselView.PreviousItemVisualState); 630 VisualStateManager.GoToState(itemView, CarouselView.NextItemVisualState); 634 VisualStateManager.GoToState(itemView, CarouselView.DefaultItemVisualState); 649 VisualStateManager.GoToState(itemView, CarouselView.DefaultItemVisualState);
Handlers\Items\iOS\TemplatedCell.cs (5)
243 var groups = VisualStateManager.GetVisualStateGroups(view); 250 if (state.Name != VisualStateManager.CommonStates.Selected) 320 VisualStateManager.GoToState(element, Selected 321 ? VisualStateManager.CommonStates.Selected 322 : VisualStateManager.CommonStates.Normal);
Handlers\Items2\iOS\CarouselViewController2.cs (6)
46 VisualStateManager.GoToState(element, CarouselView.DefaultItemVisualState); 574 VisualStateManager.GoToState(itemView, CarouselView.CurrentItemVisualState); 578 VisualStateManager.GoToState(itemView, CarouselView.PreviousItemVisualState); 582 VisualStateManager.GoToState(itemView, CarouselView.NextItemVisualState); 586 VisualStateManager.GoToState(itemView, CarouselView.DefaultItemVisualState); 601 VisualStateManager.GoToState(itemView, CarouselView.DefaultItemVisualState);
Handlers\Items2\iOS\TemplatedCell2.cs (5)
152 var groups = VisualStateManager.GetVisualStateGroups(view); 159 if (state.Name != VisualStateManager.CommonStates.Selected) 229 VisualStateManager.GoToState(element, Selected 230 ? VisualStateManager.CommonStates.Selected 231 : VisualStateManager.CommonStates.Normal);
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)
346 VisualStateManager.GoToState(this, CheckedVisualState); 349 VisualStateManager.GoToState(_templateRoot, CheckedVisualState); 354 VisualStateManager.GoToState(this, UncheckedVisualState); 357 VisualStateManager.GoToState(_templateRoot, UncheckedVisualState); 580 common.States.Add(new VisualState() { Name = VisualStateManager.CommonStates.Normal }); 581 common.States.Add(new VisualState() { Name = VisualStateManager.CommonStates.Disabled }); 627 VisualStateManager.SetVisualStateGroups(border, visualStateGroups);
Shell\BaseShellItem.cs (1)
416 defaultGridClass.Setters.Add(new Setter { Property = VisualStateManager.VisualStateGroupsProperty, Value = groups });
Switch\Switch.cs (2)
68 VisualStateManager.GoToState(this, SwitchOnVisualState); 70 VisualStateManager.GoToState(this, SwitchOffVisualState);
TitleBar\TitleBar.cs (3)
273 VisualStateManager.GoToState(this, stateGroup); 277 VisualStateManager.GoToState(_templateRoot, stateGroup); 545 VisualStateManager.SetVisualStateGroups(contentGrid, visualStateGroups);
VisualElement\VisualElement.cs (11)
1452 var groups = (IList<VisualStateGroup>)GetValue(VisualStateManager.VisualStateGroupsProperty); 1535 var groups = (IList<VisualStateGroup>)GetValue(VisualStateManager.VisualStateGroupsProperty); 1574 VisualStateManager.GoToState(this, VisualStateManager.CommonStates.Disabled); 1578 VisualStateManager.GoToState(this, VisualStateManager.CommonStates.PointerOver); 1582 VisualStateManager.GoToState(this, VisualStateManager.CommonStates.Normal); 1590 VisualStateManager.GoToState(this, 1591 IsFocused ? VisualStateManager.CommonStates.Focused : VisualStateManager.CommonStates.Unfocused);
VisualStateManager.cs (2)
547 VisualStateManager.GoToState(VisualElement, newStateTrigger.Name); 710 IList<VisualStateGroup> list = VisualStateManager.GetVisualStateGroups(element);