![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 ?) |
| | #2 (permalink) |
| 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 ?) > |
| | #3 (permalink) |
| 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 ?) > |
| |
| |
![]() |
| 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 |