❔ XAML Designer WPF
im new to c# and programming. im using visual studio to make wpf program where you guess a number. im using chatgpt to tell me how to do this. it says double click the MainWindow.xaml to open the XAML designer. i did that but i dont think it opened? because theres no toolbox where i can select text box, button, label etc. and those are what i want to create. what do i do?
11 Replies
im using chatgpt to tell me how to do thisYour first mistake Also, don't use the designer Just edit the XAML file and type in your controls $rulesofwpf
right okay so i have to learn to do that i guess
Why do we avoid subclassing default controls?
¯\_(ツ)_/¯
Wasn't me who made this tag
The Associate role
Owns the 'rulesofwpf' tag.
Use tags inline with "$name"
¯\_(ツ)_/¯
Lol
Ask @Insire . But mostly because behaviors are better: composable, doesn't require styling changes, etc.
because no styling library will work with subclassesed controls out of the box
also, subclassed controls do not support sharing their functionality, behaviors and attached properties are the way to go for that
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.