Will App Performance reduces if we create many user controls ?

guess_me_if_u_can 126 Reputation points

Will App Performance breaks if we create many user controls ( to reduce even small code redundancy in 2 or 3 xaml files) and also when creating many .xaml and .cs files ?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,926 Reputation points


    Welcome to our Microsoft Q&A platform!

    Creating a UserControl is to better achieve the reuse of code and controls, which has significant advantages in code maintenance.

    Application performance does not depend on how many Xaml files you have created, but depends on how many controls are running in the application at the same time. So creating some UserControl files has no direct impact on application performance.


    1 person found this answer helpful.