wpf - Changing Context Menu's width results in poor rendering -


What I wanted to do was with ContextMenu on a button Is the width with the width of the button Obviously that's too much if you open ContextMenu and then decrease the size of the button and open it again, OK ( width gets smaller) If you increase width (for example 100 to 200) then ContextMenu 's width also increases (200) but this only changed the previous width (100) to its code in its code, instead used realwid lake Do not assume, however, seem fine, bad rendering the context menu.

The width of the context menu appears in the text field of the context item, which is the longest text field.

If you add one of the text fields of the reference item, this broadens both the reference item and the entire context menu.

Everything is fine then.

Hope it helps.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -