2 types derived from VisualElement
Microsoft.Maui.Controls (2)
Page\Page.cs (1)
24 public partial class Page : VisualElement, ILayout, IPageController, IElementConfiguration<Page>, IPaddingElement, ISafeAreaView, ISafeAreaView2, IView, ITitledElement, IToolbarElement
View\View.cs (1)
20 public partial class View : VisualElement, IViewController, IGestureController, IGestureRecognizers, IView, IPropertyMapperView, IHotReloadableView, IControlsView
423 references to VisualElement
Microsoft.Maui.Controls (404)
AdaptiveTrigger.cs (1)
9 VisualElement? _visualElement;
AppThemeBinding.cs (1)
157 target is VisualElement ve &&
AutomationProperties.cs (5)
21 public static readonly BindableProperty LabeledByProperty = BindableProperty.Create("LabeledBy", typeof(VisualElement), typeof(AutomationProperties), default(VisualElement)); 48 public static VisualElement GetLabeledBy(BindableObject bindable) 51 return (VisualElement)bindable.GetValue(LabeledByProperty); 83 public static void SetLabeledBy(BindableObject bindable, VisualElement value)
BindablePropertyConverter.cs (2)
139 if (parents[3] is VisualElement vsTarget) 145 if (parents[4] is VisualElement veTarget)
Border\Border.cs (2)
65 if (strokeShape is VisualElement visualElement) 85 if (strokeShape is VisualElement visualElement)
Button\Button.cs (2)
151 /// <remarks>This property has no effect if <see cref="IBorderElement.BorderWidth" /> is set to 0. On Android this property will not have an effect unless <see cref="VisualElement.BackgroundColor" /> is set to a non-default color.</remarks> 190 /// <remarks>This property is used to associate a command with an instance of a button. This property is most often set in the MVVM pattern to bind callbacks back into the ViewModel. <see cref="VisualElement.IsEnabled" /> is controlled by the <see cref="Command.CanExecute(object)"/> if set.</remarks>
Button\ButtonElement.cs (3)
35 public static void ElementClicked(VisualElement visualElement, IButtonElement ButtonElementManager) 50 public static void ElementPressed(VisualElement visualElement, IButtonElement ButtonElementManager) 66 public static void ElementReleased(VisualElement visualElement, IButtonElement ButtonElementManager)
Cells\Cell.cs (8)
46 var ve = (Parent as VisualElement); 48 OnPropertyChanged(VisualElement.FlowDirectionProperty.PropertyName); 62 OnPropertyChanged(VisualElement.VisualProperty.PropertyName); 82 OnPropertyChanged(VisualElement.WindowProperty.PropertyName); 151 double IFlowDirectionController.Width => (Parent as VisualElement)?.Width ?? 0; 292 else if (e.PropertyName == VisualElement.FlowDirectionProperty.PropertyName || 293 e.PropertyName == VisualElement.VisualProperty.PropertyName)
Element\Element.cs (4)
27 /// <term><see cref="VisualElement" /></term> 37 /// <description> A <see cref= "VisualElement"/> that occupies most or all of the screen and contains a single child.</description> 814 var child = children[i] as VisualElement;
FocusEventArgs.cs (2)
10 public FocusEventArgs(VisualElement visualElement, bool isFocused) 23 public VisualElement VisualElement { get; private set; }
Foldable\IFoldableService.cs (1)
18 Point? GetLocationOnScreen(VisualElement visualElement);
Hosting\AppHostBuilderExtensions.cs (1)
246 VisualElement.RemapForControls();
ImageElement.cs (4)
102 public static void OnBindingContextChanged(IImageElement image, VisualElement visualElement) 141 var imageElement = (VisualElement)bindable; 152 ((VisualElement)sender).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
IndicatorView\IndicatorStackLayout.cs (2)
112 var visualElement = Children[index] as VisualElement;
Interactivity\PlatformBehavior.cs (3)
45 if (bindable is VisualElement ve) 62 if (bindable is VisualElement ve) 143 where TView : VisualElement
Internals\PropertyPropagationExtensions.cs (6)
11 if (propertyName == null || propertyName == VisualElement.FlowDirectionProperty.PropertyName) 14 if (propertyName == null || propertyName == VisualElement.VisualProperty.PropertyName) 17 if (propertyName == null || propertyName == VisualElement.WindowProperty.PropertyName) 39 if (propertyName == null || propertyName == VisualElement.FlowDirectionProperty.PropertyName) 42 if (propertyName == null || propertyName == VisualElement.VisualProperty.PropertyName) 45 if (propertyName == null || propertyName == VisualElement.WindowProperty.PropertyName)
IPlatformSizeService.cs (1)
8 SizeRequest GetPlatformSize(VisualElement view, double widthConstraint, double heightConstraint);
IScrollViewController.cs (1)
9 Point GetScrollPositionForElement(VisualElement item, ScrollToPosition position);
IViewContainer.cs (1)
6 public interface IViewContainer<T> where T : VisualElement
IVisualElementController.cs (2)
4using static Microsoft.Maui.Controls.VisualElement; 39 event EventHandler<EventArg<VisualElement>> BatchCommitted;
Layout\AbsoluteLayout.cs (1)
30 /// Application developers can set the width or height of the <see cref="VisualElement.Bounds" /> property to <see cref="AutoSize" />
Layout\FlexLayout.cs (5)
167 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.Undefined); 175 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged); 183 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged); 191 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged); 199 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
Layout\Layout.cs (1)
370 /// when this layout's <see cref="VisualElement.InputTransparent" /> property is <see langword="true" />.
LegacyLayouts\FlexLayout.cs (5)
155 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.Undefined); 163 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged); 171 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged); 179 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged); 187 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
LegacyLayouts\Layout.cs (20)
150 /// when this layout's <see cref="VisualElement.InputTransparent" /> property is <see langword="true" />. 177 /// Occurs at the end of a layout cycle if any of the child element's <see cref="VisualElement.Bounds" /> have changed. 219 public static void LayoutChildIntoBoundingRegion(VisualElement child, Rect region) 344 internal override void OnChildMeasureInvalidatedInternal(VisualElement child, InvalidationTrigger trigger, int depth) 351 /// Invoked whenever a child of the layout has emitted <see cref="VisualElement.MeasureInvalidated" />. 371 OnChildMeasureInvalidated((VisualElement)sender, trigger, depth); 376 /// Invoked whenever a child of the layout has emitted <see cref="VisualElement.MeasureInvalidated" />. 405 /// When implemented, should return <see langword="true" /> if <paramref name="child" /> should call <see cref="VisualElement.InvalidateMeasure" /> when added, 406 /// and should return <see langword="false" /> if it should not call <see cref="VisualElement.InvalidateMeasure" />. The default value is <see langword="true" />. 409 /// <returns><see langword="true" /> if <paramref name="child" /> should call <see cref="VisualElement.InvalidateMeasure" />, otherwise <see langword="false"/>.</returns> 414 /// When implemented, should return <see langword="true" /> if <paramref name="child" /> should call <see cref="VisualElement.InvalidateMeasure" /> when removed, 415 /// and should return <see langword="false" /> if it should not call <see cref="VisualElement.InvalidateMeasure" />. The default value is <see langword="true" />. 418 /// <returns><see langword="true" /> if <paramref name="child" /> should call <see cref="VisualElement.InvalidateMeasure" />, otherwise <see langword="false"/>.</returns> 439 if (LogicalChildrenInternal[index] is VisualElement c) 467 CompressedLayout.SetHeadlessOffset((VisualElement)LogicalChildrenInternal[i], isHeadless ? new Point(headlessOffset.X + Bounds.X, headlessOffset.Y + Bounds.Y) : new Point()); 477 Rect newBound = ((VisualElement)LogicalChildrenInternal[i]).Bounds; 545 internal virtual void OnChildMeasureInvalidated(VisualElement child, InvalidationTrigger trigger, int depth) 551 if (LogicalChildrenInternal[index] is VisualElement v && v.IsVisible && (!v.IsPlatformEnabled || !v.IsPlatformStateConsistent)) 690 var visual = element as VisualElement;
LegacyLayouts\RelativeLayout.cs (2)
208 double mockWidth = double.IsPositiveInfinity(widthConstraint) ? (Parent as VisualElement).Width : widthConstraint; 209 double mockHeight = double.IsPositiveInfinity(heightConstraint) ? (Parent as VisualElement).Height : heightConstraint;
LegacyLayouts\StackLayout.cs (2)
403 var child = (VisualElement)InternalChildren[index];
MergedStyle.cs (1)
19 typeof(VisualElement), typeof(NavigableElement), typeof(Element) };
NavigationPage\NavigationPageToolbar.cs (3)
17 VisualElement _titleView; 28 public override VisualElement TitleView { get => GetTitleView(); set => SetProperty(ref _titleView, value); } 280 VisualElement GetTitleView()
Page\Page.cs (13)
19 /// A <see cref="VisualElement" /> that occupies the entire screen. 436 var child = element as VisualElement; 507 internal override void OnChildMeasureInvalidatedInternal(VisualElement child, InvalidationTrigger trigger, int depth) 532 OnChildMeasureInvalidated((VisualElement)sender, trigger, depth); 586 if (el is VisualElement c) 600 if (element is VisualElement c) 611 internal virtual void OnChildMeasureInvalidated(VisualElement child, InvalidationTrigger trigger, int depth) 625 var v = logicalChildren[i] as VisualElement; 758 if (item is VisualElement) 812 var v = logicalChildren[i] as VisualElement;
PlatformConfiguration\AndroidSpecific\VisualElement.cs (11)
4 using FormsElement = Maui.Controls.VisualElement; 16 typeof(FormsElement)); 23 public static float? GetElevation(FormsElement element) 33 public static void SetElevation(FormsElement element, float? value) 43 public static float? GetElevation(this IPlatformElementConfiguration<Android, FormsElement> config) 54 public static IPlatformElementConfiguration<Android, FormsElement> SetElevation(this IPlatformElementConfiguration<Android, FormsElement> config, float? value) 67 typeof(FormsElement), true); 94 public static bool GetIsLegacyColorModeEnabled(this IPlatformElementConfiguration<Android, FormsElement> config) 105 public static IPlatformElementConfiguration<Android, FormsElement> SetIsLegacyColorModeEnabled( 106 this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
PlatformConfiguration\iOSSpecific\VisualElement.cs (28)
7 using FormsElement = Maui.Controls.VisualElement; 42 public static BlurEffectStyle GetBlurEffect(this IPlatformElementConfiguration<iOS, FormsElement> config) 53 public static IPlatformElementConfiguration<iOS, FormsElement> UseBlurEffect(this IPlatformElementConfiguration<iOS, FormsElement> config, BlurEffectStyle value) 76 var visualElement = bindable as FormsElement; 120 public static bool GetIsShadowEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config) 131 public static IPlatformElementConfiguration<iOS, FormsElement> SetIsShadowEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) 167 public static Color GetShadowColor(this IPlatformElementConfiguration<iOS, FormsElement> config) 178 public static IPlatformElementConfiguration<iOS, FormsElement> SetShadowColor(this IPlatformElementConfiguration<iOS, FormsElement> config, Color value) 214 public static double GetShadowRadius(this IPlatformElementConfiguration<iOS, FormsElement> config) 225 public static IPlatformElementConfiguration<iOS, FormsElement> SetShadowRadius(this IPlatformElementConfiguration<iOS, FormsElement> config, double value) 261 public static Size GetShadowOffset(this IPlatformElementConfiguration<iOS, FormsElement> config) 272 public static IPlatformElementConfiguration<iOS, FormsElement> SetShadowOffset(this IPlatformElementConfiguration<iOS, FormsElement> config, Size value) 308 public static double GetShadowOpacity(this IPlatformElementConfiguration<iOS, FormsElement> config) 319 public static IPlatformElementConfiguration<iOS, FormsElement> SetShadowOpacity(this IPlatformElementConfiguration<iOS, FormsElement> config, double value) 332 typeof(FormsElement), true); 359 public static bool GetIsLegacyColorModeEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config) 370 public static IPlatformElementConfiguration<iOS, FormsElement> SetIsLegacyColorModeEnabled( 371 this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) 407 public static bool CanBecomeFirstResponder(this IPlatformElementConfiguration<iOS, FormsElement> config) 418 public static IPlatformElementConfiguration<iOS, FormsElement> SetCanBecomeFirstResponder(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
PlatformConfiguration\macOSSpecific\Page.cs (6)
11 public static readonly BindableProperty TabOrderProperty = BindableProperty.Create("TabOrder", typeof(VisualElement[]), typeof(Page), null); 14 public static VisualElement[] GetTabOrder(BindableObject element) 16 return (VisualElement[])element.GetValue(TabOrderProperty); 20 public static void SetTabOrder(BindableObject element, params VisualElement[] value) 26 public static VisualElement[] GetTabOrder(this IPlatformElementConfiguration<macOS, FormsElement> config) 32 public static IPlatformElementConfiguration<macOS, FormsElement> SetTabOrder(this IPlatformElementConfiguration<macOS, FormsElement> config, params VisualElement[] value)
PlatformConfiguration\TizenSpecific\VisualElement.cs (43)
9 using FormsElement = Maui.Controls.VisualElement; 72 public static string GetStyle(this IPlatformElementConfiguration<Tizen, FormsElement> config) 83 public static IPlatformElementConfiguration<Tizen, FormsElement> SetStyle(this IPlatformElementConfiguration<Tizen, FormsElement> config, string value) 114 public static bool? IsFocusAllowed(this IPlatformElementConfiguration<Tizen, FormsElement> config) 125 public static IPlatformElementConfiguration<Tizen, FormsElement> SetFocusAllowed(this IPlatformElementConfiguration<Tizen, FormsElement> config, bool value) 159 public static string GetNextFocusDirection(this IPlatformElementConfiguration<Tizen, FormsElement> config) 171 public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusDirection(this IPlatformElementConfiguration<Tizen, FormsElement> config, string value) 182 public static IPlatformElementConfiguration<Tizen, FormsElement> MoveFocusUp(this IPlatformElementConfiguration<Tizen, FormsElement> config) 193 public static IPlatformElementConfiguration<Tizen, FormsElement> MoveFocusDown(this IPlatformElementConfiguration<Tizen, FormsElement> config) 204 public static IPlatformElementConfiguration<Tizen, FormsElement> MoveFocusLeft(this IPlatformElementConfiguration<Tizen, FormsElement> config) 215 public static IPlatformElementConfiguration<Tizen, FormsElement> MoveFocusRight(this IPlatformElementConfiguration<Tizen, FormsElement> config) 226 public static IPlatformElementConfiguration<Tizen, FormsElement> MoveFocusBack(this IPlatformElementConfiguration<Tizen, FormsElement> config) 237 public static IPlatformElementConfiguration<Tizen, FormsElement> MoveFocusForward(this IPlatformElementConfiguration<Tizen, FormsElement> config) 268 public static View GetNextFocusUpView(this IPlatformElementConfiguration<Tizen, FormsElement> config) 279 public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusUpView(this IPlatformElementConfiguration<Tizen, FormsElement> config, View value) 310 public static View GetNextFocusDownView(this IPlatformElementConfiguration<Tizen, FormsElement> config) 321 public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusDownView(this IPlatformElementConfiguration<Tizen, FormsElement> config, View value) 352 public static View GetNextFocusLeftView(this IPlatformElementConfiguration<Tizen, FormsElement> config) 363 public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusLeftView(this IPlatformElementConfiguration<Tizen, FormsElement> config, View value) 394 public static View GetNextFocusRightView(this IPlatformElementConfiguration<Tizen, FormsElement> config) 405 public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusRightView(this IPlatformElementConfiguration<Tizen, FormsElement> config, View value) 436 public static View GetNextFocusBackView(this IPlatformElementConfiguration<Tizen, FormsElement> config) 447 public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusBackView(this IPlatformElementConfiguration<Tizen, FormsElement> config, View value) 478 public static View GetNextFocusForwardView(this IPlatformElementConfiguration<Tizen, FormsElement> config) 489 public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusForwardView(this IPlatformElementConfiguration<Tizen, FormsElement> config, View value) 525 public static string GetToolTip(this IPlatformElementConfiguration<Tizen, FormsElement> config) 536 public static IPlatformElementConfiguration<Tizen, FormsElement> SetToolTip(this IPlatformElementConfiguration<Tizen, FormsElement> config, string value)
PlatformConfiguration\WindowsSpecific\VisualElement.cs (19)
4 using FormsElement = Maui.Controls.VisualElement; 19 BindableProperty.Create("AccessKeyHorizontalOffset", typeof(double), typeof(FormsElement), 0.0); 23 BindableProperty.Create("AccessKeyVerticalOffset", typeof(double), typeof(FormsElement), 0.0); 38 public static string GetAccessKey(this IPlatformElementConfiguration<Windows, FormsElement> config) 44 public static IPlatformElementConfiguration<Windows, FormsElement> SetAccessKey( 45 this IPlatformElementConfiguration<Windows, FormsElement> config, string value) 62 public static AccessKeyPlacement GetAccessKeyPlacement(this IPlatformElementConfiguration<Windows, FormsElement> config) 68 public static IPlatformElementConfiguration<Windows, FormsElement> SetAccessKeyPlacement( 69 this IPlatformElementConfiguration<Windows, FormsElement> config, AccessKeyPlacement value) 85 public static double GetAccessKeyHorizontalOffset(this IPlatformElementConfiguration<Windows, FormsElement> config) 90 public static IPlatformElementConfiguration<Windows, FormsElement> SetAccessKeyHorizontalOffset( 91 this IPlatformElementConfiguration<Windows, FormsElement> config, double value) 107 public static double GetAccessKeyVerticalOffset(this IPlatformElementConfiguration<Windows, FormsElement> config) 112 public static IPlatformElementConfiguration<Windows, FormsElement> SetAccessKeyVerticalOffset( 113 this IPlatformElementConfiguration<Windows, FormsElement> config, double value) 123 typeof(FormsElement), true); 138 public static bool GetIsLegacyColorModeEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config) 144 public static IPlatformElementConfiguration<Windows, FormsElement> SetIsLegacyColorModeEnabled( 145 this IPlatformElementConfiguration<Windows, FormsElement> config, bool value)
PointerGestureRecognizer.cs (1)
252 VisualElement element,
Properties\AssemblyInfo.cs (32)
84[assembly: StyleProperty("background-color", typeof(VisualElement), nameof(VisualElement.BackgroundColorProperty))] 85[assembly: StyleProperty("background", typeof(VisualElement), nameof(VisualElement.BackgroundProperty))] 104[assembly: StyleProperty("direction", typeof(VisualElement), nameof(VisualElement.FlowDirectionProperty), Inherited = true)] 108[assembly: StyleProperty("height", typeof(VisualElement), nameof(VisualElement.HeightRequestProperty))] 115[assembly: StyleProperty("min-height", typeof(VisualElement), nameof(VisualElement.MinimumHeightRequestProperty))] 116[assembly: StyleProperty("min-width", typeof(VisualElement), nameof(VisualElement.MinimumWidthRequestProperty))] 117[assembly: StyleProperty("opacity", typeof(VisualElement), nameof(VisualElement.OpacityProperty))] 126[assembly: StyleProperty("transform", typeof(VisualElement), nameof(VisualElement.TransformProperty))] 127[assembly: StyleProperty("transform-origin", typeof(VisualElement), nameof(VisualElement.TransformOriginProperty))] 129[assembly: StyleProperty("visibility", typeof(VisualElement), nameof(VisualElement.IsVisibleProperty), Inherited = true)] 130[assembly: StyleProperty("width", typeof(VisualElement), nameof(VisualElement.WidthRequestProperty))] 137[assembly: StyleProperty("align-self", typeof(VisualElement), nameof(FlexLayout.AlignSelfProperty), PropertyOwnerType = typeof(FlexLayout))] 139[assembly: StyleProperty("flex-basis", typeof(VisualElement), nameof(FlexLayout.BasisProperty), PropertyOwnerType = typeof(FlexLayout))] 140[assembly: StyleProperty("flex-grow", typeof(VisualElement), nameof(FlexLayout.GrowProperty), PropertyOwnerType = typeof(FlexLayout))] 141[assembly: StyleProperty("flex-shrink", typeof(VisualElement), nameof(FlexLayout.ShrinkProperty), PropertyOwnerType = typeof(FlexLayout))] 142[assembly: StyleProperty("flex-wrap", typeof(VisualElement), nameof(FlexLayout.WrapProperty), PropertyOwnerType = typeof(FlexLayout))] 144[assembly: StyleProperty("order", typeof(VisualElement), nameof(FlexLayout.OrderProperty), PropertyOwnerType = typeof(FlexLayout))] 162[assembly: StyleProperty("-maui-visual", typeof(VisualElement), nameof(VisualElement.VisualProperty))] 166[assembly: StyleProperty("-maui-shadow", typeof(VisualElement), nameof(VisualElement.ShadowProperty))]
ScrollView\ScrollView.cs (5)
56 public Point GetScrollPositionForElement(VisualElement item, ScrollToPosition pos) 367 coordinate += (double)typeof(VisualElement).GetProperty(coordinateName).GetValue(item, null); 368 var visualParentElement = item.RealParent as VisualElement; 385 if (args.Mode == ScrollToMode.Element && args.Element is VisualElement visualElement)
Shell\BaseShellItem.cs (7)
210 OnPropertyChanged(VisualElement.VisualProperty.PropertyName); 286 var ve = (Parent as VisualElement); 288 OnPropertyChanged(VisualElement.FlowDirectionProperty.PropertyName); 293 double IFlowDirectionController.Width => (Parent as VisualElement)?.Width ?? 0; 403 Property = VisualElement.BackgroundColorProperty, 410 Property = VisualElement.BackgroundColorProperty,
Shell\SearchHandler.cs (2)
9using static Microsoft.Maui.Controls.VisualElement; 19 typeof(bool), typeof(VisualElement), default(bool), propertyChanged: OnIsFocusedPropertyChanged);
ShellToolbar.cs (1)
164 TitleView = _shell.GetEffectiveValue<VisualElement>(
StyleSheets\Style.cs (3)
63 public void Apply(VisualElement styleable, Selector.SelectorSpecificity selectorSpecificity = default, bool inheriting = false) 87 var ve = child as VisualElement;
StyleSheets\StyleSheet.cs (2)
95 Type IStyle.TargetType => typeof(VisualElement); 106 if (!(styleable is VisualElement visualStylable))
TitleBar\TitleBar.cs (1)
12 /// The title bar can also be hidden by setting the <see cref="VisualElement.IsVisible"/> property, which
Toolbar\Toolbar.cs (2)
13 VisualElement _titleView; 43 public virtual VisualElement TitleView { get => _titleView; set => SetProperty(ref _titleView, value); }
ViewExtensions.cs (35)
13 /// Extension methods for <see cref="VisualElement" />s, providing animatable scaling, rotation, and layout functions. 22 public static void CancelAnimations(this VisualElement view) 38 static Task<bool> AnimateTo(this VisualElement view, double start, double end, string name, 39 Action<VisualElement, double> updateAction, uint length = 250, Easing? easing = null) 46 var weakView = new WeakReference<VisualElement>(view); 50 if (weakView.TryGetTarget(out VisualElement? v)) 71 public static Task<bool> FadeTo(this VisualElement view, double opacity, uint length = 250, Easing? easing = null) 80 /// <summary>Returns a task that eases the bounds of the <see cref="VisualElement" /> that is specified by the <paramref name="view" /> 89 public static Task<bool> LayoutTo(this VisualElement view, Rect bounds, uint length = 250, Easing? easing = null) 109 /// Rotates the <see cref="VisualElement" /> that is specified by <paramref name="view" /> from its current rotation by <paramref name="drotation" />. 117 public static Task<bool> RelRotateTo(this VisualElement view, double drotation, uint length = 250, Easing? easing = null) 126 /// Returns a task that scales the <see cref="VisualElement" /> that is specified by <paramref name="view" /> 135 public static Task<bool> RelScaleTo(this VisualElement view, double dscale, uint length = 250, Easing? easing = null) 144 /// Returns a task that rotates the <see cref="VisualElement" /> that is specified by <paramref name="view" /> 153 public static Task<bool> RotateTo(this VisualElement view, double rotation, uint length = 250, Easing? easing = null) 162 /// Returns a task that skews the X axis of the the <see cref="VisualElement" /> that is specified by <paramref name="view" /> 171 public static Task<bool> RotateXTo(this VisualElement view, double rotation, uint length = 250, Easing? easing = null) 180 /// Returns a task that skews the Y axis of the the <see cref="VisualElement" /> that is specified by <paramref name="view" /> 189 public static Task<bool> RotateYTo(this VisualElement view, double rotation, uint length = 250, Easing? easing = null) 198 /// Returns a task that scales the <see cref="VisualElement" /> that is specified by <paramref name="view" /> to the absolute scale factor <paramref name="scale" />. 206 public static Task<bool> ScaleTo(this VisualElement view, double scale, uint length = 250, Easing? easing = null) 215 /// Returns a task that scales the X axis of the the <see cref="VisualElement" /> that is specified by <paramref name="view" /> 224 public static Task<bool> ScaleXTo(this VisualElement view, double scale, uint length = 250, Easing? easing = null) 233 /// Returns a task that scales the Y axis of the the <see cref="VisualElement" /> that is specified by <paramref name="view" /> 242 public static Task<bool> ScaleYTo(this VisualElement view, double scale, uint length = 250, Easing? easing = null) 251 /// Animates an elements <see cref="VisualElement.TranslationX"/> and <see cref="VisualElement.TranslationY"/> properties 261 public static Task<bool> TranslateTo(this VisualElement view, double x, double y, uint length = 250, Easing? easing = null) 269 var weakView = new WeakReference<VisualElement>(view); 272 if (weakView.TryGetTarget(out VisualElement? v)) 277 if (weakView.TryGetTarget(out VisualElement? v)) 462 static internal bool RequestFocus(this VisualElement view) 474 static internal void MapFocus(this VisualElement view, FocusRequest focusRequest, Action? baseMethod = null) 486 var arg = new VisualElement.FocusRequestArgs { Focus = true }; 533 public static void InvalidateMeasure(this VisualElement view)
VisualElement\VisualElement.cs (71)
37 nameof(InputTransparent), typeof(bool), typeof(VisualElement), default(bool), 44 typeof(VisualElement), true, propertyChanged: OnIsEnabledPropertyChanged, coerceValue: CoerceIsEnabledProperty); 46 static readonly BindablePropertyKey XPropertyKey = BindableProperty.CreateReadOnly(nameof(X), typeof(double), typeof(VisualElement), default(double)); 51 static readonly BindablePropertyKey YPropertyKey = BindableProperty.CreateReadOnly(nameof(Y), typeof(double), typeof(VisualElement), default(double)); 57 public static readonly BindableProperty AnchorXProperty = BindableProperty.Create(nameof(AnchorX), typeof(double), typeof(VisualElement), .5d); 60 public static readonly BindableProperty AnchorYProperty = BindableProperty.Create(nameof(AnchorY), typeof(double), typeof(VisualElement), .5d); 63 public static readonly BindableProperty TranslationXProperty = BindableProperty.Create(nameof(TranslationX), typeof(double), typeof(VisualElement), 0d); 66 public static readonly BindableProperty TranslationYProperty = BindableProperty.Create(nameof(TranslationY), typeof(double), typeof(VisualElement), 0d); 68 static readonly BindablePropertyKey WidthPropertyKey = BindableProperty.CreateReadOnly(nameof(Width), typeof(double), typeof(VisualElement), -1d, 74 static readonly BindablePropertyKey HeightPropertyKey = BindableProperty.CreateReadOnly(nameof(Height), typeof(double), typeof(VisualElement), -1d, 81 public static readonly BindableProperty RotationProperty = BindableProperty.Create(nameof(Rotation), typeof(double), typeof(VisualElement), default(double)); 84 public static readonly BindableProperty RotationXProperty = BindableProperty.Create(nameof(RotationX), typeof(double), typeof(VisualElement), default(double)); 87 public static readonly BindableProperty RotationYProperty = BindableProperty.Create(nameof(RotationY), typeof(double), typeof(VisualElement), default(double)); 90 public static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(double), typeof(VisualElement), 1d); 93 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(double), typeof(VisualElement), 1d); 96 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(double), typeof(VisualElement), 1d); 98 internal static readonly BindableProperty TransformProperty = BindableProperty.Create("Transform", typeof(string), typeof(VisualElement), null, propertyChanged: OnTransformChanged); 101 public static readonly BindableProperty ClipProperty = BindableProperty.Create(nameof(Clip), typeof(Geometry), typeof(VisualElement), null, 105 (bindable as VisualElement)?.StopNotifyingClipChanges(); 110 (bindable as VisualElement)?.NotifyClipChanges(); 175 BindableProperty.Create(nameof(Visual), typeof(IVisual), typeof(VisualElement), VisualMarker.MatchParent, 269 BindableProperty.Create("TransformOrigin", typeof(Point), typeof(VisualElement), new Point(.5d, .5d), 270 propertyChanged: (b, o, n) => { (((VisualElement)b).AnchorX, ((VisualElement)b).AnchorY) = (Point)n; }); 273 public static readonly BindableProperty IsVisibleProperty = BindableProperty.Create(nameof(IsVisible), typeof(bool), typeof(VisualElement), true, 274 propertyChanged: (bindable, oldvalue, newvalue) => ((VisualElement)bindable).OnIsVisibleChanged((bool)oldvalue, (bool)newvalue)); 277 public static readonly BindableProperty OpacityProperty = BindableProperty.Create(nameof(Opacity), typeof(double), typeof(VisualElement), 1d, coerceValue: (bindable, value) => ((double)value).Clamp(0, 1)); 280 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(VisualElement), null); 283 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create(nameof(Background), typeof(Brush), typeof(VisualElement), Brush.Default, 289 (bindable as VisualElement)?.StopNotifyingBackgroundChanges(); 296 (bindable as VisualElement)?.NotifyBackgroundChanges(); 392 internal static readonly BindablePropertyKey BehaviorsPropertyKey = BindableProperty.CreateReadOnly(nameof(Behaviors), typeof(IList<Behavior>), typeof(VisualElement), default(IList<Behavior>), 403 internal static readonly BindablePropertyKey TriggersPropertyKey = BindableProperty.CreateReadOnly(nameof(Triggers), typeof(IList<TriggerBase>), typeof(VisualElement), default(IList<TriggerBase>), 417 public static readonly BindableProperty WidthRequestProperty = BindableProperty.Create(nameof(WidthRequest), typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged); 420 public static readonly BindableProperty HeightRequestProperty = BindableProperty.Create(nameof(HeightRequest), typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged); 423 public static readonly BindableProperty MinimumWidthRequestProperty = BindableProperty.Create(nameof(MinimumWidthRequest), typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged); 426 public static readonly BindableProperty MinimumHeightRequestProperty = BindableProperty.Create(nameof(MinimumHeightRequest), typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged); 429 public static readonly BindableProperty MaximumWidthRequestProperty = BindableProperty.Create(nameof(MaximumWidthRequest), typeof(double), typeof(VisualElement), double.PositiveInfinity, propertyChanged: OnRequestChanged); 432 public static readonly BindableProperty MaximumHeightRequestProperty = BindableProperty.Create(nameof(MaximumHeightRequest), typeof(double), typeof(VisualElement), double.PositiveInfinity, propertyChanged: OnRequestChanged); 438 typeof(bool), typeof(VisualElement), default(bool), propertyChanged: OnIsFocusedPropertyChanged); 444 public static readonly BindableProperty FlowDirectionProperty = BindableProperty.Create(nameof(FlowDirection), typeof(FlowDirection), typeof(VisualElement), FlowDirection.MatchParent, propertyChanging: FlowDirectionChanging, propertyChanged: FlowDirectionChanged); 482 nameof(Window), typeof(Window), typeof(VisualElement), null, propertyChanged: OnWindowChanged); 523 /// Initializes a new instance of the <see cref="VisualElement"/> class. 655 var parent = Parent as VisualElement; 970 var visualElement = parent as VisualElement; 1059 BatchCommitted?.Invoke(this, new EventArg<VisualElement>(this)); 1343 public event EventHandler<EventArg<VisualElement>> BatchCommitted; 1415 (Parent as VisualElement)?.OnChildMeasureInvalidatedInternal(this, args.Trigger, ++depth); 1423 internal virtual void OnChildMeasureInvalidatedInternal(VisualElement child, InvalidationTrigger trigger, int depth) 1609 (self as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.VisualProperty.PropertyName); 1621 if (self is VisualElement ve) 1629 (bindable as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.FlowDirectionProperty.PropertyName); 1634 if (bindable is VisualElement visualElement) 1645 var element = (VisualElement)bindable; 1652 (bindable as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.IsEnabledProperty.PropertyName); 1657 if (bindable is VisualElement visualElement) 1668 (bindable as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.InputTransparentProperty.PropertyName); 1673 var element = (VisualElement)bindable; 1696 var element = (VisualElement)bindable; 1718 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.SizeRequestChanged); 1754 (this as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.InputTransparentProperty.PropertyName); 1845 BindableProperty.Create(nameof(Shadow), typeof(Shadow), typeof(VisualElement), defaultValue: null, 1849 (bindable as VisualElement)?.StopNotifyingShadowChanges(); 1854 (bindable as VisualElement)?.NotifyShadowChanges(); 1869 BindableProperty.Create(nameof(ZIndex), typeof(int), typeof(VisualElement), default(int), 2298 if (bindable is not VisualElement visualElement)
VisualElement\VisualElement.Mapper.cs (8)
32 viewMapper.AppendToMapping<VisualElement, IViewHandler>(nameof(IViewHandler.ContainerView), MapContainerView); 34 commandMapper.ModifyMapping<VisualElement, IViewHandler>(nameof(IView.Focus), MapFocus); 44 (element as VisualElement)?.UpdateSemanticsFromMapper(); 47 (element as VisualElement)?.UpdateSemanticsFromMapper(); 50 (element as VisualElement)?.UpdateSemanticsFromMapper(); 58 static void MapContainerView(IViewHandler handler, VisualElement element) => 61 static void MapFocus(IViewHandler handler, VisualElement view, object args, Action<IElementHandler, IElement, object> baseMethod) 63 if (args is not FocusRequest fr || view is not VisualElement element)
VisualElement\VisualElementChangedEventArgs.cs (3)
5 public class VisualElementChangedEventArgs : ElementChangedEventArgs<VisualElement> 7 public VisualElementChangedEventArgs(VisualElement? oldElement, VisualElement? newElement) : base(oldElement, newElement)
VisualStateManager.cs (18)
26 BindableProperty.CreateAttached("VisualStateGroups", typeof(VisualStateGroupList), typeof(VisualElement), 28 defaultValueCreator: bindable => new VisualStateGroupList(true) { VisualElement = (VisualElement)bindable }); 46 var visualElement = (VisualElement)bindable; 57 public static IList<VisualStateGroup> GetVisualStateGroups(VisualElement visualElement) 61 public static void SetVisualStateGroups(VisualElement visualElement, VisualStateGroupList value) 65 public static bool GoToState(VisualElement visualElement, string name) 125 public static bool HasVisualStateGroups(this VisualElement element) 136 internal static void UpdateStateTriggers(VisualElement visualElement) 326 WeakReference<VisualElement> _visualElement; 327 internal VisualElement VisualElement 333 _visualElement.TryGetTarget(out var ve); 338 _visualElement = new WeakReference<VisualElement>(value); 400 WeakReference<VisualElement> _visualElement; 401 internal VisualElement VisualElement 407 _visualElement.TryGetTarget(out var ve); 412 _visualElement = new WeakReference<VisualElement>(value); 708 internal static bool HasVisualState(this VisualElement element, string name)
Window\Window.cs (1)
355 double IFlowDirectionController.Width => (Page as VisualElement)?.Width ?? 0;
Microsoft.Maui.Controls.Compatibility (6)
Properties\AssemblyInfo.cs (6)
21[assembly: StyleProperty("align-self", typeof(VisualElement), nameof(CFlexLayout.AlignSelfProperty), PropertyOwnerType = typeof(CFlexLayout))] 23[assembly: StyleProperty("flex-basis", typeof(VisualElement), nameof(CFlexLayout.BasisProperty), PropertyOwnerType = typeof(CFlexLayout))] 24[assembly: StyleProperty("flex-grow", typeof(VisualElement), nameof(CFlexLayout.GrowProperty), PropertyOwnerType = typeof(CFlexLayout))] 25[assembly: StyleProperty("flex-shrink", typeof(VisualElement), nameof(CFlexLayout.ShrinkProperty), PropertyOwnerType = typeof(CFlexLayout))] 26[assembly: StyleProperty("flex-wrap", typeof(VisualElement), nameof(CFlexLayout.WrapProperty), PropertyOwnerType = typeof(CFlexLayout))] 28[assembly: StyleProperty("order", typeof(VisualElement), nameof(CFlexLayout.OrderProperty), PropertyOwnerType = typeof(CFlexLayout))]
Microsoft.Maui.Controls.Foldable (13)
DualScreenInfo.cs (3)
52 internal VisualElement Element { get; } 66 public DualScreenInfo(VisualElement element) : this(element, null) 70 internal DualScreenInfo(VisualElement element, IFoldableService dualScreenService)
NoPlatformFoldableService.cs (5)
56 public Point? GetLocationOnScreen(VisualElement visualElement) 61 public object WatchForChangesOnLayout(VisualElement visualElement, Action action) 66 EventHandler<EventArg<VisualElement>> layoutUpdated = (_, __) => 75 public void StopWatchingForChangesOnLayout(VisualElement visualElement, object handle) 77 if (handle is EventHandler<EventArg<VisualElement>> handler)
SpanModeStateTrigger.cs (2)
14 VisualElement _visualElement; 43 var visualElement = VisualState?.VisualStateGroup?.VisualElement;
TwoPaneViewLayoutGuide.cs (3)
37 VisualElement _layout; 47 public TwoPaneViewLayoutGuide(VisualElement layout) : this(layout, null) 51 internal TwoPaneViewLayoutGuide(VisualElement layout, IFoldableService dualScreenService)