잠토의 잠망경

control간 순서 정하기 본문

공부/WPF

control간 순서 정하기

잠수함토끼 2015. 3. 24. 22:47
control 간 우선 순위 정하는 방법





<Window x :Class="WpfApplication28.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height ="350" Width="525">

    <Grid >
       
        <Grid>
            <Button Width ="75" Height="23" Margin="0,0" HorizontalAlignment ="Left" VerticalAlignment="Top"> Button1</ Button>
            <Button Width ="75" Height="23" Margin="15,15" HorizontalAlignment="Left" VerticalAlignment="Top">Button2 </Button>
            <Button Width ="75" Height="23" Margin="30,30" HorizontalAlignment="Left" VerticalAlignment="Top">Button3 </Button>
           
           
        </Grid>
       
       
        <Grid Margin ="0,116,0,0">


            <Button Width ="75" Height="23" Margin="0,0" Panel.ZIndex ="3" HorizontalAlignment="Left" VerticalAlignment="Top">Button1 </Button>
            <Button Width ="75" Height="23" Margin="15,15" Panel.ZIndex ="2" HorizontalAlignment="Left" VerticalAlignment="Top">Button2 </Button>
            <Button Width ="75" Height="23" Margin="30,30" Panel.ZIndex ="1" HorizontalAlignment="Left" VerticalAlignment="Top">Button3 </Button>


        </Grid>
       
       
    </Grid >
   
       
</Window>



Comments