【发布时间】:2015-01-27 10:55:41
【问题描述】:
我在我的 Windows Phone 8.1 应用程序中收到错误:
找不到与此错误代码关联的文本 (ParseXamlException)
第 28 行第 28 列
<UserControl
x:Class="ConnectorX_UniversalApp.UI.LoginUserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:local="using:ConnectorX_UniversalApp.CommonUI">
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot">
<Grid.Background>
<ImageBrush ImageSource="ms-appx:///Assets/CustomUI/background.png" Stretch="UniformToFill" />
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="120"/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" Grid.Column="0">
<TextBlock x:Uid="BuisnessConnectorTextBlock" Margin="5,15,0,0" FontSize="25" x:Name="BuisnessConnectorTextBlock" HorizontalAlignment="Stretch"/>
</StackPanel>
Xaml 有效。我在另一台笔记本电脑上克隆并运行项目后出现此错误。
【问题讨论】:
标签: c# xaml windows-phone-8.1