Tech Off Post

Single Post Permalink

View Thread: Why can't MS create a new browser based on .Net?
  • User profile image

    stevo_ said:

    I wouldn't get to excited, I don't think its going anywhere.. theres just a lot of work that needs to go into a browser.. writing one in .net would be interesting from an extensibility point (perhaps, but still less so interesting than extensions in say firefox- which are much more approachable).

    But I don't really see otherwise why..

    Paste the following into XAMLpad:

        Title="Window1" Height="300" Width="300">
            <Rectangle Width="40" Height="40" Fill="Beige" HorizontalAlignment="left"/>
            <WebBrowser  Margin="15" Source="" />
            <Rectangle Width="40" Height="40" Fill="AliceBlue" VerticalAlignment="top"/>
            <Menu VerticalAlignment="Top">
                <MenuItem Header="_File">
                    <MenuItem Header="_New"/>
                    <MenuItem Header="_Open"/>
                    <MenuItem Header="Close"/>
            <Label VerticalAlignment="Center" HorizontalAlignment="Center">This Text should should appear over the top of everything</Label>


    Notice how the webbrowser appears over the top of everything. It's a limitation of hosting a native control in a WPF application, which really limits the things you can acheive. A 100% WPF based managed webbrowser control would allow you to integrate HTML content in a much more natural and flexible way.