-1
我正在使用Coding4Fun提示消息在WP7(Windows Phone 7)上顯示彈出消息。刪除MessagePrompt中的邊框
我搜索我如何能去除圍繞信息提示白邊,我發現以下
How to remove the border in Coding4Fun MessagePrompt
我想執行的解決方案,但我不知道在哪裏放置XAML代碼在答案中。
請問任何人可以澄清答案嗎?
在此先感謝。
我正在使用Coding4Fun提示消息在WP7(Windows Phone 7)上顯示彈出消息。刪除MessagePrompt中的邊框
我搜索我如何能去除圍繞信息提示白邊,我發現以下
How to remove the border in Coding4Fun MessagePrompt
我想執行的解決方案,但我不知道在哪裏放置XAML代碼在答案中。
請問任何人可以澄清答案嗎?
在此先感謝。
顯然你把它作爲<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>