From db6cfc434437bcc524d3e1d27381e3e7e7ccc71e Mon Sep 17 00:00:00 2001 From: Roman Shapiro Date: Fri, 20 Sep 2024 14:45:56 +0700 Subject: [PATCH] More fixes --- Directory.Build.props | 2 +- src/Myra/Graphics2D/UI/Selectors/TabControl.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index f091608e..60c495a5 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,7 +6,7 @@ https://github.com/rds1983/Myra Myra UI Library for MonoGame, FNA and Stride - 1.5.6 + 1.5.7 0.7.3 1.3.9 8.0 diff --git a/src/Myra/Graphics2D/UI/Selectors/TabControl.cs b/src/Myra/Graphics2D/UI/Selectors/TabControl.cs index 6b1d1781..bcff5796 100644 --- a/src/Myra/Graphics2D/UI/Selectors/TabControl.cs +++ b/src/Myra/Graphics2D/UI/Selectors/TabControl.cs @@ -74,8 +74,12 @@ public TabSelectorPosition TabSelectorPosition } [Category("Behavior")] + [DefaultValue(false)] public bool CloseableTabs { get; set; } + [DefaultValue(true)] + public override bool ClipToBounds { get => base.ClipToBounds; set => base.ClipToBounds = value; } + public TabControl(string styleName = Stylesheet.DefaultStyleName) : base(new Grid()) { HorizontalAlignment = HorizontalAlignment.Left;