Will App Performance reduces if we create many user controls ?

guess_me_if_u_can 126 Reputation points
2020-01-16T07:16:34.823+00:00

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,936 Reputation points
    2020-01-16T08:23:40.64+00:00

    Hello,​

    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.

    Thanks

    1 person found this answer helpful.