Skip to content

Commit

Permalink
Convert Window control methods into bindable properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausLoeffelmann committed Jul 31, 2024
1 parent 0065857 commit 3c2c903
Show file tree
Hide file tree
Showing 18 changed files with 850 additions and 67 deletions.
1 change: 1 addition & 0 deletions src/System.Windows.Forms.Primitives/src/NativeMethods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ DSH_FLAGS
DTM_*
DTN_*
DTS_*
DwmGetWindowAttribute
DwmSetWindowAttribute
DWM_WINDOW_CORNER_PREFERENCE
DuplicateHandle
Expand Down
30 changes: 21 additions & 9 deletions src/System.Windows.Forms/src/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ static System.Windows.Forms.Application.SetColorMode(System.Windows.Forms.System
static System.Windows.Forms.Application.SystemColorMode.get -> System.Windows.Forms.SystemColorMode
static System.Windows.Forms.Control.ControlSystemColors.Current.get -> System.Windows.Forms.Control.ControlSystemColors!
static System.Windows.Forms.Control.ControlSystemColors.GetAdaptedDarkModeColorFromKnownColor(System.Drawing.KnownColor knownColor, bool darkMode) -> System.Drawing.Color
System.Windows.Forms.Form.FormBorderColor.get -> System.Drawing.Color
System.Windows.Forms.Form.FormBorderColor.set -> void
System.Windows.Forms.Form.FormBorderColorChanged -> System.EventHandler?
System.Windows.Forms.Form.FormCaptionBackColor.get -> System.Drawing.Color
System.Windows.Forms.Form.FormCaptionBackColor.set -> void
System.Windows.Forms.Form.FormCaptionBackColorChanged -> System.EventHandler?
System.Windows.Forms.Form.FormCaptionTextColor.get -> System.Drawing.Color
System.Windows.Forms.Form.FormCaptionTextColor.set -> void
System.Windows.Forms.Form.FormCaptionTextColorChanged -> System.EventHandler?
System.Windows.Forms.Form.FormCornerPreference.get -> System.Windows.Forms.FormCornerPreference
System.Windows.Forms.Form.FormCornerPreference.set -> void
System.Windows.Forms.Form.FormCornerPreferenceChanged -> System.EventHandler?
System.Windows.Forms.FormCornerPreference
System.Windows.Forms.FormCornerPreference.Default = 0 -> System.Windows.Forms.FormCornerPreference
System.Windows.Forms.FormCornerPreference.DoNotRound = 1 -> System.Windows.Forms.FormCornerPreference
System.Windows.Forms.FormCornerPreference.Round = 2 -> System.Windows.Forms.FormCornerPreference
System.Windows.Forms.FormCornerPreference.RoundSmall = 3 -> System.Windows.Forms.FormCornerPreference
System.Windows.Forms.SystemColorMode
System.Windows.Forms.SystemColorMode.Classic = 0 -> System.Windows.Forms.SystemColorMode
System.Windows.Forms.SystemColorMode.Dark = 2 -> System.Windows.Forms.SystemColorMode
Expand All @@ -21,15 +38,6 @@ System.Windows.Forms.Control.DebuggerBreakCounters.get -> System.Collections.Gen
System.Windows.Forms.Control.DebuggerBreakCounters.set -> void
System.Windows.Forms.Control.VisualStylesMode.get -> System.Windows.Forms.VisualStylesMode
System.Windows.Forms.Control.VisualStylesMode.set -> void
System.Windows.Forms.Form.SetWindowBorderColor(System.Drawing.Color color) -> void
System.Windows.Forms.Form.SetWindowCaptionColor(System.Drawing.Color color) -> void
System.Windows.Forms.Form.SetWindowCaptionTextColor(System.Drawing.Color color) -> void
System.Windows.Forms.Form.SetWindowCornerPreference(System.Windows.Forms.Form.WindowCornerPreference cornerPreference) -> void
System.Windows.Forms.Form.WindowCornerPreference
System.Windows.Forms.Form.WindowCornerPreference.Default = 0 -> System.Windows.Forms.Form.WindowCornerPreference
System.Windows.Forms.Form.WindowCornerPreference.DoNotRound = 1 -> System.Windows.Forms.Form.WindowCornerPreference
System.Windows.Forms.Form.WindowCornerPreference.Round = 2 -> System.Windows.Forms.Form.WindowCornerPreference
System.Windows.Forms.Form.WindowCornerPreference.RoundSmall = 3 -> System.Windows.Forms.Form.WindowCornerPreference
System.Windows.Forms.VisualStylesMode
System.Windows.Forms.VisualStylesMode.Classic = 0 -> System.Windows.Forms.VisualStylesMode
System.Windows.Forms.VisualStylesMode.Disabled = 1 -> System.Windows.Forms.VisualStylesMode
Expand Down Expand Up @@ -72,3 +80,7 @@ System.Windows.Forms.Control.ControlSystemColors.ScrollBar.get -> System.Drawing
System.Windows.Forms.Control.ControlSystemColors.Window.get -> System.Drawing.Color
System.Windows.Forms.Control.ControlSystemColors.WindowFrame.get -> System.Drawing.Color
System.Windows.Forms.Control.ControlSystemColors.WindowText.get -> System.Drawing.Color
virtual System.Windows.Forms.Form.OnFormBorderColorChanged(System.EventArgs! e) -> void
virtual System.Windows.Forms.Form.OnFormCaptionBackColorChanged(System.EventArgs! e) -> void
virtual System.Windows.Forms.Form.OnFormCaptionTextColorChanged(System.EventArgs! e) -> void
virtual System.Windows.Forms.Form.OnFormCornerPreferenceChanged(System.EventArgs! e) -> void
24 changes: 24 additions & 0 deletions src/System.Windows.Forms/src/Resources/SR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -6991,4 +6991,28 @@ Stack trace where the illegal operation occurred was:
<data name="DarkModeNotSupported" xml:space="preserve">
<value>Dark mode cannot be activated, either because of an activated High-Contrast mode or because the underlying OS does not support it.</value>
</data>
<data name="FormBorderColorChangedDescr" xml:space="preserve">
<value>Occurs whenever the FormBorderColor property is changed.</value>
</data>
<data name="FormCaptionBackColorChangedDescr" xml:space="preserve">
<value>Occurs whenever the FormCaptionBackColor property is changed.</value>
</data>
<data name="FormCaptionTextColorChangedDescr" xml:space="preserve">
<value>Occurs whenever the FormCaptionTextColor property is changed.</value>
</data>
<data name="FormCornerPreferenceChangedDescr" xml:space="preserve">
<value>Occurs whenever the FormCornerPreference property is changed.</value>
</data>
<data name="FormCornerPreferenceDescr" xml:space="preserve">
<value>The rounding style of the Form's border.</value>
</data>
<data name="FormBorderColorDescr" xml:space="preserve">
<value>The color of the Form's border.</value>
</data>
<data name="FormCaptionBackColorDescr" xml:space="preserve">
<value>The back color of the Form's caption (title bar).</value>
</data>
<data name="FormCaptionTextColorDescr" xml:space="preserve">
<value>The color of the Form's text caption (title bar text).</value>
</data>
</root>
40 changes: 40 additions & 0 deletions src/System.Windows.Forms/src/Resources/xlf/SR.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions src/System.Windows.Forms/src/Resources/xlf/SR.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions src/System.Windows.Forms/src/Resources/xlf/SR.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions src/System.Windows.Forms/src/Resources/xlf/SR.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c2c903

Please sign in to comment.