Overlay Two Controls

I started doing something in WPF and I have a question. I think the answer may be easy and even obvious, but somehow ...

I have two controls in a grid form. I want the two controls to have a second control over the first (it's transparent). Based on the development of WinForms, it’s not so difficult, so it won’t be in WPF. But I do not understand...

Sasha

+5
source share
2 answers

Controls Grid, and Canvaswill do what you want.

Grid , , . , ( ).

- :

<Grid>
    <Rectangle Fill="Blue"/>
    <Ellipse Fill="Red"/>
</Grid>

BTW - XAML , Kaxaml.

+11

, Grid. Z-

  <Grid>
    <c:ControlFirst/>
    <c:ControlSecond/>        
  </Grid>
+5

All Articles