Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabrevet-dev <57099550+abrevet-dev@users.noreply.github.com>2019-10-31 15:48:12 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-10-31 15:48:12 +0300
commit6b3aa3a05bb79ef9f6d450233da603583d0dcbf8 (patch)
tree1418cb4d7e066d4ff17d0525a2468c0a49e47cf0 /mcs/class/System.Windows.Forms
parenta27aa7afd053c6a947d3205863aa196bde239193 (diff)
[WinForms] Change HotkeyPrefix default value in TabControlPainter.cs (#17579)
The default behavior on .NET Framework is _HotkeyPrefix.None_ when creating a _TabControl_ element (ampersands not escaped). If an user wants to override this behavior, he has to declare a _DrawItemEventHandler_ (with _DrawMode = OwnerDrawFixed_). Fixes #16206
Diffstat (limited to 'mcs/class/System.Windows.Forms')
-rw-r--r--mcs/class/System.Windows.Forms/System.Windows.Forms.Theming/Default/TabControlPainter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms.Theming/Default/TabControlPainter.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms.Theming/Default/TabControlPainter.cs
index 0d32cb96b82..7daef6d5acc 100644
--- a/mcs/class/System.Windows.Forms/System.Windows.Forms.Theming/Default/TabControlPainter.cs
+++ b/mcs/class/System.Windows.Forms/System.Windows.Forms.Theming/Default/TabControlPainter.cs
@@ -192,7 +192,7 @@ namespace System.Windows.Forms.Theming.Default
defaultFormatting.Alignment = StringAlignment.Near;
defaultFormatting.LineAlignment = StringAlignment.Center;
defaultFormatting.FormatFlags = StringFormatFlags.NoWrap | StringFormatFlags.NoClip;
- defaultFormatting.HotkeyPrefix = HotkeyPrefix.Show;
+ defaultFormatting.HotkeyPrefix = HotkeyPrefix.None;
borderThickness = new Rectangle (1, 1, 2, 2);
}