Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

I want to display a web page in my tooltip.

Closed Thread
 
Thread Tools Display Modes
Old 10-04-2006   #1 (permalink)
Whitey
Guest


 

I want to display a web page in my tooltip.

I'm using the following code to try to display the page in the tooltip:
<Button HorizontalAlignment="Stretch" VerticalAlignment="Top"
Margin="268,195,277.833333333333,0" Width="Auto"
Height="38.5533333333334" x:Name="Button" Content="Button">
<Button.ToolTip>

<Frame Height="250" Width="250" Background="DarkGreen"
Source="http://www.google.com/"/>

</Button.ToolTip>
</Button>

I've tried to put the Frame on dockpanel, or to just use the frame by
itself. Both work outside of the tooltip blocks, but neither work
within the tooltip. The frame shows up because the tootip goes from
the standard color to the DarkGreen; however, the I can't get it to
display the url.

Shouldn't the tooltip allow you to use the full functionality of a
frame if it's going to let you put a frame in it?

Thanks,
Noah

(A special thanks to Doug Stockwell for his help on my earlier ?)

Old 10-04-2006   #2 (permalink)
Douglas Stockwell
Guest


 

Re: I want to display a web page in my tooltip.

Unfortunately the Frame in this mode isn't a native WPF element, it's
actually hosting internet explorer in it's own HWND sitting over the top of
your WPF application. The tooltip display may well be a layered window in
which I presume HWND hosting doesn't work.

So you may be out of luck in this scenario.

There is a sample component floating around that can convert HTML to a WPF
FlowDocument, but it's far from finished/perfect. If you're interested, I
recall seeing it somewhere on wpf.dotnetfx3.com

- Doug


"Whitey" <NoahSWhite@gmail.com> wrote in message
news:1159993698.327900.56310@i3g2000cwc.googlegroups.com...
> I'm using the following code to try to display the page in the tooltip:
> <Button HorizontalAlignment="Stretch" VerticalAlignment="Top"
> Margin="268,195,277.833333333333,0" Width="Auto"
> Height="38.5533333333334" x:Name="Button" Content="Button">
> <Button.ToolTip>
>
> <Frame Height="250" Width="250" Background="DarkGreen"
> Source="http://www.google.com/"/>
>
> </Button.ToolTip>
> </Button>
>
> I've tried to put the Frame on dockpanel, or to just use the frame by
> itself. Both work outside of the tooltip blocks, but neither work
> within the tooltip. The frame shows up because the tootip goes from
> the standard color to the DarkGreen; however, the I can't get it to
> display the url.
>
> Shouldn't the tooltip allow you to use the full functionality of a
> frame if it's going to let you put a frame in it?
>
> Thanks,
> Noah
>
> (A special thanks to Doug Stockwell for his help on my earlier ?)
>


Old 10-04-2006   #3 (permalink)
Douglas Stockwell
Guest


 

Re: I want to display a web page in my tooltip.

Unfortunately the Frame in this mode isn't a native WPF element, it's
actually hosting internet explorer in it's own HWND sitting over the top of
your WPF application. The tooltip display may well be a layered window in
which I presume HWND hosting doesn't work.

So you may be out of luck in this scenario.

There is a sample component floating around that can convert HTML to a WPF
FlowDocument, but it's far from finished/perfect. If you're interested, I
recall seeing it somewhere on wpf.dotnetfx3.com

- Doug


"Whitey" <NoahSWhite@gmail.com> wrote in message
news:1159993698.327900.56310@i3g2000cwc.googlegroups.com...
> I'm using the following code to try to display the page in the tooltip:
> <Button HorizontalAlignment="Stretch" VerticalAlignment="Top"
> Margin="268,195,277.833333333333,0" Width="Auto"
> Height="38.5533333333334" x:Name="Button" Content="Button">
> <Button.ToolTip>
>
> <Frame Height="250" Width="250" Background="DarkGreen"
> Source="http://www.google.com/"/>
>
> </Button.ToolTip>
> </Button>
>
> I've tried to put the Frame on dockpanel, or to just use the frame by
> itself. Both work outside of the tooltip blocks, but neither work
> within the tooltip. The frame shows up because the tootip goes from
> the standard color to the DarkGreen; however, the I can't get it to
> display the url.
>
> Shouldn't the tooltip allow you to use the full functionality of a
> frame if it's going to let you put a frame in it?
>
> Thanks,
> Noah
>
> (A special thanks to Doug Stockwell for his help on my earlier ?)
>


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple page display BIG d. Vista General 1 2 Weeks Ago 05:01 PM
Display a web page DArnold Vista General 2 04-22-2008 02:59 PM
IE 7 can not display the page!? Leon_Amirreza Vista General 3 08-30-2007 07:38 PM
IE7 and Vista - cannot display web page Steve Barnett Vista General 0 04-12-2007 02:08 AM
I want to display a web page in my app. Whitey Avalon 2 10-03-2006 03:46 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50