windows-8

Setting Background Color or WPF (4.0) ListBox - Windows 8

☆樱花仙子☆ 提交于 2019-12-17 09:30:46
问题 I am attempting to set the background color of a selected ListBoxItem to be white rather than the system color. I have read what I could find here on SO and have followed, or believed to have followed the recommendations there (Change background color for selected ListBox item, WPF How to change the listbox selected item text color when the list box loses focus, Change selected and unfocused Listbox style to not be grayed out, and others). All seem to solve the problem by setting the

Cannot serve WCF services in IIS on Windows 8

孤人 提交于 2019-12-17 08:01:47
问题 When I try to serve a WCF service on IIS in a Windows 8 machine, I get the well known error The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. The old work around was to run aspnet_regiis -i but this command seems to have been deprecated in Windows 8 yielding response This option is not supported on this version of the operating system. (...) . What would be the work

DataTrigger in WinRT?

江枫思渺然 提交于 2019-12-17 07:39:40
问题 I was able to find EventTrigger in the WinRT reference, however, I wasn't able to find DataTrigger. I wasn't able to use it in an application either. Can anyone confirm that DataTrigger is really missing in WinRT? Is EventTrigger the only trigger available in WinRT? 回答1: I don't know when it changed but i have DataTriggerBehavior and GoToStateAction combining them should solve your problem... namespace imports xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" xmlns:i="http:

How to check if file exists in a Windows Store App?

十年热恋 提交于 2019-12-17 07:28:49
问题 Is there any other way of checking whether a file exists in a Windows Store app? try { var file = await ApplicationData.Current.LocalFolder.GetFileAsync("Test.xml"); //no exception means file exists } catch (FileNotFoundException ex) { //find out through exception } 回答1: According to the accepted answer in this post, there is no other way at the moment. However, the File IO team is considering changing the the api so that it returns null instead of throwing an exception. Quote from the linked

How can I make SmartScreen Filter trust a self-signed certificate

吃可爱长大的小学妹 提交于 2019-12-17 07:15:16
问题 Microsoft's SmartScreen Filter under Windows 8 is a small developer's worst nightmare. While I realize the benefits to end users and the effectiveness at stopping malicious programs from installing themselves on end users' computers, I and many other developers would rather not pay the fees for annual renewal of a Code Signing Certificate or, even worse, an EV Code Signing Certificate. Also, when products developed for use in-house are signed with a trusted certificate from an internal CA,

How can I make SmartScreen Filter trust a self-signed certificate

青春壹個敷衍的年華 提交于 2019-12-17 07:15:09
问题 Microsoft's SmartScreen Filter under Windows 8 is a small developer's worst nightmare. While I realize the benefits to end users and the effectiveness at stopping malicious programs from installing themselves on end users' computers, I and many other developers would rather not pay the fees for annual renewal of a Code Signing Certificate or, even worse, an EV Code Signing Certificate. Also, when products developed for use in-house are signed with a trusted certificate from an internal CA,

WinRT/UWP Frame and Page caching: How to create new page instance on Navigate() and keep the page instance on GoBack()

僤鯓⒐⒋嵵緔 提交于 2019-12-17 07:11:48
问题 I'm trying to create an UWP (Universal Windows App) application with C#. My problem is the Frame control: If I use it without NavigationCacheMode = Required , every time the user goes back, the page is not kept in memory and will be recreated. If I set NavigationCacheMode to Required or Enabled , going back works correctly (no new page object) but if I navigate to another page from the same type, the previous page object is recycled and reused (no new page instance). Desired behavior: Is

Windows 8 Metro style ListView auto scroll

依然范特西╮ 提交于 2019-12-14 04:26:11
问题 I am using a ListView in a Windows 8 Metro style app and I want to programatically make it scroll to a point where a particular item is in the view. Is this possible? 回答1: Not sure if you're working with JavaScript or XAML, but in JavaScript you should be able to just set the ensureVisible(index) property of the ListView. This will make sure that item is visible, scrolling the ListView if necessary: http://msdn.microsoft.com/en-us/library/windows/apps/br211820.aspx In XAML, the ScrollIntoView

C compilation errors on using stdprn

好久不见. 提交于 2019-12-14 04:23:54
问题 My OS is: Windows 8 IDE: VS 2012 Here is my C program. (from book) /* print_it.c—This program prints a listing with line numbers! */ #include <stdlib.h> #include <stdio.h> void do_heading(char *filename); int line = 0, page = 0; int main( int argv, char *argc[] ) { char buffer[256]; FILE *fp; if( argv < 2 ) { fprintf(stderr, "\nProper Usage is: " ); fprintf(stderr, "\n\nprint_it filename.ext\n" ); return(1); } if (( fp = fopen( argc[1], "r" )) == NULL ) { fprintf( stderr, "Error opening file,

WPF C# application will freeze my whole computer ever 2-3 times I run it

拥有回忆 提交于 2019-12-14 03:46:16
问题 I put a lot of information in this issue because I have no idea what will be relavent Issue: I am having an issue with a program I am working on where when running it, it will freeze my whole computer and return no error (I am completely incapable of doing anything CTRL+ALT+DEL doesn't even work). This program accepts a connection from a android client and atm the android client is not configured correctly so the connection is being rejected. Question: How can I stop my program from freezing