Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions Documents/Changelog/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

## 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
* Implemented [#3113](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3113), TextBox item for KryptonContextMenu-Items
* Resolved [#3124](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3124), Docking: Loading configuration while form is hidden remover splitter
* Resolved [#3123](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3123), `KryptonComboBox` DropDownWidth doesn't resize with the control
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