c# - Grid related UI design question -


grid related ui design question

i want 16-grid (4 rows , 4 columns) user interface, , fill grid round shapes. want use mouseover, mouse left button down, , mouse left button events set state of grids selected or not selected.

my questions: 1. how fill grid round shapes? setcolumn , setrow? 2. how make grids respond mouse please?

thanks

   <grid.columndefinitions>         <columndefinition />         <columndefinition />         <columndefinition />         <columndefinition />     </grid.columndefinitions>     <grid.rowdefinitions>         <rowdefinition />         <rowdefinition />         <rowdefinition />         <rowdefinition />     </grid.rowdefinitions> 

i'd suggest initialize grid in code instead of xaml. since need pretty repetitive stuff (4×4 shapes, each 1 hooked same event handlers) don't want in xaml.

you can use grid.setrow , grid.setcolumn position controls create.

you can use mouseenter , mouseleave events hover effects (or create triggers based on that).


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -