P
P
Pixilys2021-07-12 18:33:15
WPF
Pixilys, 2021-07-12 18:33:15

Why do they write a self-made "MenuItem" class, and do not use the built-in WPF one?

I was looking for an example of creating a dynamic menu in the WPF MVVM bundle.
Most of the implementations, in the task of building a menu in the examples, are
based on writing their own class "MenuItem"
in different variations, but the essence is the same.
Why doesn't inheritance from the built-in class apply? or creation directly.
What is the secret meaning?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-07-12
@Pixilys

My IMHO, but look for the answer in mvvm, the basic one simply does not support bindings and it is easier for the programmer to write YaLustItem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question