Is there a WPF equivalent for ToolStripButton?

I am learning WPF and trying to create a toolbar. Is there a direct equivalent to WinForms ToolStripButton or is it the right way to use it to add a regular button and format it?

I found that Microsoft has a page listing WinForm controls and their WPF equivalents here , but this does not mention toolstripbutton.

+6
source share
1 answer

You can simply place the buttons inside the ToolBar , and this will change the style of the buttons so that they look like a toolbar.

 <ToolBar> <Button>Save</Button> <Button>Open</Button> </ToolBar> 

It looks like:

enter image description here

If you need images in buttons, you have to do the usual thing to change the contents of a button.

 <Button> <Image Source="..." /> </Button> 
+12
source

Source: https://habr.com/ru/post/907561/


All Articles