From 927995c86af1735b877b07f18b0bebbe2d270e2c Mon Sep 17 00:00:00 2001 From: "EU\\amosekr" Date: Fri, 28 Nov 2025 11:29:53 +0530 Subject: [PATCH] Memory leakage on modus controls #452 --- .../Controls/Button/TMButton.xaml | 10 +--------- .../Controls/DropDown/TMDropDown.xaml | 5 ----- .../Controls/DropDown/TMDropDown.xaml.cs | 10 ---------- .../Controls/Label/ControlLabel.xaml | 6 ------ .../Controls/TMInput/BaseInput.xaml | 3 --- .../Controls/TMInput/TMInput.xaml | 5 ----- Trimble.Modus.Components/Helpers/ThemeManager.cs | 3 ++- .../Styles/ConvertersDictionary.xaml | 12 ++++++++++++ .../Styles/ConvertersDictionary.xaml.cs | 9 +++++++++ .../Trimble.Modus.Components.csproj | 5 ++++- 10 files changed, 28 insertions(+), 40 deletions(-) create mode 100644 Trimble.Modus.Components/Styles/ConvertersDictionary.xaml create mode 100644 Trimble.Modus.Components/Styles/ConvertersDictionary.xaml.cs diff --git a/Trimble.Modus.Components/Controls/Button/TMButton.xaml b/Trimble.Modus.Components/Controls/Button/TMButton.xaml index 30bb7954..269ed04e 100644 --- a/Trimble.Modus.Components/Controls/Button/TMButton.xaml +++ b/Trimble.Modus.Components/Controls/Button/TMButton.xaml @@ -7,15 +7,7 @@ xmlns:constants="clr-namespace:Trimble.Modus.Components.Constant" xmlns:converters="clr-namespace:Trimble.Modus.Components.Converters" HorizontalOptions="Start"> - - - - - - - + - - - - - - - - - - - - - - - - - - - + + + + + + + diff --git a/Trimble.Modus.Components/Styles/ConvertersDictionary.xaml.cs b/Trimble.Modus.Components/Styles/ConvertersDictionary.xaml.cs new file mode 100644 index 00000000..6404df7e --- /dev/null +++ b/Trimble.Modus.Components/Styles/ConvertersDictionary.xaml.cs @@ -0,0 +1,9 @@ +namespace Trimble.Modus.Components.Styles; + +public partial class ConvertersDictionary : ResourceDictionary +{ + public ConvertersDictionary() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/Trimble.Modus.Components/Trimble.Modus.Components.csproj b/Trimble.Modus.Components/Trimble.Modus.Components.csproj index 9e79facc..6c88cb61 100644 --- a/Trimble.Modus.Components/Trimble.Modus.Components.csproj +++ b/Trimble.Modus.Components/Trimble.Modus.Components.csproj @@ -27,7 +27,7 @@ True Trimble.Modus.Components Trimble Modus - 1.4.0.1 + 1.4.0.2 Trimble Inc Trimble Inc Trimble.Modus.Components @@ -202,6 +202,9 @@ + + MSBuild:Compile + MSBuild:Compile