简体   繁体   中英

Toolbox design in MVVM application

I need to design a toolbox menu on top of my application that is shown below. Only one tool can be selected at any time so it is like radiobuttons.

What would be the most sensible way to implement this feature in an MVVM application?

在此处输入图片说明

I'd suggest using ToggleButtons for this (or rather Radio Buttons styled as ToggleButtons). You can find out how to do this on this SO question (second answer, not the accepted one).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM