Question : xaml parse error silverlight 4 from 3

Ive been working with a sample gantt project in silverlight 3.  Then I upgraded to Silverlight 4 and now I am getting XAML parse errors.    What happened?


Error      2      [Parser_SetValue_Exception]
Arguments: System.Windows.FrameworkElement.Style
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50401.0&File=System.Windows.dll&Key=Parser_SetValue_Exception [Line: 82 Position: 50]      
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
<UserControl x:Class="CoderForRent.Silverlight.GanttExample.PageWCFDriven"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:gantt="clr-namespace:CoderForRent.Silverlight.Charting.Gantt;assembly=CoderForRent.Silverlight.Charting"
    Width="Auto" Height="Auto">
    <Grid x:Name="LayoutRoot" Background="White">
       
        <gantt:GanttChart x:Name="gantt" Width="Auto" Height="Auto" IsReadOnly="False"  >
            <gantt:GanttChart.ToolTipContentTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <TextBlock Margin="1" Text="Name:" Grid.Column="0" Grid.Row="0" />
                        <TextBlock Margin="1" Text="{Binding TaskName}" Grid.Column="1" Grid.Row="0" />
                        <TextBlock Margin="1" Text="Start Date:" Grid.Column="0" Grid.Row="1" />
                        <TextBlock Margin="1" Text="{Binding StartDateFormatted}" Grid.Column="1" Grid.Row="1" />
                        <TextBlock Margin="1" Text="End Date:" Grid.Column="0" Grid.Row="2" />
                        <TextBlock Margin="1" Text="{Binding EndDateFormatted}" Grid.Column="1" Grid.Row="2" />
                    </Grid>
                </DataTemplate>
            </gantt:GanttChart.ToolTipContentTemplate>
           
        </gantt:GanttChart>
    </Grid>
</UserControl>

Answer : xaml parse error silverlight 4 from 3

This can provide you help while working with Silverlight v4. I know this is not about gantt chart but it will lead you how you should write your code.

http://www.packtpub.com/article/working-dataform-microsoft-silverlight-4?sr

I this helps you fine, otherwise I won't take your more time.
Random Solutions  
 
programming4us programming4us