Aesthetics is one of WPF's strength against WinForms and as such I wish to know some tricks and tips on beautifying a form/control such as putting a gradient, skinning, etc...
Care to share some?
Regards,
™
As a gesture of gratitude please consider rating helpful posts. c",)
Re: WPF tips and tricks on beautifying a form/control
It's important to note that a Form control is just like any other element in WPF, and as such the only limits the style you create is your imagination(Well, not really - but you know what I mean).
I find it important to not overstyle everything. Even though it's cool that you can do all this new stuff, you should be careful that you're still ending up with an interface that is somewhat recognizable to the user - something they're used to.
My advice is; don't use the new aesthetic features just because you can, do it in a way that fits into context, and that benefits the user of your application.
PS: I might've misunderstood your question. If you wish to learn how to apply styles to UI elements there are loads of tutorials about it on the web .
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Re: WPF tips and tricks on beautifying a form/control
Unfortunatly styling is an art so you have to just try things and see how they flow. The videos in my sig have different individual concepts like mirroring and changing colors in listboxes but you will have to put all these together in a tasteful manner which can be hard to do.
Re: WPF tips and tricks on beautifying a form/control
Also, look into Expression Blend. It is a visual tool that lets you apply nice styles to things. A lot of the time I use it to generate the XAML then I modify the xaml a little bit to tweak it.
Re: WPF tips and tricks on beautifying a form/control
Originally Posted by DeanMc
No, you would have to rewrite the controls styles, chris has had a lot of experience with styles so he should be able to help you out!
I wouldnt say A LOT of experience with styles :P but I've played with them a little yeah. I'm sure it was you that showed me how to do the corner rounding thing anyway lol
Like Negative0 said, Expression Blend is the easiest and fastest way to make nice looking UIs and thats what I used for rounding corners but that was just a rectangle I was rounding, I dont think the same method works for textboxes. I was setting the RadiusX and RadiusY properties but it seems textboxs dont have these properties.
There do seem to be various ways to do this though, such as: http://chriscavanagh.wordpress.com/2...-for-anything/
and http://wpfblog.info/2008/05/26/how-to-round-a-textbox/
Re: WPF tips and tricks on beautifying a form/control
I've done a lot of styling with XAML as well... I can post some screenshots for you tommorow when I meet at work.
Personally I don't like Blend. It's just like any other wysiwyg editor, though it might look good, the markup isn't exactly clean. I prefer writing it myself, and once you get the hang of it - it doesn't take that long.
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Re: WPF tips and tricks on beautifying a form/control
The main thing I find Blend useful for is creating things like gradients or animations as they are both a bit of a pain in the ass through manual XAML code
Re: WPF tips and tricks on beautifying a form/control
Originally Posted by chris128
The main thing I find Blend useful for is creating things like gradients or animations as they are both a bit of a pain in the ass through manual XAML code
I disagree .
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
It's pretty obvious? I can see from your start- and endpoint you're making a top-down one. If you'd want to add a black middle segment you'd just add another gradientstop to the collection:
Re: WPF tips and tricks on beautifying a form/control
After some busy months I may be able to give time to this endeavour again. Now, I just wish to ask how could I round those textboxes and flatten the buttons?
I looked at the links but I am not sure where to place those snippets.
TIA
Regards,
™
As a gesture of gratitude please consider rating helpful posts. c",)
Re: WPF tips and tricks on beautifying a form/control
After some searching I made some progress but it is not yet perfect, I am just showing the screenshot to get some feedbacks.
The things I need to do is to beautify the groupbox, make the combobox look like the buttons, round out the listbox and some other things you suggest I should change.
Here is the code that I used to design the buttons and also used with the combobox, problem is the dropdown button arrow is not show, how do I make it show?
Re: WPF tips and tricks on beautifying a form/control
I like it so far, clean yet modern, I wouldn't do to much for to it bar the small changes you have listed, other than that very professional and a fine example of restrained with WPF.
Re: WPF tips and tricks on beautifying a form/control
Actually it is just a single window so there is no further screenshot. I may change the Help About which uses a messagebox and to improve the messagebox by using a custom one.
Regards,
™
As a gesture of gratitude please consider rating helpful posts. c",)