Pinch to Zoom

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
HCCKPM
Newbie
Newbie
Posts: 9
Joined: Wed Jul 18, 2018 12:00 am

Pinch to Zoom

Post by HCCKPM » Mon Aug 13, 2018 6:31 am

How to activate Pinch to Zoom in the Teechart WPF

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Pinch to Zoom

Post by Sandra » Mon Aug 13, 2018 11:33 am

Hello,
In TeeChart WPf by default the zoom is active, but to active Zoom or Scroll you must do the same as code below:

Code: Select all

		private void InitializeChart()
		{
			//  tChart1.Dock = DockStyle.Fill;
			tChart1.Aspect.View3D = true;
			//zoom
			tChart1.Zoom.Active = true;
			tChart1.Zoom.Direction = Steema.TeeChart.WPF.ZoomDirections.Both;
			//Scroll
			tChart1.Panning.Active = true;
			tChart1.Panning.Allow = Steema.TeeChart.WPF.ScrollModes.Horizontal;

			Steema.TeeChart.WPF.Styles.Line line1 = new Steema.TeeChart.WPF.Styles.Line(tChart1.Chart);
			line1.FillSampleValues(50);}
Hoping this helps you
Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

HCCKPM
Newbie
Newbie
Posts: 9
Joined: Wed Jul 18, 2018 12:00 am

Re: Pinch to Zoom

Post by HCCKPM » Wed Aug 15, 2018 11:21 am

Hello,
Zoom with the mouse and one finger touch works that way.
Two finger touch does not work like this,
only the first touch point is used as with the mouse, the second touch point has no effect ?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Pinch to Zoom

Post by Christopher » Thu Aug 16, 2018 6:39 am

Hello -

at present TeeChart.WPF.dll only supports zoom with a mouse - for full support of touch-screen environments we offer the TeeChart.UWP.dll.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

HCCKPM
Newbie
Newbie
Posts: 9
Joined: Wed Jul 18, 2018 12:00 am

Re: Pinch to Zoom

Post by HCCKPM » Wed Aug 22, 2018 4:07 am

Hello,
is the TeeChart.UWP.dll completely supported in a WPF desktop application or are there any differences to the WPF dll?
When is it planned to have "pinch to zoom" support in the WPF DLL? We really need this functionality. Our application can be controlled completely by touch so the user will not understand why he can't zoom the way he is used to zoom from his smartphone/tablet.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Pinch to Zoom

Post by Christopher » Fri Aug 24, 2018 1:27 pm

Hello,
HCCKPM wrote:
Wed Aug 22, 2018 4:07 am
is the TeeChart.UWP.dll completely supported in a WPF desktop application or are there any differences to the WPF dll?
I'm afraid it isn't, no.
HCCKPM wrote:
Wed Aug 22, 2018 4:07 am
When is it planned to have "pinch to zoom" support in the WPF DLL? We really need this functionality. Our application can be controlled completely by touch so the user will not understand why he can't zoom the way he is used to zoom from his smartphone/tablet.
I have added this issue to our issue-tracker with id=2080. We are presently making plans to implement this feature before the middle of the last quarter of this year, at the latest.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Pinch to Zoom

Post by Christopher » Thu Oct 11, 2018 11:07 am

Christopher wrote:
Fri Aug 24, 2018 1:27 pm
I have added this issue to our issue-tracker with id=2080. We are presently making plans to implement this feature before the middle of the last quarter of this year, at the latest.
This issue has now been fixed and the fix can be downloaded from the latest TeeChart build on Nuget here.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

HCCKPM
Newbie
Newbie
Posts: 9
Joined: Wed Jul 18, 2018 12:00 am

Re: Pinch to Zoom

Post by HCCKPM » Tue May 05, 2020 5:01 am

Hello & Good Morning,

we still have problems on activating "Pinch to Zoom" in the WPF version of TeeChart.
Can you explain how to activate?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Pinch to Zoom

Post by Christopher » Thu May 07, 2020 3:23 pm

HCCKPM wrote:
Tue May 05, 2020 5:01 am
we still have problems on activating "Pinch to Zoom" in the WPF version of TeeChart.
Can you explain how to activate?
What problems are you experiencing?

If I remember correctly the tests we made back in 2018 using a touch screen (not a tablet or phone), activation happened automatically. I have a gif I made from that time:
Image

Unfortunately, due to Covid-19, I do not have access to the touch screen so I cannot run tests again to give you the code which I used to create the gif above.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

HCCKPM
Newbie
Newbie
Posts: 9
Joined: Wed Jul 18, 2018 12:00 am

Re: Pinch to Zoom

Post by HCCKPM » Tue Jul 14, 2020 4:31 am

Hello,

sorry for my late response, didn't get a notification that you replied.
We are using your latest DLL and still can't pinch to zoom like used to do a zoom on an iPhone or any other touch device. We only can zoom like we are used to do by mouse.
Therefore an example would be great.

BR
Jochen

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Pinch to Zoom

Post by Christopher » Wed Jul 15, 2020 7:38 am

Hello Jochen,

I will get an example to you as soon as I can, but please be aware that I still don't have access to the touch screen which is necessary for me to get the example together for you.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

HCCKPM_2020
Newbie
Newbie
Posts: 25
Joined: Wed Jul 01, 2020 12:00 am

Re: Pinch to Zoom

Post by HCCKPM_2020 » Thu Aug 06, 2020 1:14 pm

Hello Christopher,

were you able to test the pinch to zoom functionality yet?

BR
Jochen
Best regards,

HCC/KPM

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Pinch to Zoom

Post by Christopher » Thu Aug 06, 2020 2:21 pm

Hello Jochen,

Code: Select all

were you able to test the pinch to zoom functionality yet?
I'm really sorry, but I've been working from home for the last 150 days and still haven't been to the office. Next week I will try to hook up with a colleague who lives close to it and will ask him to find the screen for me. Apologies again.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Pinch to Zoom

Post by Christopher » Tue Aug 11, 2020 1:40 pm

Hello Jochen,

I now have a touch-screen and have been making tests - unfortunately without resolving your issue at the moment. What is curious to me is that I can't even get a simple example from the Microsoft documentation to work, concretely this one:

https://docs.microsoft.com/en-us/dotnet ... pplication

I suspect that it is my hardware/software configuration that is impeding the correct functioning of this demo, but before I make changes I wonder if you would be so kind as to run the above example at your end and tell me whether it works as expected for you or not. If you were to confirm the correct functioning of this demo I will take the necessary steps at my end.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

HCCKPM_2020
Newbie
Newbie
Posts: 25
Joined: Wed Jul 01, 2020 12:00 am

Re: Pinch to Zoom

Post by HCCKPM_2020 » Mon Aug 17, 2020 9:44 am

Hi Christopher,

I am able to run the example.
It works fine.
I can zoom, rotate and move the rectangle.
Does your touch display react anyhow?
Best regards,

HCC/KPM

Post Reply