Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - XAML Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XAML Error

 Post Reply Post Reply
Author
Message
hartlbb View Drop Down
Newbie
Newbie


Joined: 05 January 2011
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote hartlbb Quote  Post ReplyReply Direct Link To This Post Topic: XAML Error
    Posted: 05 January 2011 at 1:11pm
HI All - I was creating a silverlight sketchflow app and suddenly it would not longer build.  It gets to the following line and states "The speciified value cannot be assigned to the collection.  The following type was expected:  "UIElement".  (It breaks on the "Grid" tag at the very bottom)
 
<UserControl
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
 xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:pi="http://schemas.microsoft.com/prototyping/2010/interactivity"
 mc:Ignorable="d"
 x:Class="WorkOrderTool_SilScreens.Screen_1"
 Width="800" Height="600">
 <UserControl.Resources>
  <ResourceDictionary>
   <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="ProjectDataSources.xaml"/>
   </ResourceDictionary.MergedDictionaries>
   <DataTemplate x:Key="ItemTemplate">
    <StackPanel>
     <TextBlock Text="{Binding KeyPartID}" Style="{StaticResource BasicTextBlock-Sketch}"/>
    </StackPanel>
   </DataTemplate>
   <DataTemplate x:Key="ItemTemplate1">
    <StackPanel>
     <TextBlock Text="{Binding PKPN}" Style="{StaticResource BasicTextBlock-Sketch}"/>
    </StackPanel>
   </DataTemplate>
   <DataTemplate x:Key="ItemTemplate2">
    <StackPanel>
     <TextBlock Text="{Binding PKPN}" Style="{StaticResource BasicTextBlock-Sketch}"/>
    </StackPanel>
   </DataTemplate>
   <DataTemplate x:Key="ItemTemplate3">
    <StackPanel>
     <TextBlock Text="{Binding PKPN}" Style="{StaticResource BasicTextBlock-Sketch}"/>
    </StackPanel>
   </DataTemplate>
  </ResourceDictionary>
 </UserControl.Resources>
 <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource PKPN_Data}}">
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.