Если я ставлю следующий код в скелет WinRT приложения, это не построишь главную страницу:WinRT ListPickerFlyout сбой приложения, если цвет фона изменен
<Page
x:Class="TestApp1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:TestApp1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="Blue">
<Page.Resources>
<ListPickerFlyout x:Key="btnfly"/>
</Page.Resources>
<Grid>
</Grid>
</Page>
Ошибка является:
An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in TestApp1.WindowsPhone.exe but was not handled in user code WinRT information: Cannot create instance of type '%0' [Line: 12 Position: 42]
Изменение Фон тег назад {ThemeResource ApplicationPageBackgroundThemeBrush}
устраняет проблему.
Любые идеи о том, как изменить цвет фона на моей странице и использовать ListPickerFlyout?