none
Error with DataGridColumnHeader - Preview Pane Blank

    Question

  • I'm having an annoying issue.

    I created a DataGridColumnHeader style and put it in my App.xaml file.  I use that style in my Page.xaml file. When I do that, I get this error in my error window:

    Invalid attribute value dataprimitives:DataGridColumnHeader for property TargetType.

    Also, my preview pane in the Visual Studio does not work - it is just blank and doesn't show my Page.xaml preview.  But here's something interesting: Even though this error shows up in my errors window, I am able to build the project successfully and use the application.

    I'm sure the obvious suggestion is that I need to add the "dataprimitives" reference to my .xaml files.  But that reference is already there in both my App.xaml and my Page.xaml file.  (And that is why I am able to build the project)

     So, how do I get rid of the error and get my preview pane back?

    Thanks,

     Reese

    Wednesday, December 10, 2008 12:20 PM

Answers

  • Hi Reese,

    (Before I get to the main question, let me ask this: How do you paste your code into this board so that it is so nicely formatted?)
     

    I suspect that you were pasting the code directly.  For a better practice,  please click the last tag on the Tool bar, which is just above your editor.   It will pop up a window to allow you paste your code.  Please do not forget to choose your code type.

    I have pasted your code to my sample.  You style file is ok.  Below is the working sample 

    <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:dataprimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data"           
                 xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    
                 x:Class="DataGridSolution.App"
                 >
        <Application.Resources>
    <Style x:Key="myColumnHeaderStyle" TargetType="dataprimitives:DataGridColumnHeader">
    <Setter Property="Foreground" Value="#FF444444" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="FontSize" Value="10.5" />
    <Setter Property="FontWeight" Value="Bold" />
    <Setter Property="IsTabStop" Value="False" />
    <Setter Property="SeparatorBrush" Value="#FFDFE3E6" />
    <Setter Property="Padding" Value="4,4,5,4" />
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="dataprimitives:DataGridColumnHeader">
    <Grid Name="Root">
    <vsm:VisualStateManager.VisualStateGroups>
    <vsm:VisualStateGroup x:Name="CommonStates">
    <vsm:VisualStateGroup.Transitions>
    <vsm:VisualTransition GeneratedDuration="00:00:0.1" />
    </vsm:VisualStateGroup.Transitions>
    <vsm:VisualState x:Name="Normal" />
    <vsm:VisualState x:Name="MouseOver">
    <Storyboard>
    <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundRectangle" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
    <SplineColorKeyFrame KeyTime="0" Value="#FF448DCA"/>
    </ColorAnimationUsingKeyFrames>
    <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
    <SplineColorKeyFrame KeyTime="0" Value="#7FFFFFFF"/>
    </ColorAnimationUsingKeyFrames>
    <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
    <SplineColorKeyFrame KeyTime="0" Value="#CCFFFFFF"/>
    </ColorAnimationUsingKeyFrames>
    <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
    <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
    </ColorAnimationUsingKeyFrames>
    </Storyboard>
    </vsm:VisualState>
    </vsm:VisualStateGroup>
    <vsm:VisualStateGroup x:Name="SortStates">
    <vsm:VisualStateGroup.Transitions>
    <vsm:VisualTransition GeneratedDuration="00:00:0.1" />
    </vsm:VisualStateGroup.Transitions>
    <vsm:VisualState x:Name="Unsorted" />
    <vsm:VisualState x:Name="SortAscending">
    <Storyboard>
    <DoubleAnimation Storyboard.TargetName="SortIcon" Storyboard.TargetProperty="Opacity" Duration="0" To="1.0"/>
    </Storyboard>
    </vsm:VisualState>
    <vsm:VisualState x:Name="SortDescending">
    <Storyboard>
    <DoubleAnimation Storyboard.TargetName="SortIcon" Storyboard.TargetProperty="Opacity" Duration="0" To="1.0"/>
    <DoubleAnimation Storyboard.TargetName="SortIconTransform" Storyboard.TargetProperty="ScaleY" Duration="0" To="-.9"/>
    </Storyboard>
    </vsm:VisualState>
    </vsm:VisualStateGroup>
    </vsm:VisualStateManager.VisualStateGroups>

    <Grid.RowDefinitions>
    <RowDefinition Height="*" />
    <RowDefinition Height="*" />
    <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="Auto" />
    </Grid.ColumnDefinitions>

    <Rectangle x:Name="BackgroundRectangle" Stretch="Fill" Fill="#FF1F3B53" Grid.ColumnSpan="2" Grid.RowSpan="2"/>

    <Rectangle x:Name="BackgroundGradient" Stretch="Fill" Grid.ColumnSpan="2" Grid.RowSpan="2">
    <Rectangle.Fill>
    <LinearGradientBrush StartPoint=".7,0" EndPoint=".7,1">
    <GradientStop Color="#FFFFFFFF" Offset="0.015" />
    <GradientStop Color="#F9FFFFFF" Offset="0.375" />
    <GradientStop Color="#E5FFFFFF" Offset="0.6" />
    <GradientStop Color="#C6FFFFFF" Offset="1" />
    </LinearGradientBrush>
    </Rectangle.Fill>
    </Rectangle>

    <ContentPresenter Width="{TemplateBinding Width}" >
    <TextBlock Width="75" Text="{TemplateBinding Content}" TextWrapping="Wrap" TextAlignment="Center"/>
    </ContentPresenter>

    <Rectangle Name="VerticalSeparator" Grid.RowSpan="2" Grid.Column="2" Width="1" VerticalAlignment="Stretch" Fill="{TemplateBinding SeparatorBrush}" Visibility="{TemplateBinding SeparatorVisibility}" />

    <Path Grid.RowSpan="2" Name="SortIcon" RenderTransformOrigin=".5,.5" HorizontalAlignment="Left" VerticalAlignment="Center" Opacity="0" Grid.Column="1" Stretch="Uniform" Width="8" Data="F1 M -5.215,6.099L 5.215,6.099L 0,0L -5.215,6.099 Z ">
    <Path.Fill>
    <SolidColorBrush Color="#FF444444" />
    </Path.Fill>
    <Path.RenderTransform>
    <TransformGroup>
    <ScaleTransform x:Name="SortIconTransform" ScaleX=".9" ScaleY=".9" />
    </TransformGroup>
    </Path.RenderTransform>
    </Path>

    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </Application.Resources>
    </Application>

     <data:DataGridTextColumn x:Name="age" Header="Age" Visibility="Visible" Width="150" Binding="{Binding age}" HeaderStyle="{StaticResource myColumnHeaderStyle}"></data:DataGridTextColumn>

    By the way, there is no point to readd reference to vsm and  dataprimitives on the xaml file.

    Best regards,

    Jonathan

     

     

    Monday, December 15, 2008 10:52 PM

All replies

  •  Hi Reese,

     The right one should like this.

    <data:DataGridTextColumn Binding="{Binding LastName}" Header="hello">
    <data:DataGridTextColumn.HeaderStyle>
    <Style TargetType="dataprimitives:DataGridColumnHeader">
    <Setter Property="ContentTemplate">
    <Setter.Value>
    <DataTemplate>
    <Button Content="{Binding}" />
    </DataTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </data:DataGridTextColumn.HeaderStyle>
    </data:DataGridTextColumn>
    If it doesn't help, please share a simple repro here. 
    Best regards,
    Jonathan 
     

     

     

    Monday, December 15, 2008 2:08 AM
  • Jonothan,

    Thanks for your response. 

    (Before I get to the main question, let me ask this: How do you paste your code into this board so that it is so nicely formatted?)

    From your example, it looks like you are creating a new style in the Page.xaml file.  I'm trying to create a style (resource) in the App.xaml and then apply it the Page.xaml file.  I copied the default style for ColumnHeaders into my App.xaml and then modified it to do what I wanted (which is to center and wrap the text in the header).  Here is the resource in my App.xaml:
        <Application.Resources>
            <Style x:Key="myColumnHeaderStyle" TargetType="dataprimitives:DataGridColumnHeader">
                <Setter Property="Foreground" Value="#FF444444" />
                <Setter Property="HorizontalContentAlignment" Value="Center" />
                <Setter Property="VerticalContentAlignment" Value="Center" />
                <Setter Property="FontSize" Value="10.5" />
                <Setter Property="FontWeight" Value="Bold" />
                <Setter Property="IsTabStop" Value="False" />
                <Setter Property="SeparatorBrush" Value="#FFDFE3E6" />
                <Setter Property="Padding" Value="4,4,5,4" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="dataprimitives:DataGridColumnHeader">
                            <Grid Name="Root">
                                <vsm:VisualStateManager.VisualStateGroups>
                                    <vsm:VisualStateGroup x:Name="CommonStates">
                                        <vsm:VisualStateGroup.Transitions>
                                            <vsm:VisualTransition GeneratedDuration="00:00:0.1" />
                                        </vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualState x:Name="Normal" />
                                        <vsm:VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundRectangle" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                    <SplineColorKeyFrame KeyTime="0" Value="#FF448DCA"/>
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
                                                    <SplineColorKeyFrame KeyTime="0" Value="#7FFFFFFF"/>
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                                                    <SplineColorKeyFrame KeyTime="0" Value="#CCFFFFFF"/>
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                                    <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
                                                </ColorAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </vsm:VisualState>
                                    </vsm:VisualStateGroup>
                                    <vsm:VisualStateGroup x:Name="SortStates">
                                        <vsm:VisualStateGroup.Transitions>
                                            <vsm:VisualTransition GeneratedDuration="00:00:0.1" />
                                        </vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualState x:Name="Unsorted" />
                                        <vsm:VisualState x:Name="SortAscending">
                                            <Storyboard>
                                                <DoubleAnimation Storyboard.TargetName="SortIcon" Storyboard.TargetProperty="Opacity" Duration="0" To="1.0"/>
                                            </Storyboard>
                                        </vsm:VisualState>
                                        <vsm:VisualState x:Name="SortDescending">
                                            <Storyboard>
                                                <DoubleAnimation Storyboard.TargetName="SortIcon" Storyboard.TargetProperty="Opacity" Duration="0" To="1.0"/>
                                                <DoubleAnimation Storyboard.TargetName="SortIconTransform" Storyboard.TargetProperty="ScaleY" Duration="0" To="-.9"/>
                                            </Storyboard>
                                        </vsm:VisualState>
                                    </vsm:VisualStateGroup>
                                </vsm:VisualStateManager.VisualStateGroups>
    
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
    
                                <Rectangle x:Name="BackgroundRectangle" Stretch="Fill" Fill="#FF1F3B53" Grid.ColumnSpan="2" Grid.RowSpan="2"/>
    
                                <Rectangle x:Name="BackgroundGradient" Stretch="Fill" Grid.ColumnSpan="2" Grid.RowSpan="2">
                                    <Rectangle.Fill>
                                        <LinearGradientBrush StartPoint=".7,0" EndPoint=".7,1">
                                            <GradientStop Color="#FFFFFFFF" Offset="0.015" />
                                            <GradientStop Color="#F9FFFFFF" Offset="0.375" />
                                            <GradientStop Color="#E5FFFFFF" Offset="0.6" />
                                            <GradientStop Color="#C6FFFFFF" Offset="1" />
                                        </LinearGradientBrush>
                                    </Rectangle.Fill>
                                </Rectangle>
    
                                <ContentPresenter Width="{TemplateBinding Width}" >
                                    <TextBlock
                                              Width="75"
                                              Text="{TemplateBinding Content}"
                                              TextWrapping="Wrap"
                                              TextAlignment="Center"/>
                                </ContentPresenter>
                                    
                                <Rectangle Name="VerticalSeparator" Grid.RowSpan="2" Grid.Column="2" Width="1" VerticalAlignment="Stretch" Fill="{TemplateBinding SeparatorBrush}" Visibility="{TemplateBinding SeparatorVisibility}" />
    
                                <Path Grid.RowSpan="2" Name="SortIcon" RenderTransformOrigin=".5,.5" HorizontalAlignment="Left" VerticalAlignment="Center" Opacity="0" Grid.Column="1" Stretch="Uniform" Width="8" Data="F1 M -5.215,6.099L 5.215,6.099L 0,0L -5.215,6.099 Z ">
                                    <Path.Fill>
                                        <SolidColorBrush Color="#FF444444" />
                                    </Path.Fill>
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform x:Name="SortIconTransform" ScaleX=".9" ScaleY=".9" />
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>
    
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Application.Resources>
     
    Here is one example column of how I applied the resource in my Page.xaml file:
     <data:DataGridTextColumn x:Name="Material" Header="Material" Binding="{Binding Path=ItemClass}"  HeaderStyle="{StaticResource myColumnHeaderStyle}"/>
     
    So, I'm not sure how to apply your suggestion into my solution.
    Reese
    
     
     

     

    Monday, December 15, 2008 8:25 AM
  • Hi Reese,

    (Before I get to the main question, let me ask this: How do you paste your code into this board so that it is so nicely formatted?)
     

    I suspect that you were pasting the code directly.  For a better practice,  please click the last tag on the Tool bar, which is just above your editor.   It will pop up a window to allow you paste your code.  Please do not forget to choose your code type.

    I have pasted your code to my sample.  You style file is ok.  Below is the working sample 

    <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:dataprimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data"           
                 xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    
                 x:Class="DataGridSolution.App"
                 >
        <Application.Resources>
    <Style x:Key="myColumnHeaderStyle" TargetType="dataprimitives:DataGridColumnHeader">
    <Setter Property="Foreground" Value="#FF444444" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="FontSize" Value="10.5" />
    <Setter Property="FontWeight" Value="Bold" />
    <Setter Property="IsTabStop" Value="False" />
    <Setter Property="SeparatorBrush" Value="#FFDFE3E6" />
    <Setter Property="Padding" Value="4,4,5,4" />
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="dataprimitives:DataGridColumnHeader">
    <Grid Name="Root">
    <vsm:VisualStateManager.VisualStateGroups>
    <vsm:VisualStateGroup x:Name="CommonStates">
    <vsm:VisualStateGroup.Transitions>
    <vsm:VisualTransition GeneratedDuration="00:00:0.1" />
    </vsm:VisualStateGroup.Transitions>
    <vsm:VisualState x:Name="Normal" />
    <vsm:VisualState x:Name="MouseOver">
    <Storyboard>
    <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundRectangle" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
    <SplineColorKeyFrame KeyTime="0" Value="#FF448DCA"/>
    </ColorAnimationUsingKeyFrames>
    <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
    <SplineColorKeyFrame KeyTime="0" Value="#7FFFFFFF"/>
    </ColorAnimationUsingKeyFrames>
    <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
    <SplineColorKeyFrame KeyTime="0" Value="#CCFFFFFF"/>
    </ColorAnimationUsingKeyFrames>
    <ColorAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
    <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
    </ColorAnimationUsingKeyFrames>
    </Storyboard>
    </vsm:VisualState>
    </vsm:VisualStateGroup>
    <vsm:VisualStateGroup x:Name="SortStates">
    <vsm:VisualStateGroup.Transitions>
    <vsm:VisualTransition GeneratedDuration="00:00:0.1" />
    </vsm:VisualStateGroup.Transitions>
    <vsm:VisualState x:Name="Unsorted" />
    <vsm:VisualState x:Name="SortAscending">
    <Storyboard>
    <DoubleAnimation Storyboard.TargetName="SortIcon" Storyboard.TargetProperty="Opacity" Duration="0" To="1.0"/>
    </Storyboard>
    </vsm:VisualState>
    <vsm:VisualState x:Name="SortDescending">
    <Storyboard>
    <DoubleAnimation Storyboard.TargetName="SortIcon" Storyboard.TargetProperty="Opacity" Duration="0" To="1.0"/>
    <DoubleAnimation Storyboard.TargetName="SortIconTransform" Storyboard.TargetProperty="ScaleY" Duration="0" To="-.9"/>
    </Storyboard>
    </vsm:VisualState>
    </vsm:VisualStateGroup>
    </vsm:VisualStateManager.VisualStateGroups>

    <Grid.RowDefinitions>
    <RowDefinition Height="*" />
    <RowDefinition Height="*" />
    <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="Auto" />
    </Grid.ColumnDefinitions>

    <Rectangle x:Name="BackgroundRectangle" Stretch="Fill" Fill="#FF1F3B53" Grid.ColumnSpan="2" Grid.RowSpan="2"/>

    <Rectangle x:Name="BackgroundGradient" Stretch="Fill" Grid.ColumnSpan="2" Grid.RowSpan="2">
    <Rectangle.Fill>
    <LinearGradientBrush StartPoint=".7,0" EndPoint=".7,1">
    <GradientStop Color="#FFFFFFFF" Offset="0.015" />
    <GradientStop Color="#F9FFFFFF" Offset="0.375" />
    <GradientStop Color="#E5FFFFFF" Offset="0.6" />
    <GradientStop Color="#C6FFFFFF" Offset="1" />
    </LinearGradientBrush>
    </Rectangle.Fill>
    </Rectangle>

    <ContentPresenter Width="{TemplateBinding Width}" >
    <TextBlock Width="75" Text="{TemplateBinding Content}" TextWrapping="Wrap" TextAlignment="Center"/>
    </ContentPresenter>

    <Rectangle Name="VerticalSeparator" Grid.RowSpan="2" Grid.Column="2" Width="1" VerticalAlignment="Stretch" Fill="{TemplateBinding SeparatorBrush}" Visibility="{TemplateBinding SeparatorVisibility}" />

    <Path Grid.RowSpan="2" Name="SortIcon" RenderTransformOrigin=".5,.5" HorizontalAlignment="Left" VerticalAlignment="Center" Opacity="0" Grid.Column="1" Stretch="Uniform" Width="8" Data="F1 M -5.215,6.099L 5.215,6.099L 0,0L -5.215,6.099 Z ">
    <Path.Fill>
    <SolidColorBrush Color="#FF444444" />
    </Path.Fill>
    <Path.RenderTransform>
    <TransformGroup>
    <ScaleTransform x:Name="SortIconTransform" ScaleX=".9" ScaleY=".9" />
    </TransformGroup>
    </Path.RenderTransform>
    </Path>

    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </Application.Resources>
    </Application>

     <data:DataGridTextColumn x:Name="age" Header="Age" Visibility="Visible" Width="150" Binding="{Binding age}" HeaderStyle="{StaticResource myColumnHeaderStyle}"></data:DataGridTextColumn>

    By the way, there is no point to readd reference to vsm and  dataprimitives on the xaml file.

    Best regards,

    Jonathan

     

     

    Monday, December 15, 2008 10:52 PM
  • Jonathan,

    In regards to the pasting, I realized after I posted that mine was pasted correctly, using the "Source Code" icon.  It looks different while creating the post than it does after it is posted, so I thought I was doing something wrong.

    From your post, I conclude that I am doing it correctly.  So, thanks for confirming that.  Thanks also for the note about the redundant references.  I'll take those out.

    But unless I missed something, my question still isn't answered.  If my code is correct, do you know why my preview pane in Visual Studio is messed up?

    (For what it's worth, I went to a conference over the weekend and talked to a couple other guys who said that their preview pane often gets messed up.  Their solution was "Use Expression Blend if you need to see a preview".  So, barring other information, that will probably be my strategy.)

    Thanks,

    Reese

     

    Tuesday, December 16, 2008 10:47 AM
  •  Hi Reese,

     For the preview panel,  it is a kind of inconvenience.   However, we need to wait for the future improvements. 

    Best regards,

    Jonathan

    Wednesday, December 17, 2008 12:59 AM