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
3 changes: 2 additions & 1 deletion Documents/Changelog/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@

## 2026-04-20 - Build 2604 (Version 105-LTS - Patch 2) - April 2026

* Resolved [#3164](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3164), Toolkit: Font property values are being serialized depending of the current culture in exported XML theme file
* Resolved [#3013](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3013), Maximized form's size exceeds the screen's working area
* Implemented [#3173](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3173), Use pattern matching
* Implemented [#3173](https://github.com/Krypton-Suite/Standad-Toolkit/issues/3173), Use pattern matching
* Resolved [#3201](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3201), Resolves potential memory leaks in `KryptonDataGridViewRatingColumn`
* Resolved [#3163](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3163), Form Icon Misplaced in Contextual Tabs
* Implemented [#3113](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3113), TextBox item for KryptonContextMenu-Items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3595,12 +3595,26 @@ private void ExportObjectToElement(XmlDocument doc,
}
else
{
// We need the type converter to create a string representation
var converter = TypeDescriptor.GetConverter(prop.PropertyType);

// Save to an invariant string so that load is not affected by culture
childElement.SetAttribute(@"Value", converter.ConvertToInvariantString(childObj!));
}
// We need the type converter to create a string representation
var cultureInfo = new CultureInfo("en-US");

// We need the type converter to create a string representation
var converter = TypeDescriptor.GetConverter(prop.PropertyType);

// Fix [3164]: "Font property values are not serialized correctly in the exported XML file."
// Force serialization using the en-US culture to prevent localization issues.
string? stringValue = string.Empty;

if (null != childObj)
{
stringValue = converter.ConvertTo(context: null,
culture: cultureInfo,
value: childObj!,
destinationType: typeof(string)) as string;
}

childElement.SetAttribute(@"Value", stringValue ?? string.Empty);
}
}
}
}
Expand Down

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

Loading