xbap

Popups in XBAP stop receiving anything but mouse events after losing focus?

烂漫一生 提交于 2020-01-17 01:18:38
问题 I have a Popup control in my XBAP, and whenever the popup control is open and it loses focus (such as an alert box, a breakpoint, switching to another application in Windows, switching to another Tab in my web browser, etc), the Popup no longer responds to anything but Mouse events. I cannot: Select a TextBox with the Mouse Highlight Text in a TextBox with the Mouse Use the Tab key to change controls Select a ComboBox item using the Keyboard when I open it with the Mouse I can: Change a

DllNotFoundException when web application p/invokes a win32 DLL

两盒软妹~` 提交于 2020-01-07 04:18:29
问题 I get this error when my web application p/invokes a win32 dll (Player.dll) System.DllNotFoundException: Unable to load DLL 'Player.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Player.PlayerProxy.Initialize() atRunaware.WpfBrowserApp.Player.Page1.PlayFile(Object sender, RoutedEventArgs e) The application is written in WPF (XBAP). I've the following info in the .manifest file. Although all .Net DLLs are mentioned in <dependency> tags, the win32 dll is

x86 TargetPlatform with XBAPs

╄→гoц情女王★ 提交于 2020-01-05 08:32:44
问题 I've got a XAML Browser Hosted Application (XBAP) project that has a dependency on another project that is x86 only. All sorts of hell breaks loose at runtime (with respect to grabbing the DLLs) if I leave the target platform as "Any CPU". However, if I switch the XBAP project to target x86, I get the following compile time error: Error 7 - Cannot build a platform-specific XAML Browser Application. If HostInBrowser property is set to 'True', either do not set the PlatformTarget property or

XBAP with FireFox and Windows 7

被刻印的时光 ゝ 提交于 2020-01-03 18:53:09
问题 Firefox depends on an extension and plugin installed by the .NET 3.5 installer to run XBAPs. Unfortunately, in Windows 7 the .NET 3.5 runtime is already installed. Does anyone know how to get a hold of these plugins/extensions so you can actually deploy XBAPs to FireFox on Windows 7? 回答1: Turn out, the answer is to copy the DLL of the extension out of another (presumably XP) machine that can run the .NET 3.5 runtime and deploy it. I'm uncertain of the legality of this maneuver, but it works.

XBAP Clear cache from application

邮差的信 提交于 2019-12-25 05:04:53
问题 Is there a way to clear the cache from Xbap application instead of running mage or rundll32 from command prompt?? 回答1: As far as I know the only available tool is 'mage -cc'. http://www.vistax64.com/avalon/11917-xbap-applciation-issues.html 回答2: Programmaticaly you can use this: new System.Deployment.Application.DeploymentServiceCom().CleanOnlineAppCache(); original Don't forget about your app rights. 来源: https://stackoverflow.com/questions/11774838/xbap-clear-cache-from-application

How to implement a modal window in an XBAP application

六眼飞鱼酱① 提交于 2019-12-24 09:07:18
问题 I have a XBAP application which has the following code in a Page: Person newPerson = new Person(); PersonWindow personWindow = new PersonWindow(newPerson); personWindow.ShowDialog(); When this code is invoked from a XBAP page, the resultant window does not behave like a modal window. How can it be changed to behave like one without a significant amount of changes? 回答1: It seems, that you have to implement the "modality" on your own, by disabling all the other window controls. Here goes the

XBAP and Javascript communication in .net 4.5 and HTML 5

无人久伴 提交于 2019-12-24 08:17:46
问题 I have a webpage build with HTML/Javascript and XBAP in iframe. I want to have a communication mechanism between HTML/Javascript parent page and Xbap. What ever links I have searched recommend me to go for WPF/E(Silverlight) but most of them are old post(2006/2007). Its been a while since then and hope there must be some mechanism for this with .net 4.5 and HTML5 taking center stage. PS: Looking for solution better then browser cookies 来源: https://stackoverflow.com/questions/22821902/xbap-and

Is there a concept of a master page (like in asp.net) for WPF?

与世无争的帅哥 提交于 2019-12-23 09:01:14
问题 I've started a WPF (web-based) application and it has multiple pages. I want to implement the concept of a Master page in WPF, so that when I make changes in the design/layout of one page then all the others pages will follow suit without all the copy and paste. 回答1: I don't think the concept of Master Page is valid in WPF basically because there are no pages. In WPF exists styles, templates and DataTemplates. Not only that, using the DockPanel and other containers you can achieve most of the

Debug XBAP hosted in WPF Application

我们两清 提交于 2019-12-23 04:45:14
问题 I have a WPF Application (say, WPF.exe) with multiple tabs. In one of the tabs, I display a *.xbap using: WebBrowser tag. <WebBrowser Source="c:/PublishedWebSites/Test.xbap"/> When I start WPF.exe, I am able to attach debugger to any other UserControl but not to my XBAP. I also tried attaching my XBAP to PresentationHost.exe process which was started when I click on the browser tab. The break points are not hit in XBAP project, though I verified that when I publish the XBAP, I oublish *.pdb

Manual XBAP publishing

拟墨画扇 提交于 2019-12-23 00:29:07
问题 I found a method to manually publish a regular WPF Application, but i need the same instructions for a WPF Browser app instead. Here is the regular WPF App howto: http://msdn.microsoft.com/en-us/library/xc3tc5xx(VS.80).aspx . If anyone knows what changes I need to make to my mage commands to make it work for XBAP please let me know. Thanks. 回答1: I had to alter the name of the default "Application Files" folder for one of our customers who doesn't like spaces in file or folder names and this