Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: ColorPicker crashes application [20637]

$
0
0
Hello, this problem does not happen to me however I let someone else use my application for testing purposes and whenever he opens up a window containing the ColorPicker, the application would stop responding.

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.


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>