-1

Coding4Fun プロンプト メッセージを使用して、WP7 (Windows Phone 7) でポップアップ メッセージを表示しています。

メッセージプロンプトの周りの白い境界線を削除する方法を検索したところ、次のことがわかりました

Coding4Fun MessagePrompt で境界線を削除する方法

ソリューションを実行したいのですが、XAML コードを回答のどこに配置すればよいかわかりません。

誰でも答えを明確にしてもらえますか?

前もって感謝します。

4

1 に答える 1

2

<phone:PhoneApplicationPage>明らかにの子として配置します。

与えられた例:

<phone:PhoneApplicationPage x:Class="Your.Class"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    Some other namespace declarations >

    <!-- Your page resources dictionary -->
    <phone:PhoneApplicationPage.Resources>  
        <ControlTemplate x:Key="MsgPropmtNoBorder"
                         TargetType="c4f:MessagePrompt">
                 BLAH-BLAH-BLAH
        </ControlTemplate>
    </phone:PhoneApplicationPage.Resources>

    <!-- Your layout root and all the page content -->
    <Grid x:Name="LayoutRoot"
          Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        BLAH-BLAH-BLAH-YOUR-CONTENT

    </Grid>
</phone:PhoneApplicationPage>
于 2012-08-27T13:00:18.160 に答える