Failed to assign to property 'Windows.UI.Xaml.FrameworkE

本文关键字:to Windows UI FrameworkE Xaml assign property Failed | 更新日期: 2023-09-27 18:13:22

我正在尝试在我的Windows Phone 8.1应用程序上添加一个命令栏,使用Visual Studio 2013 Update 2。下面是XAML代码:

<Page
    x:Class="App1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App1"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Page.BottomAppBar>
        <CommandBar>
            <AppBarButton Icon="Accept" Label="appbarbutton"/>
        </CommandBar>
    </Page.BottomAppBar>
    <Grid>
    </Grid>
</Page>

<CommandBar>...</CommandBar>标签有蓝色弯弯曲曲的线条,错误如下:

错误1找不到与此错误代码相关的文本。

分配属性"Windows.UI.Xaml.FrameworkElement.MinHeight"失败。[Line: 6 Position: 9]

如何解决这个错误?我是Windows Phone和c#的新手,上周才开始接触。任何帮助将不胜感激!

谢谢,托尼

Failed to assign to property 'Windows.UI.Xaml.FrameworkE

对于遇到相同问题的Visual Studio Express 2013 Update 2,此错误通过将Visual Studio 2013更新到Update 3 RC来解决。

下载链接