为什么尝试使用 "Protected" Windows 商店应用栏图标会使我的应用程序崩溃?

Why does attempting to use the "Protected" Windows Store App Bar icon crash my app?

使用此 XAML:

<AppBarButton Icon="Protected" Label="Privacy Policy" >
    <AppBarButton.Flyout>
        <Flyout>
        <StackPanel>
            <TextBlock MaxWidth="200" Text="Photrax extracts information from images you load into it. The information it extracts includes location information (where the photos were taken, when that is available) and the date and time the photo was taken. This data is stored in a local/internal/embedded (SQLite) database. This data is not stored in the cloud but only on your local device." TextWrapping="Wrap" FontSize="13" FontFamily="Verdana">
            </TextBlock>
            <TextBlock MaxWidth="200" Text="To reiterate: Your data is not shared with anyone else. It is stored only on the device from which you use Photrax." TextWrapping="Wrap" FontSize="13" FontFamily="Verdana">
            </TextBlock>
        </StackPanel>
        </Flyout>
    </AppBarButton.Flyout>
</AppBarButton>

...我的应用程序崩溃,“发生类型 'Windows.UI.Xaml.Markup.XamlParseException' 的异常...无法从文本 'Protected' 创建“Windows.UI.Xaml.Controls.IconElement

然而 "Protected" 是官方列出的图标之一,如图 here

如果我改变这个:

<AppBarButton Icon="Protected"

...为此:

<AppBarButton Icon="Help"

...它工作正常(但不显示首选图标),所以我尝试使用 "Protected" 图标导致我头疼。为什么?如何补救?

您链接的列表适用于 Windows 8。对于 Windows 8.1,请参阅 http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.ui.xaml.controls.symbol.aspx

您可能正在寻找 ProtectedDocument 而不是 Protected。