windows-8

WinRT and software ClearType font rendering

无人久伴 提交于 2019-12-05 03:35:53
Does WinRT provides an option to fall back to software ClearType font rendering (as Direct2D do via "Direct2D and GDI Interoperability") or we will be stuck with somewhat blurry hardware font anti-aliasing only? No. Windows on ARM will not support ClearType. This is by design. Instead, Windows on ARM tablets will be required to have a high DPI. http://www.istartedsomething.com/20120303/cleartype-takes-a-back-seat-for-windows-8-metro/ 来源: https://stackoverflow.com/questions/7487080/winrt-and-software-cleartype-font-rendering

Metro UI: I'm switching xaml but images not loading

不羁的心 提交于 2019-12-05 03:33:19
问题 I have a multi-xaml metro app. I want to switch between xaml by button click. private void Button_Click_1(object sender, RoutedEventArgs e) { Window.Current.Content = new BlankPage1(); this.InitializeComponent(); } private void Button_Click_2(object sender, RoutedEventArgs e) { Window.Current.Content = new Sudoku.sudoku(); Window.Current.Activate(); } private void Button_Click_3(object sender, RoutedEventArgs e) { TextTwist.text_twist ob= new TextTwist.text_twist(); ob.InitializeComponent();

Can't register a Time triggered Background Task

偶尔善良 提交于 2019-12-05 03:11:25
For a Windows 8 App, in C#/Xaml I try to register a background task. It's hard to tell but I guess my background task is well registred but when I click on the name of my background task on the Debug Location Toolbar my app stops working without any message. I looked at the log on the Event Viewer and I get : "The background task with entry point MyApp.Pages.SampleBackgroundTask and name Example hourly background task failed to activate with error code 0x80010008." Here is my code : private async void Button_Click_BackgroundTask(object sender, RoutedEventArgs e) { string entryPoint = "MyApp

Windows 8 - Running Eclipse (Java VM not found)

痞子三分冷 提交于 2019-12-05 03:01:45
I just downloaded the Android Developer Tools Bundle. I started following the setup instructions and gotten as far as extracting the files to new location ("Development") as it says. I tried running the Eclipse app as instructed, yet a window popped up saying; A Java Runtime Environment (JRT) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following location: C:.........\Development\adt-bundle-windows\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH" I tried compatibility trouble-shooter which can not detect

Debug.Assert(false) does not trigger in win8 Metro apps

女生的网名这么多〃 提交于 2019-12-05 02:38:12
I notice Debug.Assert does not trigger in Metro apps, however, if the project is a traditional one like Console or WinForm, it does trigger. And yes, I am in Debug mode. Is it a setting not properly set in Visual Studio (11 Beta)? Or Debug.Assert is intended to be disabled in metro apps? I know many exceptions are swallowed during the execution of Metro apps, but Debug.Assert is so handy that I can't think of a reason why it should be disabled. It does trigger, look in the Output window. It just doesn't automatically prompt you to ask if you want a debugger break and thus just keeps motoring.

Display a StorageFile in Windows 8 Metro C#

允我心安 提交于 2019-12-05 02:20:36
问题 I would like to display an image file on the UI from the Assets. I managed to store the item as a StorageFile . How can I display it? I've tried to display it in a XAML <Image> tag's Source. Is it possible to covert StorageFile to Image ? string path = @"Assets\mypicture.png"; StorageFile file = await InstallationFolder.GetFileAsync(path); 回答1: Try this function public async Task<Image> GetImageAsync(StorageFile storageFile) { BitmapImage bitmapImage = new BitmapImage();

Programmly using SSL certificates in Windows 8 app

僤鯓⒐⒋嵵緔 提交于 2019-12-05 01:49:55
问题 I need help with this: Our backend is secured by self-signed certificate. Lets call it: OurMegaCoolCertificate.cer So, we have imported this certificate to our developers machines by using certmgr.msc . And now we can retrieve data from our backend using this code: async public static Task<string> getData(string Id, string Type) { String url = "https://BACKEND/API/?Id=" + Id + "&Type=" + Type; HttpClientHandler aHandler = new HttpClientHandler(); aHandler.ClientCertificateOptions =

Getting a Type Assembly in Windows 8

让人想犯罪 __ 提交于 2019-12-05 01:43:48
I'm trying to use MEF in Windows 8. In order to build up my AssemblyCatalog for the container, I need a reference to the assembly. In the past, I would have just done this: var catalog = new AssemblyCatalog(typeof(App).Assembly); Mysteriously, the Assembly property no longer exists on the Type object. Anybody know of a good work around? Is there another way to get the assembly? I could load it using Assembly.Load , but I would need the name of the assembly. I can't get that from the type either. Is using a DirectoryCatalog a possible alternate? I don't like the idea, but I'll do what I need to

Cookies not sent on Windows Phone app, but cookies are sent with same code in Windows 8 app

拜拜、爱过 提交于 2019-12-05 01:36:45
I have a basic class that makes GET and POST requests using HttpWebRequest / HttpWebResponse . I use my class to login to an API and then request data. In a Windows 8 "Metro" application, it works exactly as expected. On a Windows Phone 8 application, the login appears to succeed, but in the subsequent request for data, no cookies are sent and the server responds as if the client is not logged in. Here is the class, this exact same code is used in the Windows 8 app and the Windows Phone app: class Class1 { CookieContainer cookieJar = new CookieContainer(); CookieCollection responseCookies =

Visual Studio 6 C++ Crash in Windows 8.1 [duplicate]

别说谁变了你拦得住时间么 提交于 2019-12-05 01:34:36
问题 This question already has answers here : Running Visual Studio 6 C++ in Windows 8.1 (8 answers) Closed 4 years ago . Some of the developers here installed 8.1 last night and when we went to boot up VC6.. and instant crash on the splash screen. We have tried the standard compatibility changes, run as administrator, etc etc and no luck. Anyone else have these issues as well? Have you been able to resolve them anyway? It worked last night on Windows 8 just fine... Details on crash. Go to msdev