Hi,
What exactly is the difference between a global variable and a constant?
what are some best practices for using them?
Thank you,
Hi,
What exactly is the difference between a global variable and a constant?
what are some best practices for using them?
Thank you,
Hi,
Global variable can be accessed from any xaml file in the project and modified the value.
Global constant can be accessed from any xaml file in the project but cannot be modified the value.
The following image will help you.
what are some best practices for using them?
In my opinion, it may be better not to use Global variable unless special reason such as using async form and trigger because of maintainability.
Global constant can be used in case handling value which is not changed.
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.