MPIon
Well-known member
I am learning WPF for a c# home project (Desktop not Web) and have a basic book on WPF, but it is missing some fundamental points that I can't find answers to.
As I understand it, the XMAL is for the front end forms with code in the back end (in my case c# - all developed in Visual Studio 2022).
Now, suppose I want 100 picture boxes on my form, I don't want to name them PictureBox1, PictureBox2 etc., I want them in an array of picture boxes, which I can easily do in the c# code.
Unless I am missing something, this can't be done in the XMAL. So, now I have some form controls created in the XMAL and some in the c# code (which also means the XMAL is intimately tied to the back end - it won't just plug in to any back end code (Java, VB etc) without code behind for each).
So, how do you decide whether to create the controls in XMAL or in the back end? Why not create all the controls in the back end and not use the XMAL at all?
Also, as I understand it, XMAL creates the controls using Vector graphics rather then Raster graphic as in WinForms, but are the controls created in the code behind also created with Vector graphics?
Basic questions I know, but necessary to understand.
As I understand it, the XMAL is for the front end forms with code in the back end (in my case c# - all developed in Visual Studio 2022).
Now, suppose I want 100 picture boxes on my form, I don't want to name them PictureBox1, PictureBox2 etc., I want them in an array of picture boxes, which I can easily do in the c# code.
Unless I am missing something, this can't be done in the XMAL. So, now I have some form controls created in the XMAL and some in the c# code (which also means the XMAL is intimately tied to the back end - it won't just plug in to any back end code (Java, VB etc) without code behind for each).
So, how do you decide whether to create the controls in XMAL or in the back end? Why not create all the controls in the back end and not use the XMAL at all?
Also, as I understand it, XMAL creates the controls using Vector graphics rather then Raster graphic as in WinForms, but are the controls created in the code behind also created with Vector graphics?
Basic questions I know, but necessary to understand.