index > Windows Presentation Foundation ("Avalon") > XAML Browser Application

XAML Browser Application

Hi,

I have "traditional" .aspx page. This page has small IFRAME Element of size 20x20. I want this IFRAME element to invoke WPF browser application (.xbap url in src attribute). I assume this should not be a problem.


Next, my .xbap in IFRAME at runtime generates a "Canvas" of size 400x400. My question is can I make this "Canvas" to cross boundries of IFRAME and render all over base page elements? if not, is there any suggestion/workaround for this?

Thanks in advance.
Ganesh Tonde

GaneshT

Consider using script to resize the iframe hosting the XBAP/XAML file:

<html>
<head>
</head>
<body>
<script language="javascript">
function OnFrameLoad()
{
var myFrame = document.all.myFrame;
if (myFrame.readyState=="complete")
{
myFrame.height = 400;
myFrame.width = 400;
}
}
</script>
<div style="background-color:Yellow">
<iframe name="myFrame" id="myFrame" onreadystatechange="OnFrameLoad();"
src="\\someserver\test\browserhosteddeployapp.xbap" />
</div>
</body>
</html>




// Chango V. [MS]
Chango V.

Hi Chango,

Thanks this could be the one solution.

However, another question (may not be exactly related to this) is can one xbap application in a IFRAME be able to talk to another xbap application in another IFRAME of the same page? What I understand is as these two xbap application exe's executing as seperate processes on client machin, they will not know how to communicate to each other? Am I right?

Thanks in advance.
Ganesh

GaneshT
In v1 there is no supported way to talk to an XBAP hosted in HTML. But two XBAPs could talk to each other 1) via the server--you get WebPermission to the site-of-origin... or 2) via client-side cookies - see Application.SetCookie().


// Chango V. [MS]
Chango V.
reply 4

You can use google to search for other answers

 

More Articles

• Installer that requieres WPF
• Sending selected tree view item data to model (how to bind)
• ListView selection
• How can I have a movable popup?
• How to base width calculation on presence of vertical scrollbar?
• Working with events that are coming from a Win 32 window
• Change Source of Frame to display different web pages?
• ScaleTransform a Visual to create reflection effect
• HitTest Custom Control
• Load image into richtext box
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Inconsistence for DataTemplate.FindName
• GroupStyle and WrapPanel
• Conversion Validation order
• Binding Combobox to TexBlock.VerticalAli
• How to use a DataTemplateSelector withou
• outlook look and field control using wpf
• Regarding to Report Viewer
• Whoops! (I'm getting tired of it)
• Buttons inside a FlowDocument in a RichT
• Doubt Regarding RichTextBox !!
• extending canvas
• BindingExpression with XPath='Profiles/P
• Dual Monitors .. slow
• XamlReader? Codebehind classes don't work?
• Change order in Storyboard animation

Hot Articles

• Bind To Method Topic is missing from dow
• Where does the teapotModel come from?
• MouseUp/MouseDown/MouseClick
• Creating UserControl and compiling as DLL
• Access child elements inside an animation
• Test if point is in screen
• Raising an event when a Storyboard hits
• WPF Text blurry
• Frame Disappearing on Clicking the ListV
• [WPF] Performance problems on Windows Vi
• How can I avoid Thread Safety in WPF?
• databinding between properties on the sa
• Vista RC1 on MSDN
• Memory Leak problem when using bitmap im
• Converting a collection to comma seperat

Recommend Articles

• Creating a Hyperlink with Databound text
• How to pass parameters to a DataBinding
• How to go to first page with a FlowDocum
• can XBAP XAML reference isoloated storate
• Menu items disabled when setting a command
• Tool for determining KeySpline values
• XAML Browser Application
• Overlapping elements over a FlowDocument
• Loose XAML Template
• How to apply Sorting in a List view cont
• No AdornerLayer on a floating window.
• How to collapse databound TextBlock
• WPF Program Managers
• Syntax of Geometry property value
• How does WPF Handle simple control focus?