我的Blend项目有问题。当我打开它时,我可以看到带有图形的设计窗口。
但是当我尝试操作设计窗口中的表单时,会出现以下错误:
XamlParse异常(行:0位置:0) 堆栈跟踪 àMS.Internal.XcpImports.CheckHResult(UInt32 hr) àMS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element,Size avaibleSize) àSystem.Windows.FrameworkElement.MeasureOverride(Size avaibleSize) àSystem.Windows.FrameworkElement.MeasureOverride(IntPtr原生目标,单个inWidth,单个inHeight,Single& outWidth,Single& outHeight) InnerException:无
我真的不明白这个问题,因为当我运行项目(F5)时,一切正常!
项目运行后,错误仍然存在,我无法操纵设计窗口中的表单。
有人遇到过这个问题吗?
<UserControl xmlns:sdk="schemas.microsoft.com/winfx/2006/xaml/presentation/sdk";
x:Class="Casting.MainPage"
xmlns="schemas.microsoft.com/winfx/2006/xaml/presentation";
xmlns:x="schemas.microsoft.com/winfx/2006/xaml";
xmlns:d="schemas.microsoft.com/expression/blend/2008"
xmlns:mc="schemas.openxmlformats.org/markup-compatibility/2006";
xmlns:tk="schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit";
xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit"
xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
xmlns:ctrl="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
xmlns:util="clr-namespace:Casting.Util;assembly=Casting.Util"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.SL4"
xmlns:layoutToolkitPrimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Layout.Toolkit"
mc:Ignorable="d"
d:DesignHeight="800"
d:DesignWidth="1280"
xmlns:local="clr-namespace:Casting"
DataContext="{Binding Main, Source={StaticResource Locator}}"
>