Skip to content

Commit

Permalink
WIP10 (InputTransparent is another culprit)
Browse files Browse the repository at this point in the history
Co-authored-by: Alberto Aldegheri <[email protected]>
  • Loading branch information
MartyIX and albyrock87 committed Jan 15, 2025
1 parent 526dc22 commit 38a66a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Core/src/Handlers/View/ViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ public abstract partial class ViewHandler : ElementHandler, IViewHandler
[nameof(IView.AnchorX)] = HasDefaultAnchorX,
[nameof(IView.AnchorY)] = HasDefaultAnchorY,

// TODO: I suspect thatHasDefaultInputTransparent uncommenting this line can lead to failure of SetOpacity test cases in HandlerTestBaseOfT.Tests.cs.
// [nameof(IView.Opacity)] = HasDefaultOpacity,

[nameof(IView.Opacity)] = HasDefaultOpacity,
[nameof(IView.TranslationX)] = HasDefaultTranslationX,
[nameof(IView.TranslationY)] = HasDefaultTranslationY,

Expand All @@ -80,6 +78,9 @@ public abstract partial class ViewHandler : ElementHandler, IViewHandler
new PropertyMapper<IView, IViewHandler>(ElementHandler.ElementMapper)
#endif
{
// This property is a special one and needs to be set before other properties.
[nameof(IViewHandler.ContainerView)] = MapContainerView,

[nameof(IView.AutomationId)] = MapAutomationId,
[nameof(IView.Clip)] = MapClip,
[nameof(IView.Shadow)] = MapShadow,
Expand All @@ -105,7 +106,6 @@ public abstract partial class ViewHandler : ElementHandler, IViewHandler
[nameof(IView.RotationY)] = MapRotationY,
[nameof(IView.AnchorX)] = MapAnchorX,
[nameof(IView.AnchorY)] = MapAnchorY,
[nameof(IViewHandler.ContainerView)] = MapContainerView,
#pragma warning disable CS0618 // Type or member is obsolete
[nameof(IBorder.Border)] = MapBorderView,
#pragma warning restore CS0618 // Type or member is obsolete
Expand Down

0 comments on commit 38a66a6

Please sign in to comment.