Aug
14
Category: WPF
Posted by: Martin Rauscher
This shouldn't be to hard for anyone with basic WPF knowledge, but it's quite nice, so I thought I'd share it.

Mind that this style uses BitmapEffects which are depreciated from .NET 3.5 SP1 on. But there is no OuterGlowEffect at the moment, and it shouldn't really hurt performance, unless you can click REALLY fast ;)

Update:
Well, there is no OuterGlowEffect but you can achieve the same result with a DropShadowEffect if you change the angle... *ups* :)

Glow TextBox

» Read More

Aug
13
Category: WPF
Posted by: Martin Rauscher
I'm starting forthright with something that is generally considered impossible: Using DataBinding in a ConverterParameter.

Those of you who are relatively new to WPF might ask why somebody wanted to do this.
Well I'm quite new to WPF myself, so i can't say if this is best practice, but with Converters you can simply do EVERYTHING! Many things that would be quite hard or even impossible in XAML can be done quite easily with Converters. You will find a nice example in my post about WPFTriangelo.

Marlon Grech, a WPF Disclipe, already wrote a post on this topic and eventually found a solution to this quite hard problem.

But his solution uses reflection...

But I found another way... without reflection!

Update: I formatted the code nicer. I hope you didn't see it while it was totally messed up

» Read More