Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/Core/src/Handlers/Layout/LayoutHandler.Gtk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,21 @@ public override Size GetDesiredSize(double widthConstraint, double heightConstra

#endif

private void UpdateVisibility(Visibility visibility)
{
if (visibility == Visibility.Visible)
PlatformView.Show();
else
PlatformView.Hide();
}

[MissingMapper]
public void UpdateZIndex(IView view) => throw new NotImplementedException();

static void MapVisibility(ILayoutHandler handler, ILayout layout)
{
((LayoutHandler)handler).UpdateVisibility(layout.Visibility);
}
}

}
}
3 changes: 3 additions & 0 deletions src/Core/src/Handlers/Layout/LayoutHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public partial class LayoutHandler : ILayoutHandler
[nameof(ILayout.ClipsToBounds)] = MapClipsToBounds,
#if ANDROID || WINDOWS
[nameof(IView.InputTransparent)] = MapInputTransparent,
#endif
#if GTK
[nameof(IView.Visibility)] = MapVisibility,
#endif
};

Expand Down