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;
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\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)
Properties\AssemblyInfo.cs (30)
84[assembly: StyleProperty("background-color", typeof(VisualElement), nameof(VisualElement.BackgroundColorProperty))]
85[assembly: StyleProperty("background", typeof(VisualElement), nameof(VisualElement.BackgroundProperty))]
101[assembly: StyleProperty("direction", typeof(VisualElement), nameof(VisualElement.FlowDirectionProperty), Inherited = true)]
105[assembly: StyleProperty("height", typeof(VisualElement), nameof(VisualElement.HeightRequestProperty))]
112[assembly: StyleProperty("min-height", typeof(VisualElement), nameof(VisualElement.MinimumHeightRequestProperty))]
113[assembly: StyleProperty("min-width", typeof(VisualElement), nameof(VisualElement.MinimumWidthRequestProperty))]
114[assembly: StyleProperty("opacity", typeof(VisualElement), nameof(VisualElement.OpacityProperty))]
123[assembly: StyleProperty("transform", typeof(VisualElement), nameof(VisualElement.TransformProperty))]
124[assembly: StyleProperty("transform-origin", typeof(VisualElement), nameof(VisualElement.TransformOriginProperty))]
126[assembly: StyleProperty("visibility", typeof(VisualElement), nameof(VisualElement.IsVisibleProperty), Inherited = true)]
127[assembly: StyleProperty("width", typeof(VisualElement), nameof(VisualElement.WidthRequestProperty))]
134[assembly: StyleProperty("align-self", typeof(VisualElement), nameof(FlexLayout.AlignSelfProperty), PropertyOwnerType = typeof(FlexLayout))]
136[assembly: StyleProperty("flex-basis", typeof(VisualElement), nameof(FlexLayout.BasisProperty), PropertyOwnerType = typeof(FlexLayout))]
137[assembly: StyleProperty("flex-grow", typeof(VisualElement), nameof(FlexLayout.GrowProperty), PropertyOwnerType = typeof(FlexLayout))]
138[assembly: StyleProperty("flex-shrink", typeof(VisualElement), nameof(FlexLayout.ShrinkProperty), PropertyOwnerType = typeof(FlexLayout))]
139[assembly: StyleProperty("flex-wrap", typeof(VisualElement), nameof(FlexLayout.WrapProperty), PropertyOwnerType = typeof(FlexLayout))]
141[assembly: StyleProperty("order", typeof(VisualElement), nameof(FlexLayout.OrderProperty), PropertyOwnerType = typeof(FlexLayout))]
159[assembly: StyleProperty("-maui-visual", typeof(VisualElement), nameof(VisualElement.VisualProperty))]
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)
33 nameof(InputTransparent), typeof(bool), typeof(VisualElement), default(bool),
40 typeof(VisualElement), true, propertyChanged: OnIsEnabledPropertyChanged, coerceValue: CoerceIsEnabledProperty);
42 static readonly BindablePropertyKey XPropertyKey = BindableProperty.CreateReadOnly(nameof(X), typeof(double), typeof(VisualElement), default(double));
47 static readonly BindablePropertyKey YPropertyKey = BindableProperty.CreateReadOnly(nameof(Y), typeof(double), typeof(VisualElement), default(double));
53 public static readonly BindableProperty AnchorXProperty = BindableProperty.Create(nameof(AnchorX), typeof(double), typeof(VisualElement), .5d);
56 public static readonly BindableProperty AnchorYProperty = BindableProperty.Create(nameof(AnchorY), typeof(double), typeof(VisualElement), .5d);
59 public static readonly BindableProperty TranslationXProperty = BindableProperty.Create(nameof(TranslationX), typeof(double), typeof(VisualElement), 0d);
62 public static readonly BindableProperty TranslationYProperty = BindableProperty.Create(nameof(TranslationY), typeof(double), typeof(VisualElement), 0d);
64 static readonly BindablePropertyKey WidthPropertyKey = BindableProperty.CreateReadOnly(nameof(Width), typeof(double), typeof(VisualElement), -1d,
70 static readonly BindablePropertyKey HeightPropertyKey = BindableProperty.CreateReadOnly(nameof(Height), typeof(double), typeof(VisualElement), -1d,
77 public static readonly BindableProperty RotationProperty = BindableProperty.Create(nameof(Rotation), typeof(double), typeof(VisualElement), default(double));
80 public static readonly BindableProperty RotationXProperty = BindableProperty.Create(nameof(RotationX), typeof(double), typeof(VisualElement), default(double));
83 public static readonly BindableProperty RotationYProperty = BindableProperty.Create(nameof(RotationY), typeof(double), typeof(VisualElement), default(double));
86 public static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(double), typeof(VisualElement), 1d);
89 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(double), typeof(VisualElement), 1d);
92 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(double), typeof(VisualElement), 1d);
94 internal static readonly BindableProperty TransformProperty = BindableProperty.Create("Transform", typeof(string), typeof(VisualElement), null, propertyChanged: OnTransformChanged);
97 public static readonly BindableProperty ClipProperty = BindableProperty.Create(nameof(Clip), typeof(Geometry), typeof(VisualElement), null,
101 (bindable as VisualElement)?.StopNotifyingClipChanges();
106 (bindable as VisualElement)?.NotifyClipChanges();
171 BindableProperty.Create(nameof(Visual), typeof(IVisual), typeof(VisualElement), VisualMarker.MatchParent,
265 BindableProperty.Create("TransformOrigin", typeof(Point), typeof(VisualElement), new Point(.5d, .5d),
266 propertyChanged: (b, o, n) => { (((VisualElement)b).AnchorX, ((VisualElement)b).AnchorY) = (Point)n; });
269 public static readonly BindableProperty IsVisibleProperty = BindableProperty.Create(nameof(IsVisible), typeof(bool), typeof(VisualElement), true,
270 propertyChanged: (bindable, oldvalue, newvalue) => ((VisualElement)bindable).OnIsVisibleChanged((bool)oldvalue, (bool)newvalue));
273 public static readonly BindableProperty OpacityProperty = BindableProperty.Create(nameof(Opacity), typeof(double), typeof(VisualElement), 1d, coerceValue: (bindable, value) => ((double)value).Clamp(0, 1));
276 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(VisualElement), null);
279 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create(nameof(Background), typeof(Brush), typeof(VisualElement), Brush.Default,
285 (bindable as VisualElement)?.StopNotifyingBackgroundChanges();
292 (bindable as VisualElement)?.NotifyBackgroundChanges();
388 internal static readonly BindablePropertyKey BehaviorsPropertyKey = BindableProperty.CreateReadOnly(nameof(Behaviors), typeof(IList<Behavior>), typeof(VisualElement), default(IList<Behavior>),
399 internal static readonly BindablePropertyKey TriggersPropertyKey = BindableProperty.CreateReadOnly(nameof(Triggers), typeof(IList<TriggerBase>), typeof(VisualElement), default(IList<TriggerBase>),
413 public static readonly BindableProperty WidthRequestProperty = BindableProperty.Create(nameof(WidthRequest), typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged);
416 public static readonly BindableProperty HeightRequestProperty = BindableProperty.Create(nameof(HeightRequest), typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged);
419 public static readonly BindableProperty MinimumWidthRequestProperty = BindableProperty.Create(nameof(MinimumWidthRequest), typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged);
422 public static readonly BindableProperty MinimumHeightRequestProperty = BindableProperty.Create(nameof(MinimumHeightRequest), typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged);
425 public static readonly BindableProperty MaximumWidthRequestProperty = BindableProperty.Create(nameof(MaximumWidthRequest), typeof(double), typeof(VisualElement), double.PositiveInfinity, propertyChanged: OnRequestChanged);
428 public static readonly BindableProperty MaximumHeightRequestProperty = BindableProperty.Create(nameof(MaximumHeightRequest), typeof(double), typeof(VisualElement), double.PositiveInfinity, propertyChanged: OnRequestChanged);
434 typeof(bool), typeof(VisualElement), default(bool), propertyChanged: OnIsFocusedPropertyChanged);
440 public static readonly BindableProperty FlowDirectionProperty = BindableProperty.Create(nameof(FlowDirection), typeof(FlowDirection), typeof(VisualElement), FlowDirection.MatchParent, propertyChanging: FlowDirectionChanging, propertyChanged: FlowDirectionChanged);
478 nameof(Window), typeof(Window), typeof(VisualElement), null, propertyChanged: OnWindowChanged);
519 /// Initializes a new instance of the <see cref="VisualElement"/> class.
651 var parent = Parent as VisualElement;
966 var visualElement = parent as VisualElement;
1055 BatchCommitted?.Invoke(this, new EventArg<VisualElement>(this));
1339 public event EventHandler<EventArg<VisualElement>> BatchCommitted;
1411 (Parent as VisualElement)?.OnChildMeasureInvalidatedInternal(this, args.Trigger, ++depth);
1419 internal virtual void OnChildMeasureInvalidatedInternal(VisualElement child, InvalidationTrigger trigger, int depth)
1605 (self as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.VisualProperty.PropertyName);
1617 if (self is VisualElement ve)
1625 (bindable as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.FlowDirectionProperty.PropertyName);
1630 if (bindable is VisualElement visualElement)
1641 var element = (VisualElement)bindable;
1648 (bindable as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.IsEnabledProperty.PropertyName);
1653 if (bindable is VisualElement visualElement)
1664 (bindable as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.InputTransparentProperty.PropertyName);
1669 var element = (VisualElement)bindable;
1692 var element = (VisualElement)bindable;
1714 ((VisualElement)bindable).InvalidateMeasureInternal(InvalidationTrigger.SizeRequestChanged);
1750 (this as IPropertyPropagationController)?.PropagatePropertyChanged(VisualElement.InputTransparentProperty.PropertyName);
1835 BindableProperty.Create(nameof(Shadow), typeof(Shadow), typeof(VisualElement), defaultValue: null,
1839 (bindable as VisualElement)?.StopNotifyingShadowChanges();
1844 (bindable as VisualElement)?.NotifyShadowChanges();
1858 BindableProperty.Create(nameof(ZIndex), typeof(int), typeof(VisualElement), default(int),
2301 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)