Note that there are some explanatory texts on larger screens.

plurals
  1. POSilverlight databound image displayed inside tooltip
    text
    copied!<p>this question is a follow up from this one. <a href="https://stackoverflow.com/questions/11726428/silverlight-4-image-preview-from-tooltip-on-datagrid">silverlight 4 image preview from tooltip on datagrid</a></p> <p>This is my new problem, I have been trying to get a tool tip to pop up with the preview of the document that is returned in search results of my silverlight app. I have linked the image and it comes up with the correct image, however it opens in a new or separate window instead of the tooltip itself. Here is my code behind..</p> <pre><code>private void PPTImageToolTip(object sender, RoutedEventArgs e) { string docname = ((FrameworkElement)sender).DataContext.ToString(); string baseUri = "http://localhost:58904/ShowDocument.aspx?DocumentName=" + docname + "-ppt" + "&amp;type=jpg"; var hostingWindow = HtmlPage.Window; hostingWindow.Navigate(new Uri(baseUri, UriKind.Absolute), "_parent"); } </code></pre> <p>This is set to go to my ShowDocument.aspx page which handles this operation..</p> <pre><code>else if (File.Exists(strFullFilePath) &amp;&amp; sType == "jpg") { fileStream = new FileStream(strFullFilePath, FileMode.Open, FileAccess.Read); buffer = new byte[fileStream.Length]; fileStream.Read(buffer, 0, Convert.ToInt32(fileStream.Length)); try { Response.ClearHeaders(); Response.ClearContent(); Response.ContentType = "image/jpeg"; Response.BinaryWrite(buffer); } catch (Exception ex) { } } </code></pre> <p>I realize that it transfers to another 'page' but I have not been able to get that image or that page to show up in the tool tip itself instead of populating the new window. Is this because of my HtmlPage.window code? Or because the ShowDocument.aspx page is already called and it cant call back? Is there a workable solution to get the image to populate inside the tool tip? Or is there a way to repsonse.redirect into the silverlight control that holds the tooltip?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload