I made Webbrowser. but.

Apr 20, 2009 at 10:20 AM

Hi!

I made Webbrowser using Multitouch.Framework.WPF.dll
It works
but It didn't work by multi-touch.
I can't move, I can't size up..

please tell me what is the problem.
thanks in advance. :)


below is my source.

Windows1.xaml
-----
<mt:Window x:Class="WEB.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mt="http://schemas.multitouch.com/Multitouch/2008/04"
    Title="Window1" Height="768" Width="1024">
    <Grid>
        <mt:TouchablePanel>
            <WebBrowser Height="768" Width="1024" Name="bro"/>
        </mt:TouchablePanel>
    </Grid>
</mt:Window>


Window1.xaml.cs
----
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WEB
{
    public partial class Window1 : Multitouch.Framework.WPF.Controls.Window
    {
        public Window1()
        {
            InitializeComponent();
            bro.Navigate(new Uri("http://www.google.com"));
        }
    }
}

Coordinator
Apr 20, 2009 at 12:15 PM
WebBrowser class is a wrapper around COM. It is managed and rendered by COM not WPF. That means you can't apply any WPF transformations to it. This is limitation of WebBrowser class.
Dec 7, 2009 at 2:54 PM
Edited Dec 7, 2009 at 3:01 PM

There's a real WPF WebBrowser control on codeplex here:

http://wpfchromium.codeplex.com

You can do really nice stuff with it. Just to let you know, it uses Google Chrome's codebase.