Handlers\View\ViewHandler.cs (109)
17 /// Base class for handlers that manage views which implement <see cref="IView"/>.
26 public static IPropertyMapper<IView, IViewHandler> ViewMapper =
31 new PropertyMapper<IView, IViewHandler>(ElementHandler.ElementMapper)
40 [nameof(IView.AutomationId)] = MapAutomationId,
41 [nameof(IView.Clip)] = MapClip,
42 [nameof(IView.Shadow)] = MapShadow,
43 [nameof(IView.Visibility)] = MapVisibility,
44 [nameof(IView.Background)] = MapBackground,
45 [nameof(IView.FlowDirection)] = MapFlowDirection,
46 [nameof(IView.Width)] = MapWidth,
47 [nameof(IView.Height)] = MapHeight,
48 [nameof(IView.MinimumHeight)] = MapMinimumHeight,
49 [nameof(IView.MaximumHeight)] = MapMaximumHeight,
50 [nameof(IView.MinimumWidth)] = MapMinimumWidth,
51 [nameof(IView.MaximumWidth)] = MapMaximumWidth,
52 [nameof(IView.IsEnabled)] = MapIsEnabled,
53 [nameof(IView.Opacity)] = MapOpacity,
54 [nameof(IView.Semantics)] = MapSemantics,
55 [nameof(IView.TranslationX)] = MapTranslationX,
56 [nameof(IView.TranslationY)] = MapTranslationY,
57 [nameof(IView.Scale)] = MapScale,
58 [nameof(IView.ScaleX)] = MapScaleX,
59 [nameof(IView.ScaleY)] = MapScaleY,
60 [nameof(IView.Rotation)] = MapRotation,
61 [nameof(IView.RotationX)] = MapRotationX,
62 [nameof(IView.RotationY)] = MapRotationY,
63 [nameof(IView.AnchorX)] = MapAnchorX,
64 [nameof(IView.AnchorY)] = MapAnchorY,
71 [nameof(IView.InputTransparent)] = MapInputTransparent,
83 public static CommandMapper<IView, IViewHandler> ViewCommandMapper = new()
85 [nameof(IView.InvalidateMeasure)] = MapInvalidateMeasure,
86 [nameof(IView.Frame)] = MapFrame,
87 [nameof(IView.ZIndex)] = MapZIndex,
88 [nameof(IView.Focus)] = MapFocus,
89 [nameof(IView.Unfocus)] = MapUnfocus,
172 public new IView? VirtualView
174 get => (IView?)base.VirtualView;
222 /// Maps the abstract <see cref="IView.Width"/> property to the platform-specific implementations.
225 /// <param name="view">The associated <see cref="IView"/> instance.</param>
226 public static void MapWidth(IViewHandler handler, IView view)
232 /// Maps the abstract <see cref="IView.Height"/> property to the platform-specific implementations.
235 /// <param name="view">The associated <see cref="IView"/> instance.</param>
236 public static void MapHeight(IViewHandler handler, IView view)
242 /// Maps the abstract <see cref="IView.MinimumHeight"/> property to the platform-specific implementations.
245 /// <param name="view">The associated <see cref="IView"/> instance.</param>
246 public static void MapMinimumHeight(IViewHandler handler, IView view)
252 /// Maps the abstract <see cref="IView.MaximumHeight"/> property to the platform-specific implementations.
255 /// <param name="view">The associated <see cref="IView"/> instance.</param>
256 public static void MapMaximumHeight(IViewHandler handler, IView view)
262 /// Maps the abstract <see cref="IView.MinimumWidth"/> property to the platform-specific implementations.
265 /// <param name="view">The associated <see cref="IView"/> instance.</param>
266 public static void MapMinimumWidth(IViewHandler handler, IView view)
272 /// Maps the abstract <see cref="IView.MaximumWidth"/> property to the platform-specific implementations.
275 /// <param name="view">The associated <see cref="IView"/> instance.</param>
276 public static void MapMaximumWidth(IViewHandler handler, IView view)
282 /// Maps the abstract <see cref="IView.IsEnabled"/> property to the platform-specific implementations.
285 /// <param name="view">The associated <see cref="IView"/> instance.</param>
286 public static void MapIsEnabled(IViewHandler handler, IView view)
292 /// Maps the abstract <see cref="IView.Visibility"/> property to the platform-specific implementations.
295 /// <param name="view">The associated <see cref="IView"/> instance.</param>
296 public static void MapVisibility(IViewHandler handler, IView view)
305 /// Maps the abstract <see cref="IView.Background"/> property to the platform-specific implementations.
308 /// <param name="view">The associated <see cref="IView"/> instance.</param>
309 public static void MapBackground(IViewHandler handler, IView view)
328 /// Maps the abstract <see cref="IView.FlowDirection"/> property to the platform-specific implementations.
331 /// <param name="view">The associated <see cref="IView"/> instance.</param>
332 public static void MapFlowDirection(IViewHandler handler, IView view)
338 /// Maps the abstract <see cref="IView.Opacity"/> property to the platform-specific implementations.
341 /// <param name="view">The associated <see cref="IView"/> instance.</param>
342 public static void MapOpacity(IViewHandler handler, IView view)
355 /// Maps the abstract <see cref="IView.AutomationId"/> property to the platform-specific implementations.
358 /// <param name="view">The associated <see cref="IView"/> instance.</param>
359 public static void MapAutomationId(IViewHandler handler, IView view)
365 /// Maps the abstract <see cref="IView.Clip"/> property to the platform-specific implementations.
368 /// <param name="view">The associated <see cref="IView"/> instance.</param>
369 public static void MapClip(IViewHandler handler, IView view)
377 /// Maps the abstract <see cref="IView.Shadow"/> property to the platform-specific implementations.
380 /// <param name="view">The associated <see cref="IView"/> instance.</param>
381 public static void MapShadow(IViewHandler handler, IView view)
388 static partial void MappingSemantics(IViewHandler handler, IView view);
391 /// Maps the abstract <see cref="IView.Semantics"/> property to the platform-specific implementations.
394 /// <param name="view">The associated <see cref="IView"/> instance.</param>
395 public static void MapSemantics(IViewHandler handler, IView view)
402 /// Maps the abstract <see cref="IView.InvalidateMeasure"/> method to the platform-specific implementations.
405 /// <param name="view">The associated <see cref="IView"/> instance.</param>
407 public static void MapInvalidateMeasure(IViewHandler handler, IView view, object? args)
416 /// <param name="view">The associated <see cref="IView"/> instance.</param>
417 public static void MapContainerView(IViewHandler handler, IView view)
428 handler.UpdateValue(nameof(IView.Visibility));
441 /// <param name="view">The associated <see cref="IView"/> instance.</param>
442 public static void MapBorderView(IViewHandler handler, IView view)
450 static partial void MappingFrame(IViewHandler handler, IView view);
453 /// Maps the abstract <see cref="IView.Frame"/> property to the platform-specific implementations.
456 /// <param name="view">The associated <see cref="IView"/> instance.</param>
458 public static void MapFrame(IViewHandler handler, IView view, object? args)
464 /// Maps the abstract <see cref="IView.ZIndex"/> property to the platform-specific implementations.
467 /// <param name="view">The associated <see cref="IView"/> instance.</param>
469 public static void MapZIndex(IViewHandler handler, IView view, object? args)
478 /// Maps the abstract <see cref="IView.Focus"/> property to the platform-specific implementations.
481 /// <param name="view">The associated <see cref="IView"/> instance.</param>
483 public static void MapFocus(IViewHandler handler, IView view, object? args)
492 /// Maps the abstract <see cref="IView.InputTransparent"/> property to the platform-specific implementations.
495 /// <param name="view">The associated <see cref="IView"/> instance.</param>
496 public static void MapInputTransparent(IViewHandler handler, IView view)
517 /// Maps the abstract <see cref="IView.Unfocus"/> method to the platform-specific implementations.
520 /// <param name="view">The associated <see cref="IView"/> instance.</param>
522 public static void MapUnfocus(IViewHandler handler, IView view, object? args)
531 /// <param name="view">The associated <see cref="IView"/> instance.</param>
532 public static void MapToolTip(IViewHandler handler, IView view)
Handlers\View\ViewHandler.Standard.cs (23)
9 /// <param name="view">The associated <see cref="IView"/> instance.</param>
10 public static void MapTranslationX(IViewHandler handler, IView view) { }
16 /// <param name="view">The associated <see cref="IView"/> instance.</param>
17 public static void MapTranslationY(IViewHandler handler, IView view) { }
23 /// <param name="view">The associated <see cref="IView"/> instance.</param>
24 public static void MapScale(IViewHandler handler, IView view) { }
30 /// <param name="view">The associated <see cref="IView"/> instance.</param>
31 public static void MapScaleX(IViewHandler handler, IView view) { }
37 /// <param name="view">The associated <see cref="IView"/> instance.</param>
38 public static void MapScaleY(IViewHandler handler, IView view) { }
44 /// <param name="view">The associated <see cref="IView"/> instance.</param>
45 public static void MapRotation(IViewHandler handler, IView view) { }
51 /// <param name="view">The associated <see cref="IView"/> instance.</param>
52 public static void MapRotationX(IViewHandler handler, IView view) { }
58 /// <param name="view">The associated <see cref="IView"/> instance.</param>
59 public static void MapRotationY(IViewHandler handler, IView view) { }
65 /// <param name="view">The associated <see cref="IView"/> instance.</param>
66 public static void MapAnchorX(IViewHandler handler, IView view) { }
72 /// <param name="view">The associated <see cref="IView"/> instance.</param>
73 public static void MapAnchorY(IViewHandler handler, IView view) { }
76 /// Maps the abstract <see cref="IView"/> to the platform-specific implementations of a <see cref="IContextFlyoutElement"/>.
80 /// <param name="view">The associated <see cref="IView"/> instance.</param>
81 public static void MapContextFlyout(IViewHandler handler, IView view) { }
Platform\Standard\ViewExtensions.cs (32)
7 public static void UpdateIsEnabled(this object platformView, IView view) { }
11 public static void Unfocus(this object platformView, IView view) { }
13 public static void UpdateVisibility(this object platformView, IView view) { }
18 public static void UpdateBackground(this object platformView, IView view) { }
20 public static void UpdateClipsToBounds(this object platformView, IView view) { }
22 public static void UpdateAutomationId(this object platformView, IView view) { }
24 public static void UpdateClip(this object platformView, IView view) { }
26 public static void UpdateShadow(this object platformView, IView view) { }
28 public static void UpdateBorder(this object platformView, IView view) { }
30 public static void UpdateOpacity(this object platformView, IView view) { }
34 public static void UpdateSemantics(this object platformView, IView view) { }
36 public static void UpdateFlowDirection(this object platformView, IView view) { }
38 public static void UpdateTranslationX(this object platformView, IView view) { }
40 public static void UpdateTranslationY(this object platformView, IView view) { }
42 public static void UpdateScale(this object platformView, IView view) { }
44 public static void UpdateRotation(this object platformView, IView view) { }
46 public static void UpdateRotationX(this object platformView, IView view) { }
48 public static void UpdateRotationY(this object platformView, IView view) { }
50 public static void UpdateAnchorX(this object platformView, IView view) { }
52 public static void UpdateAnchorY(this object platformView, IView view) { }
54 public static void InvalidateMeasure(this object platformView, IView view) { }
56 public static void UpdateWidth(this object platformView, IView view) { }
58 public static void UpdateHeight(this object platformView, IView view) { }
60 public static void UpdateMinimumHeight(this object platformView, IView view) { }
62 public static void UpdateMaximumHeight(this object platformView, IView view) { }
64 public static void UpdateMinimumWidth(this object platformView, IView view) { }
66 public static void UpdateMaximumWidth(this object platformView, IView view) { }
68 internal static Graphics.Rect GetPlatformViewBounds(this IView view) => view.Frame;
70 internal static System.Numerics.Matrix4x4 GetViewTransform(this IView view) => new System.Numerics.Matrix4x4();
74 internal static Graphics.Rect GetBoundingBox(this IView view) => view.Frame;
81 internal static IWindow? GetHostedWindow(this IView? view)
84 public static void UpdateInputTransparent(this object nativeView, IViewHandler handler, IView view) { }