数据绑定给全景项目带来错误。这是下面的错误
System.Windows.Data错误:BindingExpression路径错误: 找不到'MyJournalItem'属性 'MetroJournalEntry.MyJournalItem''MetroJournalEntry.MyJournalItem' (的HashCode = 120244903)。 BindingExpression:Path ='MyJournalItem' DataItem ='MetroJournalEntry.MyJournalItem'(HashCode = 120244903); target元素是'Microsoft.Phone.Controls.Panorama' (名称= 'metroPanorama'); target属性是'ItemsSource'(类型 'System.Collections.IEnumerable').. System.Windows.Data错误: BindingExpression路径错误:找不到'MyJournalItem'属性 'MetroJournalEntry.MyJournalItem''MetroJournalEntry.MyJournalItem' (的HashCode = 120244903)。 BindingExpression:Path ='MyJournalItem' DataItem ='MetroJournalEntry.MyJournalItem'(HashCode = 120244903); target元素是'Microsoft.Phone.Controls.PanoramaItem'(Name =''); target属性是'DataContext'(类型'System.Object')..
这是xaml代码
<!--Panorama control-->
<controls:Panorama Title="my application" x:Name="metroPanorama" ItemsSource="{Binding MyJournalItem}">
<controls:Panorama.Resources>
<Style x:Key="PanoramaStyle1" TargetType="controls:Panorama">
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<controlsPrimitives:PanoramaPanel x:Name="panel"/>
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:Panorama">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="618"/>
</Grid.RowDefinitions>
<controlsPrimitives:PanningBackgroundLayer x:Name="BackgroundLayer" HorizontalAlignment="Left" Grid.RowSpan="2">
<Border x:Name="background" Background="{TemplateBinding Background}" CacheMode="BitmapCache"/>
</controlsPrimitives:PanningBackgroundLayer>
<controlsPrimitives:PanningTitleLayer x:Name="TitleLayer" CacheMode="BitmapCache" ContentTemplate="{TemplateBinding TitleTemplate}" FontSize="187" FontFamily="{StaticResource PhoneFontFamilyLight}" HorizontalAlignment="Left" Margin="10,-76,0,9" Grid.Row="0"/>
<controlsPrimitives:PanningLayer x:Name="ItemsLayer" HorizontalAlignment="Left" Grid.Row="1">
<ItemsPresenter x:Name="items"/>
</controlsPrimitives:PanningLayer>
<TextBlock x:Name="metrojournal" FontSize="66.667" TextAlignment="Left" TextWrapping="Wrap" Margin="11,-1,-1424,1" d:LayoutOverrides="Width, Height"><TextBlock.RenderTransform>
<MatrixTransform Matrix="1.207,0,0,1.207,0,0"/>
</TextBlock.RenderTransform><Run Foreground="#FF000000" FontFamily="SegoeWPN-Light" Text="metro"/><Run Foreground="#FFFFFFFF" FontFamily="Segoe WP Semibold" Text="journal"/></TextBlock>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</controls:Panorama.Resources>
<controls:Panorama.Background>
<ImageBrush ImageSource="panoramabackground_1024.png"/>
</controls:Panorama.Background>
<controls:Panorama.Style>
<StaticResource ResourceKey="PanoramaStyle1"/>
</controls:Panorama.Style>
<!--Panorama item two-->
<controls:PanoramaItem Header="recent item" Height="628" DataContext="{Binding MyJournalItem}">
<controls:PanoramaItem.Resources>
<Style x:Key="PanoramaItemStyle1" TargetType="controls:PanoramaItem">
<Setter Property="CacheMode" Value="BitmapCache"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:PanoramaItem">
<Grid Background="{TemplateBinding Background}" Margin="12,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="486"/>
</Grid.RowDefinitions>
<ContentControl x:Name="header" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="recent" FontSize="98" FontFamily="SegoeWPN-SemiLight" HorizontalAlignment="Left" Margin="10,-2,0,26" Foreground="#FF00A5AF">
<ContentControl.RenderTransform>
<TranslateTransform x:Name="headerTransform"/>
</ContentControl.RenderTransform>
</ContentControl>
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Grid.Row="1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</controls:PanoramaItem.Resources>
<controls:PanoramaItem.Style>
<StaticResource ResourceKey="PanoramaItemStyle1"/>
</controls:PanoramaItem.Style>
<Grid Margin="0,0,0,-4" Width="432">
<TextBlock x:Name="photo" Foreground="#FF00A5AF" FontSize="30" FontFamily="SegoeWPN-Black" TextAlignment="Left" TextWrapping="Wrap" Text="PHOTO" HorizontalAlignment="Left" Margin="15,0,0,0" VerticalAlignment="Top" FontWeight="Bold" />
<TextBlock x:Name="PhotoTextDisplay" Foreground="#FF88A9AB" FontSize="24" FontFamily="Segoe WP" TextAlignment="Left" TextWrapping="Wrap" Text="{Binding EntryTitle}" Margin="12,0,82,204" VerticalAlignment="Bottom" />
<TextBlock x:Name="Date" Foreground="#FFECC373" FontSize="25" FontFamily="Segoe WP Semibold" TextAlignment="Left" TextWrapping="Wrap" Text="{Binding EntryDate}" HorizontalAlignment="Left" Margin="15,0,0,170" VerticalAlignment="Bottom" />
<Path x:Name="divider" Data="F1M0.5,2C0.5,2 0.5,1 0.5,1 0.5,1 370.153,1 370.153,1 370.153,1 370.153,2 370.153,2 370.153,2 0.5,2 0.5,2z" Fill="#FFD2D2D2" Height="2" Margin="12,0,61,163" UseLayoutRounding="False" VerticalAlignment="Bottom" />
<TextBlock x:Name="text" Foreground="#FF00A5AF" FontSize="30" FontFamily="SegoeWPN-Black" TextAlignment="Left" TextWrapping="Wrap" Text="TEXT" HorizontalAlignment="Left" Margin="15,0,0,117" VerticalAlignment="Bottom" FontWeight="Bold" />
<TextBlock x:Name="TextBoldDisplay" Foreground="#FF74A3A5" FontSize="30" FontFamily="Segoe WP Semibold" TextAlignment="Left" TextWrapping="Wrap" Text="{Binding EntryTitle}" Margin="15,0,167,77" VerticalAlignment="Bottom" />
<TextBlock x:Name="TextDisplay" Foreground="#FF87A9AB" FontSize="24" FontFamily="Segoe WP" TextAlignment="Left" TextWrapping="Wrap" Text="{Binding EntryNotes}" Margin="15,0,25,45" VerticalAlignment="Bottom" />
<TextBlock x:Name="TextDate" Foreground="#FFECC373" FontSize="25" FontFamily="Segoe WP Semibold" TextAlignment="Left" TextWrapping="Wrap" Text="{Binding EntryDate}" HorizontalAlignment="Left" Margin="15,0,0,11" VerticalAlignment="Bottom" />
<Image x:Name="recentImage" Height="174" Margin="15,62,72,0" VerticalAlignment="Top" DataContext="{Binding EntryImage}" />
</Grid>
</controls:PanoramaItem>
<controls:PanoramaItem Header="saved item">
<controls:PanoramaItem.Resources>
<Style x:Key="PanoramaItemStyle1" TargetType="controls:PanoramaItem">
<Setter Property="CacheMode" Value="BitmapCache"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:PanoramaItem">
<Grid Background="{TemplateBinding Background}" Margin="12,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ContentControl x:Name="header" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="saved" FontSize="98" FontFamily="SegoeWPN-SemiLight" HorizontalAlignment="Left" Margin="10,-2,0,26" Foreground="#FF00A5AF">
<ContentControl.RenderTransform>
<TranslateTransform x:Name="headerTransform"/>
</ContentControl.RenderTransform>
</ContentControl>
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Grid.Row="1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</controls:PanoramaItem.Resources>
<controls:PanoramaItem.Style>
<StaticResource ResourceKey="PanoramaItemStyle1"/>
</controls:PanoramaItem.Style>
<Grid>
<TextBlock x:Name="These_are_your_saved_journal_entries" Foreground="#FF676767" FontSize="24" FontFamily="Segoe WP" TextAlignment="Left" TextWrapping="Wrap" Text="These are your saved journal entries" Margin="15,0,18,0" VerticalAlignment="Top"/>
<TextBlock x:Name="My_saved_draft" Foreground="#FF75A3A5" FontSize="30" FontFamily="SegoeWPN-SemiLight" TextAlignment="Left" TextWrapping="Wrap" Text="My saved draft" Margin="15,96,208,0" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment, Width"/>
<TextBlock x:Name="I_can_t_think_of_what_to_write___" Foreground="#FF87A9AB" FontSize="24" FontFamily="Segoe WP" TextAlignment="Left" TextWrapping="Wrap" Text="I can’t think of what to write..." Margin="15,140,93,0" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
<TextBlock x:Name="_14_4_12" Foreground="#FFECC373" FontSize="25" FontFamily="Segoe WP Semibold" TextAlignment="Left" TextWrapping="Wrap" Text="14/4/12" HorizontalAlignment="Left" Margin="15,176,0,0" VerticalAlignment="Top"/>
</Grid>
</controls:PanoramaItem>
<controls:PanoramaItem Header="newentry item">
<controls:PanoramaItem.Resources>
<Style x:Key="PanoramaItemStyle1" TargetType="controls:PanoramaItem">
<Setter Property="CacheMode" Value="BitmapCache"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:PanoramaItem">
<Grid Background="{TemplateBinding Background}" Margin="12,0,0,0" Width="430" HorizontalAlignment="Left">
<Grid.RowDefinitions>
<RowDefinition Height="0.228*"/>
<RowDefinition Height="0.772*"/>
</Grid.RowDefinitions>
<ContentControl x:Name="header" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="new entry" FontSize="98" FontFamily="SegoeWPN-SemiLight" Margin="-5,-2,0,26" Background="Black" Foreground="#FF00A5AF" Width="430" HorizontalAlignment="Left" VerticalAlignment="Top">
<ContentControl.RenderTransform>
<TranslateTransform x:Name="headerTransform"/>
</ContentControl.RenderTransform>
</ContentControl>
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Grid.Row="1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</controls:PanoramaItem.Resources>
<controls:PanoramaItem.Style>
<StaticResource ResourceKey="PanoramaItemStyle1"/>
</controls:PanoramaItem.Style>
<Grid>
<TextBlock x:Name="Info" Foreground="#FF676767" FontSize="24" FontFamily="Segoe WP" TextAlignment="Left" TextWrapping="Wrap" Text="select an entry type to get started" Margin="20,0,42,0" VerticalAlignment="Top" Height="59"/>
<Button x:Name="Text"
Content="TEXT"
toolkit:TiltEffect.IsTiltEnabled="True"
Height="73" Margin="20,102,40,0" VerticalAlignment="Top"
Click="NewEntryText_Click">
<Button.Resources>
<Style x:Key="ButtonStyle1" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<Path x:Name="Shape_4" Data="F1M1,0C1,0 371,0 371,0 371,0 371,74 371,74 371,74 1,74 1,74 1,74 1,0 1,0z" Fill="#FF00A5AF" Height="73" UseLayoutRounding="False" VerticalAlignment="Top"/>
<ContentPresenter Margin="144,17,161,0" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FontFamily" Value="SegoeWPN-Black"/>
<Setter Property="FontSize" Value="30"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</Button.Resources>
<Button.Style>
<StaticResource ResourceKey="ButtonStyle1"/>
</Button.Style>
</Button>
<Button x:Name="Photos"
Content="PHOTOS"
toolkit:TiltEffect.IsTiltEnabled="True"
Margin="20,206,40,197" Click="NewEntryPhotos_Click">
<Button.Resources>
<Style x:Key="ButtonStyle1" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<Path x:Name="Shape_4_copy" Data="F1M1,1C1,1 371,1 371,1 371,1 371,75 371,75 371,75 1,75 1,75 1,75 1,1 1,1z" Fill="#FF00A5AF" UseLayoutRounding="False" Height="74" VerticalAlignment="Top"/>
<ContentPresenter Height="56" Margin="123,18,130,0" VerticalAlignment="Top"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FontFamily" Value="SegoeWPN-Black"/>
<Setter Property="FontSize" Value="30"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</Button.Resources>
<Button.Style>
<StaticResource ResourceKey="ButtonStyle1"/>
</Button.Style>
</Button>
<Button x:Name="Audio"
Content="AUDIO"
toolkit:TiltEffect.IsTiltEnabled="True"
Height="74" Margin="20,0,40,93" VerticalAlignment="Bottom" Click="NewEntryAudio_Click">
<Button.Resources>
<Style x:Key="ButtonStyle1" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<ScrollViewer>
<Grid Height="74">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.37*"/>
<ColumnDefinition Width="0.63*"/>
</Grid.ColumnDefinitions>
<Path x:Name="Shape_4_copy_2" Data="F1M1,0C1,0 371,0 371,0 371,0 371,74 371,74 371,74 1,74 1,74 1,74 1,0 1,0z" Fill="#FF00A5AF" UseLayoutRounding="False" Height="74" VerticalAlignment="Top" Grid.ColumnSpan="2"/>
</Grid>
</ScrollViewer>
<ContentPresenter Height="56" Margin="131,18,122,0" VerticalAlignment="Top" d:LayoutOverrides="GridBox"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FontFamily" Value="SegoeWPN-Black"/>
<Setter Property="FontSize" Value="30"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</Button.Resources>
<Button.Style>
<StaticResource ResourceKey="ButtonStyle1"/>
</Button.Style>
</Button>
</Grid>
</controls:PanoramaItem>
<controls:PanoramaItem Header="settings item">
<controls:PanoramaItem.Resources>
<Style x:Key="PanoramaItemStyle1" TargetType="controls:PanoramaItem">
<Setter Property="CacheMode" Value="BitmapCache"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:PanoramaItem">
<Grid Background="{TemplateBinding Background}" Margin="12,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ContentControl x:Name="header" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="settings" FontSize="98" FontFamily="SegoeWPN-SemiLight" HorizontalAlignment="Left" Margin="10,-2,0,26" Foreground="#FF00A5AF">
<ContentControl.RenderTransform>
<TranslateTransform x:Name="headerTransform"/>
</ContentControl.RenderTransform>
</ContentControl>
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Grid.Row="1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</controls:PanoramaItem.Resources>
<controls:PanoramaItem.Style>
<StaticResource ResourceKey="PanoramaItemStyle1"/>
</controls:PanoramaItem.Style>
<Grid>
<toolkit:ToggleSwitch.Style>
<StaticResource ResourceKey="ToggleSwitchStyle1"/>
</toolkit:ToggleSwitch.Style>
</toolkit:ToggleSwitch>
</Grid>
</controls:PanoramaItem>
<controls:PanoramaItem Header="menu item">
<controls:PanoramaItem.Resources>
<Style x:Key="PanoramaItemStyle1" TargetType="controls:PanoramaItem">
<Setter Property="CacheMode" Value="BitmapCache"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:PanoramaItem">
<Grid Background="{TemplateBinding Background}" Margin="12,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ContentControl x:Name="header" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="menu" FontSize="98" FontFamily="SegoeWPN-SemiLight" HorizontalAlignment="Left" Margin="10,-2,0,26" Foreground="#FF00A5AF">
<ContentControl.RenderTransform>
<TranslateTransform x:Name="headerTransform"/>
</ContentControl.RenderTransform>
</ContentControl>
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Grid.Row="1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</controls:PanoramaItem.Resources>
<controls:PanoramaItem.Style>
<StaticResource ResourceKey="PanoramaItemStyle1"/>
</controls:PanoramaItem.Style>
<Grid>
<Button x:Name="AllEntries" Content="ALL ENTRIES"
toolkit:TiltEffect.IsTiltEnabled="True"
Height="75" Margin="19,16,31,0" VerticalAlignment="Top"
Click="AllEntries_Click">
<Button.Resources>
<Style x:Key="ButtonStyle1" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<Image Source="menu_allentries_button.png" Stretch="Fill"/>
<ContentPresenter HorizontalAlignment="Left" Margin="25,20,0,20" Width="175"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FontFamily" Value="SegoeWPN-Black"/>
<Setter Property="FontSize" Value="30"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</Button.Resources>
<Button.Style>
<StaticResource ResourceKey="ButtonStyle1"/>
</Button.Style>
</Button>
<Button x:Name="MyPhotos"
Content="MY PHOTOS"
toolkit:TiltEffect.IsTiltEnabled="True"
Height="75" Margin="19,122,31,0" VerticalAlignment="Top"
Click="MyPhotos_Click">
<Button.Resources>
<Style x:Key="ButtonStyle1" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<Image x:Name="MyPhotos" Height="75" Source="menu_photos_button.png" Stretch="Fill" VerticalAlignment="Top"
/>
<ContentPresenter Margin="25,18,180,0" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FontFamily" Value="SegoeWPN-Black"/>
<Setter Property="FontSize" Value="30"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</Button.Resources>
<Button.Style>
<StaticResource ResourceKey="ButtonStyle1"/>
</Button.Style>
</Button>
<Button x:Name="NewEntry"
Content="NEW ENTRY"
toolkit:TiltEffect.IsTiltEnabled="True"
Margin="19,227,31,174"
Click="NewEntry_Click">
<Button.Resources>
<Style x:Key="ButtonStyle1" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<Image x:Name="NewEntry" Source="menu_newentry_button.png" Stretch="Fill"
Height="75" VerticalAlignment="Top"
/>
<ContentPresenter Margin="25,21,183,0" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FontFamily" Value="SegoeWPN-Black"/>
<Setter Property="FontSize" Value="30"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</Button.Resources>
<Button.Style>
<StaticResource ResourceKey="ButtonStyle1"/>
</Button.Style>
</Button>
<Button x:Name="Settings"
Content="SETTINGS"
toolkit:TiltEffect.IsTiltEnabled="True"
Height="75" Margin="19,0,31,68" VerticalAlignment="Bottom"
Click="Settings_Click">
<Button.Resources>
<Style x:Key="ButtonStyle1" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<Image Source="menu_settings_button.png" Stretch="Fill"/>
<ContentPresenter HorizontalAlignment="Left" Margin="25,18,0,0" VerticalAlignment="Top"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FontFamily" Value="SegoeWPN-Black"/>
<Setter Property="FontSize" Value="30"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</Button.Resources>
<Button.Style>
<StaticResource ResourceKey="ButtonStyle1"/>
</Button.Style>
</Button>
</Grid>
</controls:PanoramaItem>
</controls:Panorama>
</Grid>
请告诉我可能导致此数据绑定错误的原因。我努力想弄清楚,但没有发现任何线索。