The first application page in the managed area of your game consists of two files, .xaml
with XAML code regarding the user interface and .xaml.cs
(code-behind) with C# code that can be used to interact with the user interface as well as perform any additional operations (for example, getting data from external sources). Thus, in these two files, you can create the user interface and place all logic related to a particular page.
Such a solution can be acceptable for simple projects, but in more complex projects, it can lead to several problems, for example, with maintenance and making further modifications. The situation can be even more complicated, if the project is being created by a team where developers and designers are working together. Let's just think about a scenario when you need to replace the mechanism of getting and updating ranks data, including their source and format. If the whole logic is placed in multiple .xaml.cs
files, then you need to modify all...