In my projects I have a lot of UserControls with other controls, most of them are forced to visual model, although many The times I access them directly from the code-behind to add special functionality directly or sometimes save only the view modal.
If I do this, then I do this always through the member variable of control.
Is this a mistake? There is no reason to do this but to go the path on FindName? I must keep in mind that it is absolutely certain that any designer will never "optimize" these applications.
If you mean you can use the control through the name defined in XAML:
& lt; Text Box Name = "Some Name" ... /> Then there is the right way to go about it.
Comments
Post a Comment