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)
34 [nameof(IView.AutomationId)] = MapAutomationId,
35 [nameof(IView.Clip)] = MapClip,
36 [nameof(IView.Shadow)] = MapShadow,
37 [nameof(IView.Visibility)] = MapVisibility,
38 [nameof(IView.Background)] = MapBackground,
39 [nameof(IView.FlowDirection)] = MapFlowDirection,
40 [nameof(IView.Width)] = MapWidth,
41 [nameof(IView.Height)] = MapHeight,
42 [nameof(IView.MinimumHeight)] = MapMinimumHeight,
43 [nameof(IView.MaximumHeight)] = MapMaximumHeight,
44 [nameof(IView.MinimumWidth)] = MapMinimumWidth,
45 [nameof(IView.MaximumWidth)] = MapMaximumWidth,
46 [nameof(IView.IsEnabled)] = MapIsEnabled,
47 [nameof(IView.Opacity)] = MapOpacity,
48 [nameof(IView.Semantics)] = MapSemantics,
49 [nameof(IView.TranslationX)] = MapTranslationX,
50 [nameof(IView.TranslationY)] = MapTranslationY,
51 [nameof(IView.Scale)] = MapScale,
52 [nameof(IView.ScaleX)] = MapScaleX,
53 [nameof(IView.ScaleY)] = MapScaleY,
54 [nameof(IView.Rotation)] = MapRotation,
55 [nameof(IView.RotationX)] = MapRotationX,
56 [nameof(IView.RotationY)] = MapRotationY,
57 [nameof(IView.AnchorX)] = MapAnchorX,
58 [nameof(IView.AnchorY)] = MapAnchorY,
66 [nameof(IView.InputTransparent)] = MapInputTransparent,
82 public static CommandMapper<IView, IViewHandler> ViewCommandMapper = new()
84 [nameof(IView.InvalidateMeasure)] = MapInvalidateMeasure,
85 [nameof(IView.Frame)] = MapFrame,
86 [nameof(IView.ZIndex)] = MapZIndex,
87 [nameof(IView.Focus)] = MapFocus,
88 [nameof(IView.Unfocus)] = MapUnfocus,
171 public new IView? VirtualView
173 get => (IView?)base.VirtualView;
221 /// Maps the abstract <see cref="IView.Width"/> property to the platform-specific implementations.
224 /// <param name="view">The associated <see cref="IView"/> instance.</param>
225 public static void MapWidth(IViewHandler handler, IView view)
231 /// Maps the abstract <see cref="IView.Height"/> property to the platform-specific implementations.
234 /// <param name="view">The associated <see cref="IView"/> instance.</param>
235 public static void MapHeight(IViewHandler handler, IView view)
241 /// Maps the abstract <see cref="IView.MinimumHeight"/> property to the platform-specific implementations.
244 /// <param name="view">The associated <see cref="IView"/> instance.</param>
245 public static void MapMinimumHeight(IViewHandler handler, IView view)
251 /// Maps the abstract <see cref="IView.MaximumHeight"/> property to the platform-specific implementations.
254 /// <param name="view">The associated <see cref="IView"/> instance.</param>
255 public static void MapMaximumHeight(IViewHandler handler, IView view)
261 /// Maps the abstract <see cref="IView.MinimumWidth"/> property to the platform-specific implementations.
264 /// <param name="view">The associated <see cref="IView"/> instance.</param>
265 public static void MapMinimumWidth(IViewHandler handler, IView view)
271 /// Maps the abstract <see cref="IView.MaximumWidth"/> property to the platform-specific implementations.
274 /// <param name="view">The associated <see cref="IView"/> instance.</param>
275 public static void MapMaximumWidth(IViewHandler handler, IView view)
281 /// Maps the abstract <see cref="IView.IsEnabled"/> property to the platform-specific implementations.
284 /// <param name="view">The associated <see cref="IView"/> instance.</param>
285 public static void MapIsEnabled(IViewHandler handler, IView view)
291 /// Maps the abstract <see cref="IView.Visibility"/> property to the platform-specific implementations.
294 /// <param name="view">The associated <see cref="IView"/> instance.</param>
295 public static void MapVisibility(IViewHandler handler, IView view)
304 /// Maps the abstract <see cref="IView.Background"/> property to the platform-specific implementations.
307 /// <param name="view">The associated <see cref="IView"/> instance.</param>
308 public static void MapBackground(IViewHandler handler, IView view)
327 /// Maps the abstract <see cref="IView.FlowDirection"/> property to the platform-specific implementations.
330 /// <param name="view">The associated <see cref="IView"/> instance.</param>
331 public static void MapFlowDirection(IViewHandler handler, IView view)
337 /// Maps the abstract <see cref="IView.Opacity"/> property to the platform-specific implementations.
340 /// <param name="view">The associated <see cref="IView"/> instance.</param>
341 public static void MapOpacity(IViewHandler handler, IView view)
354 /// Maps the abstract <see cref="IView.AutomationId"/> property to the platform-specific implementations.
357 /// <param name="view">The associated <see cref="IView"/> instance.</param>
358 public static void MapAutomationId(IViewHandler handler, IView view)
364 /// Maps the abstract <see cref="IView.Clip"/> property to the platform-specific implementations.
367 /// <param name="view">The associated <see cref="IView"/> instance.</param>
368 public static void MapClip(IViewHandler handler, IView view)
376 /// Maps the abstract <see cref="IView.Shadow"/> property to the platform-specific implementations.
379 /// <param name="view">The associated <see cref="IView"/> instance.</param>
380 public static void MapShadow(IViewHandler handler, IView view)
387 static partial void MappingSemantics(IViewHandler handler, IView view);
390 /// Maps the abstract <see cref="IView.Semantics"/> property to the platform-specific implementations.
393 /// <param name="view">The associated <see cref="IView"/> instance.</param>
394 public static void MapSemantics(IViewHandler handler, IView view)
401 /// Maps the abstract <see cref="IView.InvalidateMeasure"/> method to the platform-specific implementations.
404 /// <param name="view">The associated <see cref="IView"/> instance.</param>
406 public static void MapInvalidateMeasure(IViewHandler handler, IView view, object? args)
415 /// <param name="view">The associated <see cref="IView"/> instance.</param>
416 public static void MapContainerView(IViewHandler handler, IView view)
427 handler.UpdateValue(nameof(IView.Visibility));
440 /// <param name="view">The associated <see cref="IView"/> instance.</param>
441 public static void MapBorderView(IViewHandler handler, IView view)
449 static partial void MappingFrame(IViewHandler handler, IView view);
452 /// Maps the abstract <see cref="IView.Frame"/> property to the platform-specific implementations.
455 /// <param name="view">The associated <see cref="IView"/> instance.</param>
457 public static void MapFrame(IViewHandler handler, IView view, object? args)
463 /// Maps the abstract <see cref="IView.ZIndex"/> property to the platform-specific implementations.
466 /// <param name="view">The associated <see cref="IView"/> instance.</param>
468 public static void MapZIndex(IViewHandler handler, IView view, object? args)
477 /// Maps the abstract <see cref="IView.Focus"/> property to the platform-specific implementations.
480 /// <param name="view">The associated <see cref="IView"/> instance.</param>
482 public static void MapFocus(IViewHandler handler, IView view, object? args)
491 /// Maps the abstract <see cref="IView.InputTransparent"/> property to the platform-specific implementations.
494 /// <param name="view">The associated <see cref="IView"/> instance.</param>
495 public static void MapInputTransparent(IViewHandler handler, IView view)
516 /// Maps the abstract <see cref="IView.Unfocus"/> method to the platform-specific implementations.
519 /// <param name="view">The associated <see cref="IView"/> instance.</param>
521 public static void MapUnfocus(IViewHandler handler, IView view, object? args)
530 /// <param name="view">The associated <see cref="IView"/> instance.</param>
531 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) { }