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
Post a Comment