Failed to assign to property 'Windows.UI.Xaml.FrameworkElement.MinHeight'

此生再无相见时 提交于 2019-12-11 04:26:56

问题


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>

The <CommandBar>...</CommandBar> tags have the blue squiggly lines with the following error:

Error 1 The text associated with this error code could not be found.

Failed to assign to property 'Windows.UI.Xaml.FrameworkElement.MinHeight'. [Line: 6 Position: 9]

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!

Thanks,

Tony


回答1:


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.

Here's the download link



来源:https://stackoverflow.com/questions/24816994/failed-to-assign-to-property-windows-ui-xaml-frameworkelement-minheight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!