> > >
BringToFrontBehavior
Express yourself! Share your work with other members of the Expression Community.

Each contribution is licensed to you under a License Agreement by its owner, not Microsoft. Microsoft does not guarantee the contribution or purport to grant rights to it.

BringToFrontBehavior

Average Rating:  (6)
Description
Discussions (2)

  • MouseEnter
    5 Posts | Last Post April 02, 2012
    • Hi Jocelyn,
      Your Behavior is excellent and just what I've been looking for thanks.
      
      Can it be easily adapted to make it react to onmouseenter?
      I have expanding charts in a dashboard that I need to set the Zindex on when I hover over the chart.
      
      Thanks
      Rob
    • Hi Rob, it should work if you download the behavior code and just edit the child.AddHandler... line and and replace it with the MouseEnter event (i believe it is called :)) 
      
      Glad it could help! let me know if it works out for you.
    • Works perfectly!
      Many thanks Jocelyn.
      
      Rob
    • Hello,
      
      I'm working in the WPF environment. Can this work there as opposed to Silverlight. Because I can't get it to load into my references.
    • Can this be written to work for WPF?
  • Working with LeftMouseDown
    2 Posts | Last Post November 08, 2009
    • Hello,
      I tried to modify the code and bringing to front on left mouse down but nothing happens.
      Am I wrong?
      
      Thank you!
      
    • Hi AndreaPi,
      
      You should be able to do so by modifying the code below in  BringToFrontBehavior.cs
      
              void AssociatedObject_Loaded(object sender, RoutedEventArgs e)
              {
                  foreach (var child in AssociatedObject.Children)
                  {
                      child.MouseLeftButtonDown  = new MouseButtonEventHandler(child_MouseLeftButtonUp);
                  }
              }
      
      You'll notice that i hooked the handler to each child's MouseLeftButtonDown instead up.

Details

Rate it:
 
 
 
 
 
  • Share It:
    E-mail Twitter del.icio.us Digg Facebook
  • Add To Favorites
  • Published: 10/19/2009
  • Tags: Behavior
  • License Information:
    This contribution is licensed to you under Creative Commons by its owner, not Microsoft. Microsoft does not guarantee the contribution or purport to grant rights to it.