Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic XAML, scrollviewer, focus & Mindfusion Diagram (Read 2903 times)
ulthien
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
XAML, scrollviewer, focus & Mindfusion Diagram
Oct 18th, 2012 at 8:38am
Print Post  
Hello Stoyo,

i changed my diagram XAML to include a toolbar, going from approx:

Code
Select All
<usercontrol>
   <scrollviewer>
      <diagram>
 



to

Code
Select All
<usercontrol>
   <scrollviewer>
      <grid>
         <toolbar>
         <diagram  Focusable="False">
 



and there was a problem that on regaining focus (like when clicking another window then the diagram, the scrollviewer would roll down and not show the toolbar atop (simply focusing the diagram)

Then, i found one can skip this behaviour by stating Focusable="False" for the diagram, and the scrollviewer did not jump on reselection of the window...

..but:

i lost the ability to delete nodes in the diagram - the regular behaviour of mindfusion is that a selected node can be deleted with DEL keyboard key, and this one is not working anymore.

====

Any tips?

cheers
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: XAML, scrollviewer, focus & Mindfusion Diagram
Reply #1 - Oct 18th, 2012 at 9:38am
Print Post  
Hi,

Try handling the diagram's RequestBringIntoView event to stop it from reaching the ScrollViewer as explained here:
http://stackoverflow.com/questions/8384237/stop-wpf-scrollviewer-automatically-s...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ulthien
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
Re: XAML, scrollviewer, focus & Mindfusion Diagram
Reply #2 - Oct 18th, 2012 at 11:48am
Print Post  
yes, thank you, it worked perfect Smiley

cheers
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint