2012-08-27 5 views
-1

WP7 (Windows Phone 7)에서 팝업 메시지를 표시하려면 Coding4Fun 프롬프트 메시지를 사용하고 있습니다. MessagePrompt에서 테두리 제거

는 내가 메시지 프롬프트 주위에 흰색 테두리를 제거 할 수있는 방법에 검색하고 난 다음

내가 솔루션을 수행 할

How to remove the border in Coding4Fun MessagePrompt

을 발견하지만, XAML을 배치 할 위치를 모르겠어요 답안의 코드.

답변을 명확히 할 수 있습니까?

미리 감사드립니다.

답변

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>