![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| 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 | |||