diff --git a/WpfDesign.Designer/Project/Controls/ColorPicker.xaml.cs b/WpfDesign.Designer/Project/Controls/ColorPicker.xaml.cs
index 4390e48..0f3bd7a 100644
--- a/WpfDesign.Designer/Project/Controls/ColorPicker.xaml.cs
+++ b/WpfDesign.Designer/Project/Controls/ColorPicker.xaml.cs
@@ -16,6 +16,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
+using ICSharpCode.WpfDesign.Designer.themes;
+using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
@@ -28,7 +30,22 @@ public partial class ColorPicker
{
public ColorPicker()
{
- InitializeComponent();
+ SpecialInitializeComponent();
+ }
+
+ ///
+ /// Fixes InitializeComponent with multiple Versions of same Assembly loaded
+ ///
+ public void SpecialInitializeComponent()
+ {
+ if (!this._contentLoaded)
+ {
+ this._contentLoaded = true;
+ Uri resourceLocator = new Uri(VersionedAssemblyResourceDictionary.GetXamlNameForType(this.GetType()), UriKind.Relative);
+ Application.LoadComponent(this, resourceLocator);
+ }
+
+ this.InitializeComponent();
}
public static readonly DependencyProperty ColorProperty =
diff --git a/WpfDesign.Designer/Tests/WpfDesign.Tests.csproj b/WpfDesign.Designer/Tests/WpfDesign.Tests.csproj
index 09295e9..bfacce3 100644
--- a/WpfDesign.Designer/Tests/WpfDesign.Tests.csproj
+++ b/WpfDesign.Designer/Tests/WpfDesign.Tests.csproj
@@ -7,8 +7,8 @@
ICSharpCode.WpfDesign.Tests
-
-
+
+