无法分配给属性“Windows.UI.Xaml.FrameworkElement.MinHeight" [英] Failed to assign to property 'Windows.UI.Xaml.FrameworkElement.MinHeight'
问题描述
我正在尝试使用 Visual Studio 2013 Update 2 在我的 Windows Phone 8.1 应用程序上添加一个 CommandBar.这是 XAML 代码:
I'm trying to add a CommandBar on my Windows Phone 8.1 app, using Visual Studio 2013 Update 2. Here is the XAML code:
<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>
标签有蓝色波浪线,并带有以下错误:
The <CommandBar>...</CommandBar>
tags have the blue squiggly lines with the following error:
错误 1 找不到与此错误代码相关的文本.
Error 1 The text associated with this error code could not be found.
未能分配给属性Windows.UI.Xaml.FrameworkElement.MinHeight".[行:6 位置:9]
Failed to assign to property 'Windows.UI.Xaml.FrameworkElement.MinHeight'. [Line: 6 Position: 9]
我该如何解决这个错误?我对 Windows Phone 和 C# 比较陌生,上周才开始使用.任何帮助将不胜感激!
How can I resolve this error? I'm relatively new to Windows Phone and C#, having started only last week. Any help would be appreciated!
谢谢,
托尼
推荐答案
对于那些在 Visual Studio Express 2013 Update 2 中遇到相同问题的人,通过将 Visual Studio 2013 更新到 Update 3 RC 可以解决此错误.
For those experiencing the same problem Visual Studio Express 2013 Update 2, this error is resolved by updating Visual Studio 2013 to Update 3 RC.
这是下载链接
这篇关于无法分配给属性“Windows.UI.Xaml.FrameworkElement.MinHeight"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!