-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>