2015-05-05 22 views
0

我在Photoshop中努力獲取與what I painted類似的東西(超過9000小時)。Windows通用應用程序 - 顯示來自父級控制的彈出網格

基本上我們的平板電腦的Windows應用程序需要一個控件,當點擊時顯示屏幕上的網格。數據發生和網格準備發生在控件的代碼隱藏中,我不知道如何在我的控制之外繪製網格。如果我可以將它放在父邊界之外,即使是簡單的彈出控件也可以。

+0

Link的死爲 「我塗」 的那一刻,FWIW。 – ruffin

回答

1

你可以使用一個彈出窗口:

<Button Width="100" Height="100" Background="Black"> 
    <Button.Flyout> 
     <Flyout Placement="Bottom"> 
      <Grid Width="200" Height="200"> 
       <StackPanel> 
        <Rectangle Fill="Red" Width="100" Height="100" /> 
        <Rectangle Fill="Green" Width="100" Height="100" /> 
       </StackPanel> 
      </Grid> 
     </Flyout> 
    </Button.Flyout> 
</Button> 

你也可以準備自己的彈出:

How to center a popup in window (Windows store apps)

+0

非常感謝,夥計! – zmaten

相關問題