grouping objects into layers
Is it possible to group objects (a bit like layers) as will like to turn certain parts of and on?
for example
<layers text>
<......some text>
</layers text>
<layers pictures>
<........some pictures.jpg>
</layers pictures>
Regards
Richard
[372 byte] By [
rgny] at [2007-12-31]
Hi Richard,
WPF/E does not technically support three dimensions (a.k.a a z-index) however, you can simulate it. Essentially, each sequential element is placed on top of the preceding element. Because of this, in general I think of each element as it's own layer. This isn't technically correct, it's just a visual. You can actually see this layering effect within the latest sample on my blog (http://cornucopia30.blogspot.com).
Because of this, you could "group" objects into several "Canvas" elements and set the "Opacity" value of the Canvas to "0" if you did not want to display it. Conversely, if you wanted to display a Canvas, you simply set the "Opacity" to "1".
If this answers your question, please select "Mark as Answer", otherwise, please post a followup question.
Thanks,
Chad Campbell
Chad
Thanks, very helpful, almost there. I am used to SVG which is similar in the way it is drawn.
How do you id the group, ive googled it and cannot find, would it be for example
<Canvas......>
<Canvas x:Name="mypictures">
.......
</Canvas>
</Canvas>
then I presume you turn opacity of "mypictures" to 0 or 1
Richard