WPF forms - mixing XAMl abd X# code
Posted: Wed Mar 29, 2017 5:14 pm
Hi Nick, and all other guys,
Following recent discussions in other parts of this Forum is would like to clarify and cross-check a few things with you Nick.
Although it is many years since I did my WPF session in DevShare on a code only basis, I seem to remember that both XAML and code can be used on the same form - is that right ?
I will do a test in a short while - BUT - for now lets say (ask you) that the 'mark-up' part of XAML just sets out in a once-off static way the details of the form surface.
Once the form exists then as application code runs the form can be changed in any/many way(s).
We all know that no runtime logic can be included in the XAML, since it is 'mark-up'.
The code that Wolfgang so helpfully showed us can be done possibly more easily in XAML - but, I do realise that he does a lot more.
My question to you Nick, is can he do both - and initial Mark-Up and then some runtime code.
I feel some fun testing coming on.
Do you think that readers of this Forum realise that when creating a new WPF form that experienced guys may do much more with typing script that the interactive designer and toolbox?
Please send us your ideas and opinions.
Regards,
Phil.
Wales, UK.
Following recent discussions in other parts of this Forum is would like to clarify and cross-check a few things with you Nick.
Although it is many years since I did my WPF session in DevShare on a code only basis, I seem to remember that both XAML and code can be used on the same form - is that right ?
I will do a test in a short while - BUT - for now lets say (ask you) that the 'mark-up' part of XAML just sets out in a once-off static way the details of the form surface.
Once the form exists then as application code runs the form can be changed in any/many way(s).
We all know that no runtime logic can be included in the XAML, since it is 'mark-up'.
The code that Wolfgang so helpfully showed us can be done possibly more easily in XAML - but, I do realise that he does a lot more.
My question to you Nick, is can he do both - and initial Mark-Up and then some runtime code.
I feel some fun testing coming on.
Do you think that readers of this Forum realise that when creating a new WPF form that experienced guys may do much more with typing script that the interactive designer and toolbox?
Please send us your ideas and opinions.
Regards,
Phil.
Wales, UK.