Answer the question
In order to leave comments, you need to log in
How can I fix the problem with inherited User Controlers?
Good afternoon!
I have a problem editing the User Control. That is, I can't edit
the controls on the inherited User Control. I changed the control access modifiers from
Private to Public, and rebuilt the solution, but the result is missing
. properties are open), but after construction, everything returns to its previous state.
PS
Also, is it possible to create an abstract User Control and create its descendants? I know that an abstract class does not support
instances, but maybe there is some workaround? I have already seen an example of such an implementation on one site, but it doesn’t work for me.
Thank you!
Answer the question
In order to leave comments, you need to log in
in order to edit the properties of a control in the code, it is enough to display their properties in the control
. Here is an example
, but if you want to use properties in XAML,
I advise you to read about the dependency property ,
for example , here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question