Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - I want to display a web page in my tooltip.

 
 
Old 10-04-2006   #1 (permalink)
Whitey


 
 

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 ?)


My System SpecsSystem Spec
Old 10-04-2006   #2 (permalink)
Douglas Stockwell


 
 

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 ?)
>


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
cannot display web page Vista mail
Web Page display how can I Fix it Network & Sharing
Display a web page Vista General
IE 7 can not display the page!? Vista General


Vista Forums 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 Ltd

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