2012-02-21 1 views
0

に表示されていない、私は基本的なプロジェクトのメインページで、このXAMLを作成しました:アプリケーションを実行する場合イメージはWindowsの携帯電話のアプリのための私のSilverlightでのVisual Studioデザイナー

<phone:PhoneApplicationPage.Resources> 
    <Style x:Key="TestStyle" TargetType="CheckBox"> 
     <Setter Property="Template"> 
      <Setter.Value> 
       <ControlTemplate TargetType="CheckBox"> 
        <Grid x:Name="grid" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"> 
         <vsm:VisualStateManager.VisualStateGroups> 
          <vsm:VisualStateGroup x:Name="CheckStates"> 
           <vsm:VisualState x:Name="Checked"> 
            <Storyboard> 
             <ObjectAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="Source"> 
              <DiscreteObjectKeyFrame KeyTime="0" Value="ApplicationIcon.png"/> 
             </ObjectAnimationUsingKeyFrames> 
            </Storyboard> 
           </vsm:VisualState> 
           <vsm:VisualState x:Name="Unchecked"/> 
           <vsm:VisualState x:Name="Indeterminate"> 
            <Storyboard> 
             <ObjectAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="Source"> 
              <DiscreteObjectKeyFrame KeyTime="0" Value="ApplicationIcon.png"/> 
             </ObjectAnimationUsingKeyFrames> 
            </Storyboard> 
           </vsm:VisualState> 
          </vsm:VisualStateGroup> 
         </vsm:VisualStateManager.VisualStateGroups> 
         <Image x:Name="image" Source="ApplicationIcon.png" Margin="0 0 0 10" Stretch="Fill" VerticalAlignment="Center" Width="32" Height="32"/> 
        </Grid> 
       </ControlTemplate> 
      </Setter.Value> 
     </Setter> 
    </Style> 
</phone:PhoneApplicationPage.Resources> 

<Grid x:Name="LayoutRoot" Background="Transparent"> 
    <Grid.RowDefinitions> 
     <RowDefinition Height="Auto"/> 
     <RowDefinition Height="*"/> 
    </Grid.RowDefinitions> 

    <!--TitlePanel contains the name of the application and page title--> 
    <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"> 
     <TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/> 
     <TextBlock x:Name="PageTitle" Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/> 
    </StackPanel> 

    <!--ContentPanel - place additional content here--> 
    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> 
     <CheckBox Style="{StaticResource TestStyle}" /> 
    </Grid> 
</Grid> 

、画像アプリケーションには正しく表示されますが、デザイナーには表示されません。 私は自分のアプリケーションをスタイルすることができないので、これは面倒です。

これを修正する方法はありますか?回避策?それは大丈夫だブレンドのバグであるべき任意のヘルプ

+0

あなたのデザイナーは何ですか?ビジュアルスタジオ?ブレンド? – ken2k

+0

私はVisual studioを使用しています – Tim

答えて

0

を事前に

おかげで、

関連する問題