Hack Forums
[.NET] [Open Source] WPF Modern Flat Theme - Beta - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [Open Source] WPF Modern Flat Theme - Beta (/showthread.php?tid=4920850)



[Open Source] WPF Modern Flat Theme - Beta - SIM-1725686 - Jul 24, 2015

Hi, everyone. I was getting bored a few days ago, and decided to make this little project. Basically, it's a WPF theme that lets you create modern-looking programs with no hassle whatsoever. You can't resize the windows right now, but if enough people like it that I can further this project, that will be the first change I implement.

It's open source: https://github.com/UniversalFuture/wpf-modern-flat

So feel free to contribute if you want.

There are some cool things this theme includes that you might consider making use of:
  • Cool buttons, woohoo!

  • Colors from Flat UI

  • Flat textboxes and tabitems support LeftContent and RightContent, which allows you to easily add additional functionality to your controls without stressing over extra code

  • It's customizable, so you can easily change what you don't like

  • Buttons and textboxes have a Bootstrap-like type attribute, which enables them to be quickly and consistently colored




Here are some screenshots:
Spoiler (Click to View)

Usage (IMPORTANT):
When you want to use this theme, you should reference Global.xaml within your window, and bind your window's Style property to FlatWindowStyle. I know, it's a bit tedious to manually set the window's style, but whatever. We can fix that later if it's too hard. Your window should be a WpfModernFlat.Controls.FlatWindow, of course. If you use the FlatWindow without the style, you'll end up with a window with a black pit where there should be controls.

Anyways, feel free to use it in your projects, or to modify it. I would certainly appreciate any feedback, as I will probably use and expand it in the future, and I want it to become the best it possibly can be. Thanks in advance.


* - NETExplorer - Jul 24, 2015

Nice theme, too bad I only know of 2 people in this section that actually use WPF
1 of which is no longer with us


* - SIM-1847363 - Jul 24, 2015

Looks nice, wouldn't be hard to replicated it in GDI. Overall looks nice might want to fix yo button tho.
Spoiler (Click to View)


* - ninen2001 - Jul 25, 2015

Pretty cool! Good job. Maybe not my style but still pretty cool in general.


* - Rhez - Jul 25, 2015

Nice try bro. Its good to see someone is having a good time with WPF.
Keep it up !


* - SIM-1725686 - Jul 25, 2015

(Jul 25, 2015 05:58 AM)Rhez Wrote:  Nice try bro. Its good to see someone is having a good time with WPF.
Keep it up !

(Jul 24, 2015 09:06 PM)Positron Software Wrote:  Nice theme, too bad I only know of 2 people in this section that actually use WPF
1 of which is no longer with us

(Jul 25, 2015 12:10 AM)ninen2001 Wrote:  Pretty cool! Good job. Maybe not my style but still pretty cool in general.

Thanks, guys.

(Jul 24, 2015 11:02 PM)Nettro Wrote:  Looks nice, wouldn't be hard to replicated it in GDI. Overall looks nice might want to fix yo button tho.
Spoiler (Click to View)

Thank you, and yeah, I honestly have no idea how to fix that. I'm thinking to add another Trigger to expand the color margin within the border to hide the clipping.


* - en3rgizz - Aug 3, 2015

Thank you for the theme,This theme is really beautiful


* - tweety - Aug 3, 2015

Nice to see some WPF around here, nice work OP.


* - Vaxorr - Aug 3, 2015

This is sexy af OP, nice job. Will definitely use it in the future.