Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* January 2025 (Canary) #2058

Merged
merged 116 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
3f5ee1b
- Use DeviceDpi to scale images
Smurf-IV Dec 17, 2024
dce3aea
Fixes-nullables and warnings and build errors.
giduac Dec 17, 2024
3160842
Merge pull request #1960 from giduac/fix-nullables
Smurf-IV Dec 17, 2024
d5b341f
- Fix "Startup" edgecase
Smurf-IV Dec 17, 2024
74fb182
Merge pull request #1959 from Krypton-Suite/565-alpha-GroupBox-Scaling
giduac Dec 17, 2024
6ffbb41
Merge pull request #1963 from Krypton-Suite/1946-alpha-ButtonSpecs-Sc…
giduac Dec 17, 2024
e956462
- Add DPI Scaling to the Checkbox images
Smurf-IV Dec 17, 2024
164ae6a
Merge pull request #1967 from Krypton-Suite/560-alpha-CheckBox-Image-…
PWagner1 Dec 17, 2024
d14f835
* Implemented #1968
PWagner1 Dec 17, 2024
9ac4d9e
Merge pull request #1969 from Krypton-Suite/1968-feature-request-open…
Smurf-IV Dec 18, 2024
3081f4a
- `KryptonTreeView` Node crosses are now Dpi Scaled
Smurf-IV Dec 18, 2024
9d772fb
Merge pull request #1974 from Krypton-Suite/1964-alpha-KTreeView-Node…
PWagner1 Dec 18, 2024
c7201bf
- Make sure Panel is sized to the Form before allowing controls to be…
Smurf-IV Dec 19, 2024
9fbb447
Merge pull request #1978 from Krypton-Suite/1977-alpha-Control-Anchor
giduac Dec 19, 2024
833498b
1908-V100-KDGV-ComboBoxColumn-updates
giduac Dec 20, 2024
39347ae
1908-V100-KDGV-ComboBoxColumn-updates
giduac Dec 20, 2024
1b40480
1979-Kryptonform-Temporary-Fix
giduac Dec 20, 2024
53faec7
1979-Kryptonform-Temporary-Fix
giduac Dec 20, 2024
77b2577
Merge pull request #1980 from giduac/1908-V100-KDGV-ComboBoxColumn-up…
Smurf-IV Dec 20, 2024
8e0d5ad
Merge pull request #1981 from giduac/1979-Kryptonform-Temporary-Fix
Smurf-IV Dec 20, 2024
f969fc6
1908-V100-KDGV-Column-indicator-image-class-update
giduac Dec 20, 2024
6cddc93
Merge pull request #1982 from giduac/1908-V100-KDGV-Column-indicator-…
PWagner1 Dec 20, 2024
44b49e0
Merge pull request #1983 from Krypton-Suite/alpha
PWagner1 Dec 21, 2024
039516a
* Resolved #1287
PWagner1 Dec 22, 2024
1785511
* Values
PWagner1 Dec 22, 2024
13e2789
* Use verbatim strings
PWagner1 Dec 22, 2024
a911b2e
* Resolved #213
PWagner1 Dec 22, 2024
70a1147
* Some ammendments
PWagner1 Dec 22, 2024
e52fbf8
* Fixes to TestApp
PWagner1 Dec 22, 2024
abd7dc7
* KryptonProgressBar bitmap
PWagner1 Dec 22, 2024
3460f65
* Some tweaks
PWagner1 Dec 23, 2024
c110c4d
1784-V100-KryptonDataGridView-reorders-Columns-during-debugging
giduac Dec 23, 2024
5bb10f0
1784-V100-KryptonDataGridView-reorders-Columns-during-debugging
giduac Dec 23, 2024
7760a95
1784-V100-KryptonDataGridView-reorders-Columns-during-debugging
giduac Dec 23, 2024
6fe8f6a
1784-V100-KryptonDataGridView-reorders-Columns-during-debugging
giduac Dec 23, 2024
1a2148e
Merge pull request #1986 from giduac/1784-V100-KryptonDataGridView-re…
PWagner1 Dec 24, 2024
46d8699
Merge branch 'alpha' into 213-bug-thememanager-needs-to-be-crossthrea…
PWagner1 Dec 24, 2024
c1a473c
Merge branch 'alpha' into 1287-bug-ktoast-has-many-issues-text-area
PWagner1 Dec 24, 2024
6f0f27a
1908-V100-KryptonDataGridViewDateTimePickerCell-updates
giduac Dec 24, 2024
ce6ccfb
Merge pull request #1988 from giduac/1908-V100-KryptonDataGridViewDat…
PWagner1 Dec 24, 2024
e2aa5e9
Updates tot the KryptonDataGridViewDateTimePickerColumn
giduac Dec 25, 2024
9fecf2d
Merge pull request #1989 from giduac/1908-V100-KryptonDataGridViewDat…
PWagner1 Dec 25, 2024
cf9a75c
1908-V100-KryptonDataGridViewDomainUpDownCell-updates
giduac Dec 25, 2024
ee5f148
1908-V100-KDGV-ComboBoxColumn-updates
giduac Dec 25, 2024
5f487a3
1908-V100-KDGV-ComboBoxColumn-updates
giduac Dec 25, 2024
e05a19d
1908-V100-KryptonDataGridViewNumericUpDownCell-updates
giduac Dec 25, 2024
cccb6aa
1784-V100-KryptonDataGridView-reorders-Columns-during-debugging
giduac Dec 26, 2024
e265783
Merge pull request #1993 from giduac/1784-V100-KryptonDataGridView-re…
PWagner1 Dec 26, 2024
f95aadb
Merge pull request #1992 from giduac/1908-V100-KryptonDataGridViewNum…
PWagner1 Dec 26, 2024
eddf8ba
Merge pull request #1991 from giduac/1908-V100-KDGV-ComboBoxColumn-up…
PWagner1 Dec 26, 2024
76ec0cc
Merge pull request #1990 from giduac/1908-V100-KryptonDataGridViewDom…
PWagner1 Dec 26, 2024
1281f45
- Make the CueHintText work again
Smurf-IV Dec 28, 2024
7a6694a
Merge pull request #1984 from Krypton-Suite/1287-bug-ktoast-has-many-…
Smurf-IV Dec 28, 2024
b52b681
2010-KryptonDataGridView-editing-controls-do-not-react-to-local-palet…
giduac Dec 28, 2024
f367632
2010-KryptonDataGridView-editing-controls-do-not-react-to-local-palet…
giduac Dec 28, 2024
825b003
Merge branch 'alpha' into 2010-KryptonDataGridView-editing-controls-d…
giduac Dec 28, 2024
fda9747
Merge branch 'alpha' into 2009-alpha-KCombBox-CueHint
Smurf-IV Dec 28, 2024
b2fbce1
Merge pull request #2012 from Krypton-Suite/2009-alpha-KCombBox-CueHint
giduac Dec 28, 2024
05056ff
Merge branch 'alpha' into 2010-KryptonDataGridView-editing-controls-d…
Smurf-IV Dec 28, 2024
f282b03
Merge pull request #2013 from giduac/2010-KryptonDataGridView-editing…
Smurf-IV Dec 28, 2024
35c8fc2
2010-KryptonDataGridView-editing-controls-do-not-react-to-local-palet…
giduac Dec 28, 2024
9b21e8e
Merge branch '2010-KryptonDataGridView-editing-controls-do-not-react-…
giduac Dec 28, 2024
1092d5e
- Scale when needed
Smurf-IV Dec 28, 2024
5c82cab
Merge pull request #2015 from giduac/2010-KryptonDataGridView-editing…
PWagner1 Dec 28, 2024
e9afd10
Merge pull request #2017 from Krypton-Suite/561-alpha-KMenuItem-Images
PWagner1 Dec 28, 2024
89de1a0
Merge branch '213-bug-thememanager-needs-to-be-crossthread-aware-pt-I…
PWagner1 Dec 29, 2024
5d63d50
Merge pull request #2019 from Krypton-Suite/alpha-catchup29dec2024
PWagner1 Dec 29, 2024
adbafdc
2018-kryptonDataGridView-inspection-point-1
giduac Dec 29, 2024
3f09d00
Merge pull request #2020 from giduac/2018-V100-kryptonDataGridView-in…
PWagner1 Dec 29, 2024
656c760
2023-kryptonDataGridView-IconSpec-image-not-updated-after-change
giduac Dec 31, 2024
57e2d0e
2023-kryptonDataGridView-IconSpec-image-not-updated-after-change
giduac Dec 31, 2024
5801c2e
2023-kryptonDataGridView-IconSpec-image-not-updated-after-change
giduac Dec 31, 2024
6b60ca9
2023-kryptonDataGridView-IconSpec-image-not-updated-after-change
giduac Dec 31, 2024
3ee2c1e
2023-kryptonDataGridView-IconSpec-image-not-updated-after-change
giduac Dec 31, 2024
ae3cc69
2023-kryptonDataGridView-IconSpec-image-not-updated-after-change
giduac Dec 31, 2024
af466fc
Merge pull request #2024 from giduac/2023-kryptonDataGridView-IconSpe…
Smurf-IV Dec 31, 2024
2a151b3
Merge pull request #2028 from Krypton-Suite/alpha
PWagner1 Dec 31, 2024
65b0412
* Addressed feedback
PWagner1 Dec 31, 2024
0b55d86
* KManager
PWagner1 Dec 31, 2024
8acca22
* Fix exception dialog sizing
PWagner1 Dec 31, 2024
6a35604
Merge pull request #1985 from Krypton-Suite/213-bug-thememanager-need…
Smurf-IV Jan 1, 2025
4e6dac5
* #2021 - Conversion from XML -> JSON using native APIs
PWagner1 Jan 1, 2025
9351e20
* Fix WFO1000
PWagner1 Jan 1, 2025
89346da
* Simplify `EscapeJsonString`
PWagner1 Jan 1, 2025
8f5fdc4
* Documentation
PWagner1 Jan 1, 2025
37f82fa
Merge pull request #2029 from Krypton-Suite/2021-feature-request-impl…
Smurf-IV Jan 2, 2025
1bdef14
2027-OutlookGrid-back-to-Extended-ToolKit
giduac Jan 3, 2025
90fc274
2027-OutlookGrid-back-to-Extended-ToolKit
giduac Jan 3, 2025
b6cfcc3
Merge pull request #2031 from giduac/2027-OutlookGrid-back-to-Extende…
Smurf-IV Jan 3, 2025
13da8d3
2023-kryptonDataGridView-IconSpec-image-not-updated-after-change
giduac Jan 5, 2025
528cc0c
Merge pull request #2032 from giduac/2023-kryptonDataGridView-IconSpe…
PWagner1 Jan 5, 2025
c67cf3a
2035-V100-KryptonDataGridView-ColumnDesigners-are-incomplete-or-missing
giduac Jan 6, 2025
417a65a
Merge pull request #2036 from giduac/2035-V100-KryptonDataGridView-Co…
Smurf-IV Jan 6, 2025
a4ccef9
2037-KryptonDataGridView-Sync-V85-and-V95-with-V100
giduac Jan 6, 2025
ddfa354
Merge pull request #2038 from giduac/2037-KryptonDataGridView-Sync-V8…
Smurf-IV Jan 6, 2025
6291cad
2037-V100-KryptonDataGridView-Sync-V85-and-V95-with-V100
giduac Jan 8, 2025
cbd8657
Merge pull request #2043 from giduac/2037-V100-KryptonDataGridView-Sy…
PWagner1 Jan 8, 2025
e10f24a
2047-MDI-children-do-respond-to-LayoutMdi-calls
giduac Jan 11, 2025
190a35c
Merge pull request #2050 from giduac/2047-V100-MDI-children-do-not-re…
PWagner1 Jan 11, 2025
dea8c8b
- Make sure designer works for KRTB
Smurf-IV Jan 12, 2025
5220e36
Merge pull request #2055 from Krypton-Suite/2053-alpha-KRichTextBox-D…
giduac Jan 12, 2025
243cd48
1623-establish-a-single-point-where-a-KryptonCustomPalette-is-assigned
giduac Jan 18, 2025
360eb1d
1623-establish-a-single-point-where-a-KryptonCustomPalette-is-assigned
giduac Jan 18, 2025
a3e45b7
Merge pull request #2089 from giduac/1623-establish-a-single-point-wh…
Smurf-IV Jan 18, 2025
416d1dc
1623-establish-a-single-point-where-a-KryptonCustomPalette-is-assigned
giduac Jan 18, 2025
6252d7f
1623-establish-a-single-point-where-a-KryptonCustomPalette-is-assigned
giduac Jan 18, 2025
f15b55d
1623-establish-a-single-point-where-a-KryptonCustomPalette-is-assigned
giduac Jan 18, 2025
bfc9efc
Delete Source/Krypton Components/TestForm/ThemeTest.Designer.cs
giduac Jan 18, 2025
6071c00
Delete Source/Krypton Components/TestForm/ThemeTest.resx
giduac Jan 18, 2025
35a59bd
* Removal of some obsolete code
PWagner1 Jan 18, 2025
b4e3046
Update XmlHelper.cs
PWagner1 Jan 18, 2025
4c25b4e
Update VisualForm.cs
PWagner1 Jan 18, 2025
3f743f0
Merge pull request #2091 from Krypton-Suite/alpha-obsolete-removal-pt-I
giduac Jan 18, 2025
118c33d
Merge pull request #2090 from giduac/1623-establish-a-single-point-wh…
giduac Jan 19, 2025
8fbae18
2022-remove-obsolete-method-SetTheme-from-ThemeManager
giduac Jan 19, 2025
6b4798b
Merge pull request #2092 from giduac/2022-remove-obsolete-method-SetT…
PWagner1 Jan 19, 2025
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
35 changes: 34 additions & 1 deletion Documents/Changelog/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@
=======

## 2025-11-xx - Build 2511 - November 2025
* Obsolete [#2022](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2022), Remove obsolete method `ThemeManager.SetTheme()`. Use `ThemeManager.ApplyTheme(...)` instead.
* Implemented [#1623](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1623), Settings custom themes only available through ThemeManager from V110 onward. Adds Obsolete warnings so the move can be prepared from V100.
* Resolved [#2053](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2053), `KryptonRichTextBox` Designer Issues
* Resolved [#2047](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2047), `KryptonForm` based MDI child windows do not respond to LayoutMDI calls
* Resolved [#2037](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2037), `KryptonDataGridView` Several bug fixes and improvements to the `KryptonDataGridView` and its components have been made. See this ticket for a complete overview.
* Reverted [#2027](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2027), Reverting `KryptonOutlookGrid` back to Extended Toolkit for another inspection.
* Resolved [#2023](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2023), `KryptonDataGridView` IconSpecs do not get a repaint when changed at run-time.
* Resolved [#2018](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2018), Corrects `KryptonDataGridView` palette switching difficulties.
* Resolved [#561](https://github.com/Krypton-Suite/Standard-Toolkit/issues/561), MenuItem images are not scaled with dpi Awareness
* Resolved [#2010](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2010), `KryptonDataGridView` columns with editing controls do not react to local palette changes.
* Resolved [#2009](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2009), `KryptonCombBox` does not display the `CueHint`
* Resolved [#1287](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1287), `KryptonToast` has "Many" Issues
- Text areas now have padding
- Content area has been replaced with a `KryptonRichTextBox`
* Resolved [#1784](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1784), `KryptonDataGridView` Auto generation of columns is not serialized correctly.
* Resolved [#1977](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1977), When a control is set to anchor to the bottom, the control can be stretched beyond the form bottom.
* Resolved [#1964](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1964), `KryptonTreeView` Node crosses are not Dpi Scaled
* Implemented [#1968](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1968), Open up 'ExceptionHandler' for public use
- To invoke, use `KryptonExceptionHandler`
* Resolved [#560](https://github.com/Krypton-Suite/Standard-Toolkit/issues/560), CheckBox Images are not scaled with dpi Awareness
* Resolved [#565](https://github.com/Krypton-Suite/Standard-Toolkit/issues/565), GroupBox icons are not scaled for dpi awareness
* Resolved [#559](https://github.com/Krypton-Suite/Standard-Toolkit/issues/559), Header group icon is not scaled for dpi awareness
* Resolved [#1946](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1946), ButtonSpecs do not scale anymore!
* Resolved [#1940](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1940), In V95 KContextMenuItem no longer stores the Text value in the designer !!
* Resolved [#1938](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1938), `KryptonTextBox` CueHint Text
Expand All @@ -16,7 +38,7 @@
* Resolved [#980](https://github.com/Krypton-Suite/Standard-Toolkit/issues/980), `KryptonDockableNavigator` with pages without `AllowConfigSave` flag are incorrectly saved
* Resolved [#1909](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1909), `KryptonDataGridViewComboBoxCell` displays an empty drop-down list on the first new row.
* Resolved [#1910](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1910), `Workspace Persistence` -> "Save to array" Causes an exception in `Toolkit.XmlHelper.Image.Save`
* Implemented [#1177](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1177), Is it possible to have the KForm back colour as the KPanel colour
* Implemented [#1117](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1117), Is it possible to have the KForm back colour as the KPanel colour
* Resolved [#1900](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1900), Remove Obsolete `KryptonMessageBoxDep` from V100 code base
* Resolved [#1211](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1211), Button 'drop down' arrows should use palette text colour
* Resolved [#1212](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1212), **[Breaking Change]** `KColorButton` 'drop-down' arrow should be drawn
Expand All @@ -38,6 +60,12 @@
=======

## 2025-02-01 - Build 2502 (Version 95 - Patch 1) - February 2025
* Resolved [#561](https://github.com/Krypton-Suite/Standard-Toolkit/issues/561), MenuItem images are not scaled with dpi Awareness
* Resolved [#2009](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2009), `KryptonCombBox` does not display the `CueHint`
* Resolved [#1964](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1964), `KryptonTreeView` Node crosses are not Dpi Scaled
* Resolved [#560](https://github.com/Krypton-Suite/Standard-Toolkit/issues/560), CheckBox Images are not scaled with dpi Awareness
* Resolved [#565](https://github.com/Krypton-Suite/Standard-Toolkit/issues/565), GroupBox icons are not scaled for dpi awareness
* Resolved [#559](https://github.com/Krypton-Suite/Standard-Toolkit/issues/559), Header group icon is not scaled for dpi awareness
* Resolved [#1946](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1946), ButtonSpecs do not scale anymore!
* Resolved [#1940](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1940), In V95 KContextMenuItem no longer stores the Text value in the designer !!
* Resolved [#1938](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1938), `KryptonTextBox` CueHint Text
Expand Down Expand Up @@ -221,6 +249,11 @@
=======

# 2025-02-01 - Build 2502 (Patch 5) - February 2025
* Resolved [#561](https://github.com/Krypton-Suite/Standard-Toolkit/issues/561), MenuItem images are not scaled with dpi Awareness
* Resolved [#1964](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1964), `KryptonTreeView` Node crosses are not Dpi Scaled
* Resolved [#560](https://github.com/Krypton-Suite/Standard-Toolkit/issues/560), CheckBox Images are not scaled with dpi Awareness
* Resolved [#565](https://github.com/Krypton-Suite/Standard-Toolkit/issues/565), GroupBox icons are not scaled for dpi awareness
* Resolved [#559](https://github.com/Krypton-Suite/Standard-Toolkit/issues/559), Header group icon is not scaled for dpi awareness
* Resolved [#1946](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1946), ButtonSpecs do not scale anymore!
* Resolved [#1905](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1905), `Sparkle` Themes have an issue with the Background
* Resolved [#980](https://github.com/Krypton-Suite/Standard-Toolkit/issues/980), `KryptonDockableNavigator` with pages without `AllowConfigSave` flag are incorrectly saved
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,21 @@ public abstract class HeaderGroupMappingBase : HeaderValuesBase
#endregion

#region Identity

/// <summary>
/// Initialize a new instance of the HeaderGroupMappingBase class.
/// </summary>
/// <param name="navigator">Reference to owning navigator instance.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
/// <param name="getDpiFactor"></param>
protected HeaderGroupMappingBase([DisallowNull] KryptonNavigator navigator,
NeedPaintHandler needPaint)
: base(needPaint)
NeedPaintHandler needPaint, GetDpiFactor getDpiFactor)
: base(needPaint, getDpiFactor)
{
Debug.Assert(navigator is not null);

if (navigator is null)
{
throw new ArgumentNullException(nameof(navigator));
}

// Remember back reference to owning control
_navigator = navigator;
_navigator = navigator ?? throw new ArgumentNullException(nameof(navigator));

// Set initial values to the default
_mapImage = GetMapImageDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ public class HeaderGroupMappingPrimary : HeaderGroupMappingBase
#endregion

#region Identity

/// <summary>
/// Initialize a new instance of the HeaderGroupMappingPrimary class.
/// </summary>
/// <param name="navigator">Reference to owning navigator instance.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
/// <param name="getDpiFactor"></param>
public HeaderGroupMappingPrimary(KryptonNavigator navigator,
NeedPaintHandler needPaint)
: base(navigator, needPaint)
NeedPaintHandler needPaint,
GetDpiFactor getDpiFactor)
: base(navigator, needPaint, getDpiFactor)
{
}
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ public class HeaderGroupMappingSecondary : HeaderGroupMappingBase
#endregion

#region Identity

/// <summary>
/// Initialize a new instance of the HeaderGroupMappingSecondary class.
/// </summary>
/// <param name="navigator">Reference to owning navigator instance.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
/// <param name="getDpiFactor"></param>
public HeaderGroupMappingSecondary(KryptonNavigator navigator,
NeedPaintHandler needPaint)
: base(navigator, needPaint)
NeedPaintHandler needPaint,
GetDpiFactor getDpiFactor)
: base(navigator, needPaint, getDpiFactor)
{
}
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,26 @@ public NavigatorHeader([DisallowNull] KryptonNavigator navigator,
_headerVisiblePrimary = true;
_headerVisibleSecondary = true;
_headerVisibleBar = true;
HeaderValuesPrimary = new HeaderGroupMappingPrimary(_navigator, needPaint);
HeaderValuesSecondary = new HeaderGroupMappingSecondary(_navigator, needPaint);
HeaderValuesPrimary = new HeaderGroupMappingPrimary(_navigator, needPaint, GetDpiFactor);
HeaderValuesSecondary = new HeaderGroupMappingSecondary(_navigator, needPaint, GetDpiFactor);
}
#endregion

#region IsDefault
/// <summary>
/// Gets a value indicating if all values are default.
/// </summary>
[Browsable(false)]
private float GetDpiFactor()
{
#if NET462
return PI.GetDpiForWindow(_navigator.Handle) / 96F;
#else
return _navigator.DeviceDpi / 96F;
#endif
}

#endregion

#region IsDefault
/// <summary>
/// Gets a value indicating if all values are default.
/// </summary>
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public override bool IsDefault => ((HeaderStylePrimary == HeaderStyle.Primary) &&
(HeaderStyleSecondary == HeaderStyle.Secondary) &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ public KeyTipControl(KryptonRibbon ribbon,
TransparencyKey = GlobalStaticValues.TRANSPARENCY_KEY_COLOR;
StateCommon!.Border.DrawBorders = PaletteDrawBorders.None;
StateCommon!.Border.Width = 0;
#pragma warning disable CS0618 // Type or member is obsolete
UseDropShadow = false;
#pragma warning restore CS0618 // Type or member is obsolete

// Disabled key tips are show semi-transparent
if (_showDisabled)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,18 @@ public abstract class KryptonRibbonGroupItem : Component,
/// </summary>
protected KryptonRibbonGroupItem() =>
// Do the Tooltip Magic
_toolTipValues = new ToolTipValues(null/*NeedPaintDelegate*/); // Must be replaced by appropriate call
_toolTipValues = new ToolTipValues(null/*NeedPaintDelegate*/, GetDpiFactor); // Must be replaced by appropriate call

private float GetDpiFactor()
{
return (Ribbon != null)
#if NET462
? PI.GetDpiForWindow(Ribbon.Handle) / 96F
#else
? Ribbon.DeviceDpi / 96F
#endif
: 1.0f;
}

#endregion Identity

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public KryptonRibbonGroupThemeComboBox()
[Description(@"The custom assigned palette mode.")]
[DefaultValue(null)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[Obsolete("Deprecated and will be removed in V110. Set a global custom palette through 'ThemeManager.ApplyTheme(...)'.")]
public KryptonCustomPaletteBase? KryptonCustomPalette
{
get => _kryptonCustomPalette;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public override void RenderBefore([DisallowNull] RenderContext context)
{
// We always draw the image a 24x24 image (if dpi = 1!)
localImage = CommonHelper.ScaleImageForSizedDisplay(localImage, localImage.Width * FactorDpiX,
localImage.Height * FactorDpiY);
localImage.Height * FactorDpiY, false);

if (localImage != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ private void OnClick(object? sender, MouseEventArgs e)
}
*/

_cachedImage = CommonHelper.ScaleImageForSizedDisplay(sourceImage, currentWidth, currentHeight);
_cachedImage = CommonHelper.ScaleImageForSizedDisplay(sourceImage, currentWidth, currentHeight, false);
}

return _cachedImage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,23 @@ private void CreateViewElements(PaletteRedirect redirect)
NeedPaintDelegate);

// Create the manager for handling tooltips
ToolTipManager = new ToolTipManager(new ToolTipValues(null)); // use default, as each button "could" have different values ??!!??
ToolTipManager = new ToolTipManager(new ToolTipValues(null, GetDpiFactor)); // use default, as each button "could" have different values ??!!??
ToolTipManager.ShowToolTip += OnShowToolTip;
ToolTipManager.CancelToolTip += OnCancelToolTip;
ButtonSpecManager.ToolTipManager = ToolTipManager;
}

private float GetDpiFactor()
{
return (_visualPopupToolTip != null)
#if NET462
? PI.GetDpiForWindow(_visualPopupToolTip.Handle) / 96F
#else
? _visualPopupToolTip.DeviceDpi / 96F
#endif
: 1F;
}

private void SetupParentMonitoring()
{
// We have to know when the parent of the ribbon changes, so we can then hook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,10 @@ protected virtual void OnFinishDelegate(object? sender, EventArgs? e) =>
// Get value from button spec passing inheritance redirector
Image? baseImage = ButtonSpec.GetImage(_redirector, state);

float dpiFactor = _controller?.Target.FactorDpiX ?? 1f;
return (baseImage != null)
? CommonHelper.ScaleImageForSizedDisplay(baseImage, baseImage.Width * _controller!.Target.FactorDpiX,
baseImage.Height * _controller!.Target.FactorDpiY)
? CommonHelper.ScaleImageForSizedDisplay(baseImage, baseImage.Width * dpiFactor,
baseImage.Height * dpiFactor, true)
: null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ public string Text
[KryptonPersist]
[Category(@"Appearance")]
[Description(@"Check box extra text.")]
[DefaultValue(null)]
[Localizable(true)]
[AllowNull]
public string ExtraText
Expand All @@ -223,6 +222,8 @@ public string ExtraText
}
}

private bool ShouldSerializeExtraText() => !string.IsNullOrEmpty(_extraText);

/// <summary>
/// Gets and sets the check box image.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public void SetCustomColors(Color[]?[]? colors)
// Each element must contain a valid reference
if (colors[i] == null)
{
throw new ArgumentOutOfRangeException(nameof(colors), "Child array cannot be null.");
throw new ArgumentOutOfRangeException(nameof(colors), @"Child array cannot be null.");
}
else
{
Expand All @@ -331,7 +331,7 @@ public void SetCustomColors(Color[]?[]? colors)
// All other child arrays must be the same length
if (colors[i]!.Length != rows)
{
throw new ArgumentOutOfRangeException(nameof(colors), "Each child color array must be the same length.");
throw new ArgumentOutOfRangeException(nameof(colors), @"Each child color array must be the same length.");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ public string Text
[Description(@"Heading menu item extra text.")]
[Editor(typeof(MultilineStringEditor), typeof(UITypeEditor))]
[Localizable(true)]
[DefaultValue("")]
[AllowNull]
public string ExtraText
{
Expand All @@ -180,6 +179,7 @@ public string ExtraText
}
}
}
private bool ShouldSerializeExtraText() => !string.IsNullOrEmpty(_extraText);

/// <summary>
/// Gets and sets the heading menu item image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ public string Text
[Category(@"Appearance")]
[Description(@"Standard menu item extra text.")]
[Editor(typeof(MultilineStringEditor), typeof(UITypeEditor))]
[DefaultValue(@"")]
[Localizable(true)]
[Bindable(true)]
public string ExtraText
Expand All @@ -269,6 +268,7 @@ public string ExtraText
}
}
}
private bool ShouldSerializeExtraText() => !string.IsNullOrEmpty(_extraText);

/// <summary>
/// Gets and sets the standard menu item image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public abstract class KryptonContextMenuItemBase : Component, INotifyPropertyCha
#region Instance Fields

private bool _visible;
private ToolTipValues _toolTipValues = new(null);
private ToolTipValues _toolTipValues;
private VisualPopupToolTip? _visualPopupToolTip;
private IContextMenuProvider? _provider;
#endregion
Expand Down Expand Up @@ -49,11 +49,23 @@ public abstract class KryptonContextMenuItemBase : Component, INotifyPropertyCha
protected KryptonContextMenuItemBase()
{
_visible = true;
_toolTipValues = new ToolTipValues(null, GetDpiFactor);
ToolTipManager = new ToolTipManager(_toolTipValues);
ToolTipManager.ShowToolTip += OnShowToolTip;
ToolTipManager.CancelToolTip += OnCancelToolTip;
}

private float GetDpiFactor()
{
return (_visualPopupToolTip != null)
#if NET462
? PI.GetDpiForWindow(_visualPopupToolTip.Handle) / 96F
#else
? _visualPopupToolTip.DeviceDpi / 96F
#endif
: 1F;
}

#endregion

#region Public
Expand Down
Loading