c# - Working with GridView -


is there way add groups gridview in xaml this:

<gridview x:name="gridview" selectionmode="none">         <groupitem x:name="group1">          </groupitem>     </gridview> 

and add items this:

group1.items.add(uielement)? 

you can add multiple stackpanels in grid.

 <gridview x:name="gridview" selectionmode="none">         <stackpanel margin="5">             <stackpanel name="sc" orientation="horizontal" margin="3,0">                 <textblock text="start time : " style="{staticresource titletextstyle}"></textblock>                 <textblock text="{binding bookedfromdtetme }" textwrapping="wrap" style="{staticresource subtitletextstyle}" margin="4,0,0,0"/>             </stackpanel>              <stackpanel orientation="horizontal" margin="3,0">                 <textblock text="finish time: " style="{staticresource titletextstyle}" ></textblock>                 <textblock text="{binding bookedtodtetme }" textwrapping="wrap" style="{staticresource subtitletextstyle}" margin="4,0,0,0"/>             </stackpanel>              <stackpanel orientation="horizontal" margin="3,0">                 <textblock text="task address : " style="{staticresource titletextstyle}" ></textblock>                 <textblock text="{binding taskaddress}" textwrapping="wrap" style="{staticresource subtitletextstyle}" margin="4,0,0,0"/>             </stackpanel></gridview> 

and add controls dynamically

 button btn = new button() { content = "button" };             btn.width=130;             btn.height = 66;   sc.children.add(btn); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -