2013-12-23 5 views
0

모노 마법사 "MonoGame Windows Store (XAML) 프로젝트"를 사용하여 샘플 앱을 만들었습니다. SwapChainBackgroundPanel을 하위 컨트롤로 추가 할 수 있습니까?

은 내가 다른 XAML 페이지 (예를 BlankPage.xaml)에이 SwapChainBackgroundPanel을 추가 할, 그러나 페이지 GamePage.xaml에게
<SwapChainBackgroundPanel 
    x:Class="Mono.GamePage" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:local="using:Mono" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"> 

    <Grid> 
     <Grid.ColumnDefinitions> 
      <ColumnDefinition Width="*"/> 
      <ColumnDefinition Width="200"/> 
     </Grid.ColumnDefinitions> 

     <StackPanel Grid.Column="1" Background="LightGray"> 
      <Button Content="Stop" x:Name="btnStartStop" Click="btnStartStop_Click"/> 
     </StackPanel> 
    </Grid> 

</SwapChainBackgroundPanel> 

를 만들었습니다.

하지만 앱을 실행할 때. WinRT 정보 : 'GamePage'형식의 인스턴스를 'Windows.UI.Xaml.Controls.UIElementCollection'형식의 컬렉션에 추가 할 수 없습니다.

그래서, 아무도 나에게이 문제가 무엇인지 말할 수 있습니까? 어떻게해야합니까? 다른 페이지의 하위 컨트롤로 SwapChainBackgroundPanel을 추가하고 싶습니다.

답변

0

SwapChainPanel을 하위 컨트롤 (귀하의 질문) == yes에 추가 할 수 있습니까?

하위 컨트롤을 SwapChainPanel에 추가 할 수 있습니까? (귀하의 코드) == 아니오.

관련 문제