I have isolated the issue to be related to the ColorPicker only as when I commented out the XAML for it, it was no longer a problem.
I use the ColorPicker in a dialog window which is shown. Everything works fine without the ColorPicker.
System specs of user:
CPU - Intel Core i3-2310M @ 2.10GHz
RAM - 2.00 GB
Type - 64-bit
OS - Windows 7 SP1
Running .NET Framework 4.5
My application is compiled with .NET Framework 4.5 however I am using 4.5.1, unlikely to be the problem.
Comments: ** Comment from web user: JLT93 **
Well there really isn't that much to it. If I comment out the call to xctk:ColorPicker then the window loads fine for them.
<Window x:Class="MyApp.Settings"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="Settings" Height="300" Width="300" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" WindowStyle="ThreeDBorderWindow">
<Grid Margin="5">
<DockPanel LastChildFill="True">
<Grid DockPanel.Dock="Bottom">
<Button Content="Cancel" HorizontalAlignment="Left" Width="75" IsCancel="True"/>
<Button Content="Save" HorizontalAlignment="Right" Width="75" IsDefault="True" Click="Button_Click"/>
</Grid>
<Grid>
<GroupBox Header="Settings" Margin="0,0,0,5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label FontWeight="Bold" Grid.Row="0">Username color</Label>
<TextBlock Grid.Row="1" TextWrapping="WrapWithOverflow">This will allow you to change what color your username is when displayed to yourself and other users.</TextBlock>
<xctk:ColorPicker Grid.Row="2" DisplayColorAndName="True" ShowStandardColors="False" UsingAlphaChannel="False" Name="colorPicker" x:FieldModifier="public"></xctk:ColorPicker>
</Grid>
</GroupBox>
</Grid>
</DockPanel>
</Grid>
</Window>
The C# I use to display the window is the same as follows:
Settings window = new Settings(this.chatSettings) {
Owner = this
};
Nullable<bool> dialogResult = window.ShowDialog();
However I wouldn't believe that to be an issue. To me it looks like their system specs cannot handle the size of the colorpicker. Even I have some troubles but only when opening the colorpicker, it will be a little slow for a couple of seconds but then it's normal.