Using a Behavior to magnify your WPF applications

At MIX 2009, the Expression Blend team cam up with a new concept called Behaviors. In fact, the only thing new is the way that the Behaviors are packed. WPF developers have been doing what we called "Attached Behaviors" for quite some time already: see this thread (dated July 2008) to read a discussion around this topic at the WPF Disciples group.

Read the rest of this entry ยป

Print | posted on Sunday, April 5, 2009 12:32 AM

Feedback

# re: Using a Behavior to magnify your WPF applications

left by kdawg at 4/5/2009 4:25 PM Gravatar
This is WHY you are The Bomb!!!!

Simply amazing where you have taken the platform.

Best to you always,

kdawg

# re: Using a Behavior to magnify your WPF applications

left by aL3891 at 4/5/2009 6:23 PM Gravatar
great stuff :)

# re: Using a Behavior to magnify your WPF applications

left by Stephen Phillips at 6/4/2009 3:42 PM Gravatar
Only thing I keep finding a problem is when open a combobox for example, the popup of combobox items are not zoomed.

# re: Using a Behavior to magnify your WPF applications

left by topitcertification at 7/20/2009 8:51 AM Gravatar
Thanks for sharing!

# re: Using a Behavior to magnify your WPF applications

left by Thierry at 7/22/2009 5:38 AM Gravatar
Great job, but in SL3 it seems that the dependency property of TriggerAction or Behavior are not bindable :-(

# re: Using a Behavior to magnify your WPF applications

left by acarum at 10/20/2009 8:44 AM Gravatar
Is there a workaround for use Adorner layerin Silverlight applications?

# re: Using a Behavior to magnify your WPF applications

left by Laurent at 11/10/2009 11:52 PM Gravatar
Hi,

Sorry for the delay. In the moment, the only workaround I can think of is to place a panel in front of your application (with IsHitTestVisible = false) and draw on that. Unfortunately you will have to figure the coordinates manually.

Cheers,
Laurent

# re: Using a Behavior to magnify your WPF applications

left by vimal at 2/9/2010 5:59 PM Gravatar
Is there any way to limit the magnifier ,say within a border or canvas?

# re: Using a Behavior to magnify your WPF applications

left by Laurent at 2/26/2010 11:42 PM Gravatar
Hi Vimal,

No, the magnifier is always set for the whole window, sorry.

Laurent

# re: Using a Behavior to magnify your WPF applications

left by Bryan at 4/6/2010 7:29 AM Gravatar
Nice behavior but I am getting a build error. With my sample as well as yours I downloaded.

The attachable property 'Behaviors' was not found in type 'Interaction'.

Any ideas what is causing this.

# re: Using a Behavior to magnify your WPF applications

left by Laurent at 4/12/2010 12:50 AM Gravatar
Hi,

This behavior was made with a very old preview version of the Interaction namespace. You need to download the source code and recompile it against the version of System.Windows.Interactivity.dll which comes with the Blend SDK. I will make an update when I have a little more time and post it, but I am not sure when.

Thanks,
Laurent

# re: Using a Behavior to magnify your WPF applications

left by steve frierdich at 11/19/2010 4:23 PM Gravatar
Is there an assembly download for expression 4.0? If so please email me the linke at
steve_44@inbox.com

# re: Using a Behavior to magnify your WPF applications

left by Antoine Jeanrichard at 11/23/2010 9:39 PM Gravatar
Hi Laurent,
Do you have more news about Microsoft planning to merge Blend special functionalities with the .Net Framework? Is it still what they want to do?
I would also prefer rely only on the .Net Framework.
By the way, do you know a place where all these special functionalities of Blend are listed?
Best regards from Yverdon.
Antoine

# re: Using a Behavior to magnify your WPF applications

left by Irving Josué at 6/11/2011 5:40 PM Gravatar
Have a nice day:
The code, it's posible translate to Visual Basic?
The forms, it's posible make the cursor?

# re: Using a Behavior to magnify your WPF applications

left by Bhuvana at 6/23/2011 10:32 PM Gravatar
May I know if this works with Blend 4?
Comments have been closed on this topic.