WPF Toolkit and Theme Error

Jan 29, 2010 at 9: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. 


Mar 2, 2010 at 6:32 AM

I have the same problem with DatePicker.

Mar 2, 2010 at 12:09 PM

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 12:28 PM

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"
Title="Window1" Height="300" Width="300">
<Style x:Key="s1" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="10"></Setter>
<TextBlock Text="adfasdf" Style="{StaticResource s1}"></TextBlock>
Mar 2, 2010 at 12:49 PM

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



Mar 2, 2010 at 1: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.