wpf controls - How to achieve Grouping and Ungrouping Canvas programmatically In wpf application -


i want group , ungroup canvas user control in wpf application.though can achieved microsoft visual studio in built function group , ungroup object , timeline window.through ungrouping removing unwanted canvas , making 1 parent(canvas) child controls. phis need achieve programmatically.please suggest how can achieve through programmatically though want process xaml file without doing manual step , handle through code behind.

below mentioned code snippet of xaml data not yet grouped , after grouping.

code before ungrouping :

<canvas name="_01" rendertransform="1, 0, 0, 1, 130.919685, -4.32">           <canvas name="_64" rendertransform="-0.999991, 0.004316, -0.004316, -0.999991, 14.637921, 2145.991988">             <path name="_64_g0__mrkrend" visibility="collapsed" rendertransform="3.31258, -1.721798, -1.721798, -3.31258, 5.998991, 1066.51392" strokelinejoin="round" data="m -1 -1 l 0 0 l 1 -1 ">             </path>           </canvas>  </canvas> 

code after ungrouping , grouping canvas, allow single parent node child.

 <canvas name="_01" rendertransform="1, 0, 0, 1, 130.919685, -4.32">             <path x:name="_64_g0__mrkrend" visibility="collapsed" strokelinejoin="round" data="m -1 -1 l 0 0 l 1 -1 " canvas.left="14.637" rendertransformorigin="0.5,0.5" canvas.top="2145.992"/>         </canvas> 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -