xaml - WPF Usercontrol with content presenter for a group of buttons -
i'm trying figure out how create user control act modal group of togglebuttons. don't want go radio button route because user has able deselect everything. need list support vertical , horizontal presentation. i'd have control looks in xaml. <mycontrol> <grid> <grid.columndefinitions>...</grid.columndefinitions> <togglebutton /> <togglebutton /> <togglebutton /> ... <togglebutton /> </grid> </mycontrol> i think grid may not correct layout option here since don't know how many buttons i'll have. you handle routed checked event according following sample code. xaml: <grid togglebutton.checked="grid_checked"> <grid.columndefinitions> <columndefinition /> <columndefinition /> <columndefinition /> </grid.columndefinitions> <togglebutton content=...