windows-8

How to set Background of a Button without flicker?

送分小仙女□ 提交于 2019-12-11 10:08:09
问题 I am trying to change the Background of a button to an image source. I want to load that image in memory when we navigate to the page so that it doesn't flicker the first time it shows. On Windows Phone, I was able to create the image source as such: StreamResourceInfo resourceInfo = Application.GetResourceStream(uri); BitmapImage bitmapSource = new BitmapImage(); // Avoid flicker by not delay-loading. bitmapSource.CreateOptions = BitmapCreateOptions.None; bitmapSource.SetSource(resourceInfo

Convert String to type of Page?

末鹿安然 提交于 2019-12-11 09:48:23
问题 I want to Convert a string DashBoard to a type of page named as DashBoard because I wanted to use it in navigation purpose. Normally I navigate to some page like this this.Frame.Navigate(typeof(DashBoard)); but I want to DashBoard page to be replaced by variable like this this.Frame.Navigate(typeof(Somestring)); 回答1: You could use the Type.GetType(string) [MSDN] this.Frame.Navigate(Type.GetType(My.NameSpace.App.DashBoard,MyAssembly)); Read the remarks section on how to format the string. Or

Azure Mobile Services push notifications channel creation fails after adding Private Networks capability in Windows 8 XAML store app

时光怂恿深爱的人放手 提交于 2019-12-11 09:44:37
问题 Azure Mobile Services push notifications have been working in my Windows 8 XAML Store app until I needed to access local network resources and had to add the Private Networks (Client & Server) capability. Now the application generates the error below when I try to acquire the push channel CurrentChannel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); CurrentChannel.PushNotificationReceived += CurrentChannel_PushNotificationReceived; A notification

How to fill combobox with list of available fonts in windows 8 metro/store app using c#?

人盡茶涼 提交于 2019-12-11 09:28:12
问题 I am building a simple app in Visual Studio 2013 for Windows 8 (a universal app), I want to change the font family of textbox using the selected font of combobox. I know how to fill a combobox with available fonts in windows form app, like for example: List<string> fonts = new List<string>(); foreach (FontFamily font in System.Drawing.FontFamily.Families) { fonts.Add(font.Name); } but this is not working in metro/store app... please help me out 回答1: You'll need to use DirectX DirectWrite to

Will it be possible to install an app to the Surface without passing from Microsoft App Store?

别说谁变了你拦得住时间么 提交于 2019-12-11 09:25:22
问题 I am planning to realize apps to be used from Surface Win8 new tablet. Will it be necessary to pass from the new Windows App Store (as it happens for iOS) or will I be able to distribute the .exe without passing from Microsoft? 回答1: As far as I aquired information. There are assumptions that the standard Surface have no Desktop mode. That means the pad will be purely comparable with Android and iOS. The Pro version will instead also be delivered with desktop mode also. In normal terms "full

How Can I Launch The App-store App Directly from my Application

烂漫一生 提交于 2019-12-11 09:19:33
问题 I want to place a button or a link in my app with which the user can start the app-store and buy my app if the app is in trial mode. I can not find any relavant Information on this. How can I implement this? 回答1: MSDN documentation: Creating links with the Windows Store protocol. Alternatively, the URI for the app in the store can be accessed using the Windows.ApplicationModel.Store.CurrentApp.LinkUri property. You can then open a link to your app in the store using Windows.System.Launcher

The request was aborted: Could not create SSL/TLS secure channel in Windows 8 Metro App

匆匆过客 提交于 2019-12-11 08:51:13
问题 I have a list of 350 downloadable image urls. I download 10 images parallely at one shot by running multiple tasks. But after downloading N number of images suddenly my code throws the following exception. Exception: "An error occurred while sending the request." InnerException: "The request was aborted: Could not create SSL/TLS secure channel." StackTrace: "at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter

How to rebuild Enterprise Library 6 on Win 8 and VS2015

↘锁芯ラ 提交于 2019-12-11 08:45:19
问题 I have customized the Enterprise Library and now want to rebuild it, but I get some errors when executing the BuildLibrary.bat (Scripts folder) from Developer Command Prompt for VS2015. Environment: Win 8 VS2015 Two issues: 1.) Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft. Build.Tasks.v12.0.dll On my system I have a newer version: Microsoft.Build.Tasks.v4.0.dll 2.) "C:\EntLib6Source\Blocks\EnterpriseLibrary.sln" (Rebuild target) (1) -> "C:

Read Base64 image with C# in a Windows 8 app

浪子不回头ぞ 提交于 2019-12-11 08:42:10
问题 I'm trying to display an image on a Windows 8 app. The image data is gathered from a web service, and provided as a Base64 encoded string. I found the following on Stack Overflow: How do i read a base64 image in WPF? However, when I come to use the BitmapImage Class, I can't seem to access System.Windows.Media.Imaging, even though the following Microsoft documentation leads us to believe that it is available for use in .NET 4.5, and with Windows 8 apps: http://msdn.microsoft.com/en-us/library

Static Qt linking version , Qt 5.2, Unknown module(s) in QT: quick qml

老子叫甜甜 提交于 2019-12-11 08:19:54
问题 I need to have Stand-Alone .exe file of my project. I knew that I have to get static Qt version linking. I can’t run QML project by Static Qt linking version , Qt 5.2 rc1 on Windows 7 or Windows 8 An error occurred: Project ERROR: Unknown module(s) in QT: quick qml It’s very simple project of built in qml “Hello World” message. I downloaded qt-package-opensource from : http://download.qt-project.org/development_releases/qt/5.2/5.2.0-rc1/single/ Also, I found that is ageneral bug for many