in

WPF Design and Development

IdentityMine Team Blogs

Sajiv Thomas

WPF DataBinding, 3D, Graphics, Controls, Silverlight

Blendables EvalBinding: Trigger without a Trigger

After going through the whitepaper for Blendables, I discovered a way to implement a trigger without using the conventional WPF trigger. Confused? Check out the markup below:

<Grid>

<Rectangle Grid.Row="2" RadiusX="2" RadiusY="2" Height="100" Width="200" Stroke="Black" Fill="Olive"

Opacity="{blendables:EvalBinding [{Self}.IsMouseOver] ? 1 : 0.7}"/>
</Grid>

 EvalBinding adds a lot of power to WPF databinding. Keep up the good work Jonathan!!

Here is a sample.

Note: You need to download and install Blendables for this sample to work.

Published Jan 18 2008, 02:53 AM by Sajiv
Filed under:

Comments

No Comments
© 2007 IdentityMine, Inc.
Powered by Community Server (Commercial Edition), by Telligent Systems