找不到Windows运行时类型windows.UI.Xaml.Tickbar

时间:2015-05-22 07:16:38

标签: wpf xaml windows-phone-8.1

在我的设备上运行我的程序后,我收到错误找不到我的xaml中的Windows运行时类型windows.UI.Xaml.Tickbar。

我多次忽略了Xaml但我无法看到任何错误我希望Stackoverflow的人能帮助我

错误所在的xaml片段:

  <DataTemplate>
                    <ScrollViewer Height="543" Margin="0,0,-0.167,0" HorizontalScrollMode="Disabled" VerticalScrollMode="Auto" >
                        <Grid Height="708" Name="ProfileContent">
                            <Image x:Name="ProfileImage" HorizontalAlignment="Left" Height="149" Margin="10,10,0,0" VerticalAlignment="Top" Width="143" Source="{Binding image}" Stretch="Fill"/>
                            <Button x:Name="BtnChangePic" Content="Change" HorizontalAlignment="Left" Margin="175,0,0,0" VerticalAlignment="Top" Click="BtnChangePic_Click" Width="156" x:Uid="BtnChangePic"/>
                            <TextBox HorizontalAlignment="Left" Margin="109,180,0,0" TextWrapping="Wrap" Text="{Binding name, Mode=TwoWay}" VerticalAlignment="Top" Width="222"/>
                            <TextBlock x:Name="TBlockName" HorizontalAlignment="Left" Margin="10,195,0,0" TextWrapping="Wrap" x:Uid="TBlockName" Text="Name" VerticalAlignment="Top" FontSize="20"/>
                            <TextBox HorizontalAlignment="Left" Margin="109,224,0,0" TextWrapping="Wrap" Text="{Binding location[4], Mode=TwoWay}" VerticalAlignment="Top" Width="222" Height="39"/>
                            <TextBlock x:Name="TBlockLand" HorizontalAlignment="Left" Margin="10,245,0,0" TextWrapping="Wrap" Text="Land" VerticalAlignment="Top" FontSize="20" x:Uid="TBlockLand"/>
                            <Button x:Name="BtnImgDel" Content="Delete" HorizontalAlignment="Left" Margin="175,62,0,0" VerticalAlignment="Top" Click="BtnImgDel_Click" Width="156" x:Uid="BtnImgDel"/>
                            <TextBlock x:Name="Seo_name" HorizontalAlignment="Left" Margin="289,10,0,0" TextWrapping="Wrap" Text="{Binding seo_name}" VerticalAlignment="Top" Opacity="0"/>
                            <TextBox HorizontalAlignment="Left" Margin="109,268,0,0" TextWrapping="Wrap" Text="{Binding location[3], Mode=TwoWay}" VerticalAlignment="Top" Width="222" Height="39"/>
                            <TextBox HorizontalAlignment="Left" Margin="109,312,0,0" TextWrapping="Wrap" Text="{Binding location[2], Mode=TwoWay}" VerticalAlignment="Top" Width="222" Height="39"/>
                            <TextBlock x:Name="TBlockProvincie" HorizontalAlignment="Left" Margin="10,289,0,0" TextWrapping="Wrap" Text="Provincie" VerticalAlignment="Top" FontSize="20" x:Uid="TBlockProvincie"/>
                            <TextBlock x:Name="TBlockCity" HorizontalAlignment="Left" Margin="10,327,0,0" TextWrapping="Wrap" Text="Stad" VerticalAlignment="Top" FontSize="20" x:Uid="TBlockCity"/>
                            <TextBlock x:Name="TBlockStreet" HorizontalAlignment="Left" Margin="10,371,0,0" TextWrapping="Wrap" Text="Straat" VerticalAlignment="Top" FontSize="20" x:Uid="TBlockStreet"/>
                            <TextBox HorizontalAlignment="Left" Margin="109,356,0,0" TextWrapping="Wrap" Text="{Binding location[1], Mode=TwoWay}" VerticalAlignment="Top" Width="222" Height="39"/>
                            <TextBlock x:Name="TBlockHouseNumber" HorizontalAlignment="Left" Margin="10,400,0,0" TextWrapping="Wrap" Text="Huisnummer" VerticalAlignment="Top" FontSize="20" Width="94"/>
                            <TextBox HorizontalAlignment="Left" Margin="109,400,0,0" TextWrapping="Wrap" Text="{Binding location[0], Mode=TwoWay}" VerticalAlignment="Top" Width="222" Height="39" x:Uid="TBlockHouseNumber"/>
                            <TextBlock HorizontalAlignment="Left" Margin="10,459,0,0" TextWrapping="Wrap" Text="Telefoon" VerticalAlignment="Top" FontSize="20"/>
                            <TextBox HorizontalAlignment="Left" Margin="109,444,0,0" TextWrapping="Wrap" Text="{Binding phone, Mode=TwoWay}" VerticalAlignment="Top" Width="222" Height="39"/>
                            <TextBlock x:Name="TBlockHide" HorizontalAlignment="Left" Margin="10,500,0,0" TextWrapping="Wrap" Text="Verbergen" VerticalAlignment="Top" FontSize="20" x:Uid="TBlockHide"/>
                            <CheckBox Content="" HorizontalAlignment="Left" Margin="116,484,0,0" VerticalAlignment="Top" Height="55" IsChecked="{Binding hidephone, Mode=TwoWay}"/>
                            <Button x:Name="BtnSaveProfile" Content="Button" HorizontalAlignment="Left" Margin="10,551,0,0" VerticalAlignment="Top" Width="321"/>

                        </Grid>
                    </ScrollViewer>
                </DataTemplate>

谢谢

1 个答案:

答案 0 :(得分:1)

在删除所有X:Uid代码后,在我的Xaml中发现错误,问题已修复。

感谢Physikbuddha的帮助