I want to group , ungroup canvas user control in wpf application.Though this can be achieved with microsoft visual studio in built function Group and Ungroup which we get from Object and Timeline window.Through ungrouping we are removing unwanted canvas and making only one parent(canvas) to child controls. Phis i need to achieve programmatically.Please suggest how can I achieve this through programmatically though I want to process my xaml file without doing this manual step and handle it through code behind.
Below mentioned is code snippet of xaml data which is not yet grouped and after that grouping.
Code before ungrouping :
Code after Ungrouping and grouping into a canvas, which allow a single parent node to the child.
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
You can use expander control which act as an expand/collapse fuctionality. Use it in a stackpanel so that when you set visiblity to collapsed, it will occupy the blank area.
Amit GuptaPosted Nov 11, 2016, 3:23 AM