■ Panel 클래스 : ZIndex 속성 사용하기

----------------------------------------------------------------------------------------------------

<Canvas

    Width="400"

    Height="300">

    <Rectangle

        Width="100"

        Height="100"

        Canvas.ZIndex="3"

        Fill="Blue" />

    <Rectangle

        Width="100"

        Height="100"

        Canvas.Left="80"

        Canvas.Top="80"

        Canvas.ZIndex="2"

        Fill="Red" />

    <Rectangle

        Width="100"

        Height="100"

        Canvas.Left="160"

        Canvas.Top="160"

        Canvas.ZIndex="1"

        Fill="Khaki" />

</Canvas>

----------------------------------------------------------------------------------------------------

※ ZIndex 속성 값이 클수록 전면에 표시된다.

Posted by 사용자 icodebroker

댓글을 달아 주세요