WPF Toolkit and Theme Error

Jan 29, 2010 at 8:33 PM

I have a WPF app running on several machines.  All Windows XP with Service Pack 3, .NET 3.5, etc.....  There are a few machines where the app will lock up while running and I"m not sure why.  It will not show an error as I have all code wrapped in try/catch.  The app just freezes and must do CTRL/ALT/DELETE to close it out.  I looked over the display settings and appear consistent with the machines that are working.

This app has the latest WPF Toolkit bits and uses a theme and datepicker control.  It appears when I run the app, it will lock up in certain areas of the app.  It will crash when making a button visible and another when selecting the datepicker to show the date.

I can not narrow it down if it is an error with the toolkit control and/or themes.  Just wanting to know if anybody else has seen this issue. 

TIA.

Mar 2, 2010 at 5:32 AM

I have the same problem with DatePicker.

Mar 2, 2010 at 11:09 AM

Yeah, the 3 original controls in the toolkit are not supported either.  e.g. DataGrid, Calendar, DatePicker.  Hopefully they will add theme support soon after VS2010 and .NET4 RTM.

Mar 2, 2010 at 11:28 AM

My issue is actually not with the DatePicker but rather a FontSize in a referenced style, as odd as that sounds.

Try create an app with the following code and see if yours hangs, I will be very interested to see if you have the same very rare problem as I do.

 

<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Window.Resources>
<ResourceDictionary>
   
<Style x:Key="s1" TargetType="{x:Type TextBlock}">
       
<Setter Property="FontSize" Value="10"></Setter>
   
</Style>
</ResourceDictionary>
</Window.Resources>
<Grid>
   
<TextBlock Text="adfasdf" Style="{StaticResource s1}"></TextBlock>
</Grid>
</Window>
Mar 2, 2010 at 11:49 AM

See if this won't solve your issue...

 

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/7cc032c1-5f4d-4518-adc6-f53afd051e6b

Mar 2, 2010 at 12:11 PM

My bad.  I thought your earlier post regarding DatePicker was for another thread I started ( WPF Toolkit controls does not support themes.  similar to new Accordion, etc. ).

I did get this issue worked out by uninstalling/reinstalling the .NET Frameworks ( 2 and 3.5 ) that was on the machines locking up.

Everything is good now.  Thanks.