How to Integrate ZoomPanel into ASP.NET App

24 views
Skip to first unread message

wanewhauser2004

unread,
May 4, 2009, 2:39:01 PM5/4/09
to WPF Graphics Site group
Hello,
I have an ASP.NET/AJAX 2.0 app that I would like to add the capability
to preview (pan/zoom) 2D vector graphics in. Is this something that
will work?

Warren

Andrej Benedik

unread,
May 6, 2009, 3:08:52 AM5/6/09
to wpf-gr...@googlegroups.com
Hello,

It is possible to use ZoomPanel inside a WPF Browser application. So with using iframe you can show your application as part of a web page.

To test this copy all the content of the WpfBrowserZoomPanel\bin\Debug (sample that comes with ZoomPanel) into a web site and use the following html (change the url to match yours):

<iframe src="http://localhost/MyWeb/test/WpfBrowserZoomPanel.xbap" width="400" height="175"></iframe>

This code will work in IE and Firefox (did not test other browsers).
It will only work on Windows with .Net 3.0 installed. So Linux and Mac users could not use it.


I am planning to create ZoomPanel control for Silverlight, that will enable its use on all platforms (also Linux and Mac), but because the current implementation is based on some WPF specific code, I will need to almost completely rewrite the code for Silverlight. I cannot say when this will be done.

Andrej

wanewhauser2004

unread,
May 6, 2009, 3:04:33 PM5/6/09
to WPF Graphics Site group
Thank you Andrej. I will try to test it in the next week. warren

On May 6, 2:08 am, Andrej Benedik <abene...@gmail.com> wrote:
> Hello,
>
> It is possible to use ZoomPanel inside a WPF Browser application. So with
> using iframe you can show your application as part of a web page.
>
> To test this copy all the content of the WpfBrowserZoomPanel\bin\Debug
> (sample that comes with ZoomPanel) into a web site and use the following
> html (change the url to match yours):
>
> <iframe src="http://localhost/MyWeb/test/WpfBrowserZoomPanel.xbap"
> width="400" height="175"></iframe>
>
> This code will work in IE and Firefox (did not test other browsers).
> It will only work on Windows with .Net 3.0 installed. So Linux and Mac users
> could not use it.
>
> I am planning to create ZoomPanel control for Silverlight, that will enable
> its use on all platforms (also Linux and Mac), but because the current
> implementation is based on some WPF specific code, I will need to almost
> completely rewrite the code for Silverlight. I cannot say when this will be
> done.
>
> Andrej
>
> On Mon, May 4, 2009 at 8:39 PM, wanewhauser2004
> <wanewhauser2...@yahoo.com>wrote:

wanewhauser2004

unread,
May 6, 2009, 6:27:21 PM5/6/09
to WPF Graphics Site group
Andrej,

Actually, I am not yet that familiar with WPF. Would you be able to
come up with a small ASP.NET sample that uses your ZoomPanel?
Thank you,
Warren

Andrej Benedik

unread,
May 8, 2009, 5:01:50 AM5/8/09
to wpf-gr...@googlegroups.com
Hi Warren,

I am sorry but I really do not have time for a better ASP.NET sample.

As I have already written you need to copy all the content of the WpfBrowserZoomPanel\bin\Debug (sample that comes with ZoomPanel) into your web site (can be localhost).

Than simply create a aspx page that will contain:

<iframe src="http://localhost/MyWeb/test/WpfBrowserZoomPanel.xbap" width="400" height="175"></iframe>

Andrej
Reply all
Reply to author
Forward
0 new messages