Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Issues with Overview Window (Read 3805 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Issues with Overview Window
Jan 6th, 2010 at 10:17am
Print Post  
Hi Stoyan,

We are getting two issues with Overview Window.

1). When FitAll = true, everything works fine but if we set FitAll = false and scroll mouse over the window, Zooming operation is performed over the window. Is there any way to restrict zooming when FitAll = false?

2). We want to change overview window's Gray color. How can we do this?

Please suggest.


Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issues with Overview Window
Reply #1 - Jan 6th, 2010 at 2:21pm
Print Post  
Hi Anshul,

1. Handle Overview.PreviewMouseWheel and set e.Handled = true;
2. Set ovw.DimBrush = Brushes.Transparent;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Issues with Overview Window
Reply #2 - Jan 7th, 2010 at 6:10am
Print Post  
Thanks Stoyan,

Both issues have been solved.
We have one more issue. Overview window size is increasing /decreasing with respect to diagram size. Can we make it fixed size (irrespective of diagram size)?

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issues with Overview Window
Reply #3 - Jan 7th, 2010 at 8:42am
Print Post  
The overview's Measure override returns the diagram size multiplied by the overview's scale. I think WPF should honor your preferred size if you set fixed overview.Width and Height values.

Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Issues with Overview Window
Reply #4 - Jan 8th, 2010 at 1:34pm
Print Post  
Hi Stoyan,

We will try this out.

We had reported an issue regarding "scroll mouse over the window, Zooming operation is performed" and you had provided solution for this like
Code
Select All
1. Handle Overview.PreviewMouseWheel and set e.Handled = true;  



This has solved our issue but we want to stop only zooming not scrolling. Now I am not able to scroll over the overview window.

Please suggest for this.

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issues with Overview Window
Reply #5 - Jan 8th, 2010 at 1:52pm
Print Post  
Hi Anshul,

You could call scrollviewer.ScrollToVerticalOffset(scrollviewer.VerticalOffset + e.Delta) to scroll from that handler.

Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Issues with Overview Window
Reply #6 - Jan 19th, 2010 at 8:25am
Print Post  
Hi Stoyan,

I have tried this but by this scrolling is working for diagram not for overview window.

When my mouse is over the OverviewWindow and I try to scroll, scroll viewer of diagram get scroll. I want OverviewWindow's scroll bar to work.


Regards,
Anshul
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Issues with Overview Window
Reply #7 - Jan 22nd, 2010 at 12:21pm
Print Post  
Hi Stoyan,

Any update on this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issues with Overview Window
Reply #8 - Jan 22nd, 2010 at 1:14pm
Print Post  
Hi Anshul,

Set

var scrollviewer = overview.Content as ScrollViewer;

before calling

scrollviewer.ScrollToVerticalOffset(...);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint