How do I enable JavaScript in a Windows Phone HTML5 app?
After creating a new WP8 HTML5 project, open up MainPage.xaml and set IsScriptEnabled="True" to the <WebBrowser /> control.
<phone:WebBrowser x:Name="Browser"
IsScriptEnabled="True"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Loaded="Browser_Loaded"
NavigationFailed="Browser_NavigationFailed" />
Remember: with great power comes great responsibility.
Related
Im performing a print functionality from Silverlight 5 inside a web project. the document to be printed is created dynamically in the silverlight project. the problem is in IE 11 browser i get the following error Out-of-browser specific settings do not affect in-browser applications.
the Out of browser settings were set correctly. as below.
<OutOfBrowserSettings ShortName="EmployeeSchedule Application" EnableGPUAcceleration="False" ShowInstallMenuItem="True">
<OutOfBrowserSettings.Blurb>EmployeeSchedule Application on your desktop; at home, at work or on the go.</OutOfBrowserSettings.Blurb>
<OutOfBrowserSettings.WindowSettings>
<WindowSettings Title="EmployeeSchedule Application" />
</OutOfBrowserSettings.WindowSettings>
<OutOfBrowserSettings.SecuritySettings>
<SecuritySettings ElevatedPermissions="NotRequired" />
</OutOfBrowserSettings.SecuritySettings>
<OutOfBrowserSettings.Icons />
</OutOfBrowserSettings>
any idea where the error could be ? any refrence would be appreciated.
I need to add a RichTextBox or RichTextBlock to my Windows Phone App. I started developing my app in Windows Phone Sileverlight 8.1. I could add "<RichTextBox> </RichTextBox>" in xaml page, and it shows the RichTextBox control in the designer. But when I install the application in my Windows Phone, the RichTextBox control is not working, means we cannot insert any text in the box.
Please help me to resolve this problem. Is there any alternative toolkit for getting RichTextBox/RichTextBlock in my app.
What controls were used to make it? It functions like a tab control in windows form applications. but there is no tab control in windows 8.1 xaml.
What is the different between Flyout and SettingFlyout control in windows 8? I see that the animations are different. But is there anything else?
UPDATE:
This sample demonstrates how to use the ApplicationSettings API and settings flyouts to integrate an app's settings UI with the Settings charm
http://code.msdn.microsoft.com/windowsapps/App-settings-sample-1f762f49/sourcecode?fileId=50852&pathId=106473882
SettingsFlyout is for use with the Settings Pane via the Settings contract. The Flyout is for use in the main UX.
Is there a web browser or web view control available to Windows Phone 8 applications written in C++? I've found a WebBrowser control but that seems to be only available in Windows Phone 7 written in C#.
There's no way to directly use a WebBrowser control in C++. You'll have to create a mixed C++ and XAML projects and overlay the on top of your DirectX .
Note, using Hybrid XAML & D3D apps has a small performance hit over using pure C++ D3D apps. Even if you never show any XAML, just initializing the full CLR and loading up XAML for is still pretty heavy. Read more about it on MSDN here and here.
On other thing that might be applicable to you is that the WebBrowserTask has been ported over to WinRT so it's accessible from C++. Alongside with the Launcher.LaunchUriAsync() method it allows you to navigate away from your app and open up IE10 to a specific page.