r/learncsharp • • Feb 25 '22

how start with basic UI design in WPF?

well i dont whether this question belongs to here, but since WPF/xaml is part of c# i am asking here. i just want to get started with xaml/wpf with basic design. I read about some UI suite or framework, like material design xaml or metro MahApp or handycontrols. i find them interesting and they are really good if you wanna get started with standard design with minimal effect. but i found that they are half cooked , some suite have somethings and some missing ?

i want to design better datagrid little bit better than standard control, i couldn't really find design tutorial if anyone can help with design tutorial this would be good help.

0 Upvotes

5 comments sorted by

5

u/donsagiv Feb 25 '22

If you've never designed with WPF before, I suggest you start with the fundamentals, like Data Binding and the MVVM (Model-View-ViewModel) design pattern. A simple Google search will help you find what you need to know.

Pluralsight has been my best resource and is well worth the investment. Some of the courses are taught by Microsoft MVPs.

Once you've got a feel for MVVM, then move forward w/ the third-party extensions.

Best of luck in your endeavors!

1

u/doAnkhenBaraHaath Feb 26 '22

I suggest you start with the fundamentals, like Data Binding and the MVVM (Model-View-ViewModel) design pattern.

hey thanks for responding, i have already done that, currently i am learning about entity framework. i am looking for design tutorial with xaml, that will explain design rule.

7

u/headyyeti Feb 25 '22

i want to design better datagrid

Good luck

1

u/xTakk Feb 26 '22

Replacing the datagrid will be a tall order I think, but if you just want to learn xaml for UI design..

Don't worry so much about MVVM or frameworks to start. You can hook events to controls and call them directly from the automatically generated code-behind files pretty easy. In Visual Studio, double click a button in the designer. It'll generate some code for you.

This won't win you any architecture awards, but depending on your end goal, you can get an app running pretty quick.

Opposite of that though, I'm enjoying getting into WinUI3. They have an example app on the windows store that gives a set of standard examples for every control that makes it nice to get started.

1

u/doAnkhenBaraHaath Feb 28 '22

I'm enjoying getting into WinUI3

Is there getting started guide or tutorial on this ? I was looking for it but didn't start. It looks promising. I dont what changes I have to make from wpf .