All you can do in XAML can also be done in code. XAML is just another way to create and initialize objects. You can use WPF without using XAML. It's up to you if you want to declare it in XAML or write it in code. Declare your UserInterface in XAML has some advantages:
XAML code is short and clear to read
Separation of designer code and logic
Graphical design tools like Expression Blend require XAML as source.
The separation of XAML and UserInterface logic allows it to clearly separate the roles of designer and developer.
Liked By
Write Answer
create wpf application without xaml
Join MindStick Community
You have need login or register for voting of answers or question.
Uttam Misra
03-Oct-2010All you can do in XAML can also be done in code. XAML is just another way to create and initialize objects. You can use WPF without using XAML. It's up to you if you want to declare it in XAML or write it in code. Declare your UserInterface in XAML has some advantages: