How to Call an XAML "Entry" Element from Code?

alaskanroguealaskanrogue USMember ✭✭✭

Most of the XAML form elements I work with have a name attribute which can be used in code to work with the element. What do you do with the Text elements like "Entry", it doesn't have a name attribute?

Best Answer

Answers

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    Yes you can name your Entry control. But the bigger question is "Why is your code behind referencing the GUI at all?" Are you not building your application along proper MVVM pattern? 90%+ of the time code doesn't doesn't anything about the GUI so hearing this automatically sounds alarms in my head.

  • alaskanroguealaskanrogue USMember ✭✭✭

    Umesh, too long of a day. I knew that. Thanks.

    Clint, with a cross-platform world, scaling can't be done in XAML; it only represents a metadata source...

Sign In or Register to comment.