ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Writing WPF styles?

(1/2) > >>

Tuxman:
For some retro project I'm considering to develop, I could really need some Windows 3.x WPF style. Are there any? If not, how can I actually create them?

I never did that before.

wraith808:
Well, to use a windows 3.1 style, you're probably going to have to supply artwork, either from someone drawing it, or finding a picture of a window that approximates what you want, and chopping it up in to the resources.  There might be a pack of images out there for it, but that would require some research to find.

As far as how to do it, there are a lot of tutorials out there.  Here are two.

http://www.codeproject.com/Articles/895945/Styles-in-WPF

http://wpftutorial.net/Styles.html

http://www.wpf-tutorial.com/styles/using-styles/

Tuxman:
I thought I'd crowdsource the research, not having found any on my own.  :D

Thanks. Meh, I was hoping WPF would allow me to just apply some CSS-like styling ...

wraith808:
I thought I'd crowdsource the research, not having found any on my own.  :D

Thanks. Meh, I was hoping WPF would allow me to just apply some CSS-like styling ...
-Tuxman (September 05, 2015, 09:36 PM)
--- End quote ---

It does.  But quite similar to CSS, you have to have the resources if you want to get crazy with it or use something that's not intrinsic to the page.

Tuxman:
CSS is a part of my job, I could perfectly live with that.  8)

Why would I need graphics when that XML-thingy just allows me to apply styles at all?

Navigation

[0] Message Index

[#] Next page

Go to full version