windows-8

How to keep the custom Settings Charm flyout open programmatically?

半腔热情 提交于 2019-12-05 12:36:05
I have created a custom AlarmSettingsPane in the settings charm which allows the user to give the time and also choose the audio file for alarm tone. So i implemented the file picker in the settings charm.When i click the file picker button it takes me to a new full screen where i get to pick my files, but when i select a file and open it, am directed to my home screen but the settings charm flyout gets closed. How can i preserve the state of the AlarmSettingsPane flyout and prevent it from closing programmatically? Like the settings flyout should contain the same imfo about the alarm as it

ScrollViewer in Windows 8: always show vertical scrollbar

北慕城南 提交于 2019-12-05 12:33:16
How always show vertical scrollbar in the scrollviewer? It disappear in few seconds, but I want to make scroll visible all the time when scrolling is available Thanks for any help I think there might be a bug in the control in Windows 8 Consumer Preview, since the following should normally work: <ScrollViewer Style="{StaticResource VerticalScrollViewerStyle}" VerticalScrollBarVisibility="Visible" Template="{StaticResource ScrollViewerControlTemplate1}"> As a workaround you can modify the template of the ScrollViewer: <ScrollViewer Style="{StaticResource VerticalScrollViewerStyle}" Template="

How to enumerate through Colors in WinRT?

我怕爱的太早我们不能终老 提交于 2019-12-05 12:12:34
Enumerating through colors in non-WinRT is a common question with a simple answer. But, since the Colors 'ENUM' is actually just a class with static 'color' properties you can't use the standard approach in WinRT. How do you enumerate colors in WinRT? Like this: Enumerating through Colors in WinRT requires using System.Reflection so you can fetch the static properties sub-classed in the container class 'Colors'. Like this: Dictionary<string, Windows.UI.Color> Colors() { var _Colors = typeof(Windows.UI.Colors) // using System.Reflection; .GetRuntimeProperties() .Select(c => new { Color =

A method was called at an unexpected time

随声附和 提交于 2019-12-05 12:11:17
问题 I'm trying to iterate all files in a directory using GetFilesAsync, but every time I call the GetResults method, it throws an exception that says System.InvalidOperationException: A method was called at an unexpected time The code is simply var files = myStorageFolder.GetFilesAsync(); //runs fine var results = files.GetResults(); //throws the exception I'm new to Win 8 dev so I might be missing something obvious. Edit (solved) I'm running my console application, but now that the program runs

Equivalent of editable ComboBox in WinRT?

痴心易碎 提交于 2019-12-05 12:08:07
The standard (desktop) windows combobox has three styles; Simple, Dropdown, and Drop List. Dropdown works like an edit control and a combobox, whereas Drop List doesn't allow editing. Am I missing something, or does the XAML ComboBox control in a Windows 8 store app only support the Drop List style? I was halfway through implementing something when I ran into this, and the more I look, the more it seems that it just isn't supported. Do I really need to replace the ComboBoxes in my screens with an edit control followed by a listbox? Yuck. thanks to edward.ho.tpe's answer I wrote myself a little

How to run application with Admin privileges using Manifest file in Visual Studio 2005?

社会主义新天地 提交于 2019-12-05 11:46:01
问题 I need to create an application which needs to create files/folders in "C:\Program Files","Users[username]" and Sys32. Also the application needs to make some registry entry. This application needs to work on Vista and higher. Also, on Windows Server 2003 and higher. The above Operating Systems have the concept of User Account Control (UAC), where to access Program Files and writing in registry requires admin privileges. I looked into many forums and found that using Microsoft SDK we can

Unknown type 'AppBarButton' in XML namespace - Windows 8 Store App XAML, issues adding app bars

↘锁芯ラ 提交于 2019-12-05 11:28:06
I'm new to developing Windows 8 apps, and am having trouble getting my XAML file to recognise generated code for adding AppBars and CommandBars. I am getting the error "Unknown type [something] in XML namespace" for a number of elements I am trying to add, here is my example below: If I re-open my solution this is temporarily displayed as a warning rather than an error. Also navigating to http://schemas.microsoft.com/winfx/2006/xaml/presentation just produces "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.". This is all default code. my

SDK error in Visual Studio Community 2015

梦想的初衷 提交于 2019-12-05 11:10:15
Upon rebuilding the solution to a file in Visual Studio exported from Construct 2 I received errors: MSB3774 Could not find SDK "Microsoft.WinJS.2.0, Version-1.0" MSB3774 Could not find SDK "Microsoft.WinJS.2.1, Version-1.0" Open Visual Studio Click File->New Project Click Windows Click Windows 8 There will be an option there to install the Windows 8.1 tools. 来源: https://stackoverflow.com/questions/33715663/sdk-error-in-visual-studio-community-2015

How to Form POST to Paypal from WinJS iframe Windows 8 App?

☆樱花仙子☆ 提交于 2019-12-05 11:03:44
I have a Windows 8 App using Javascript/HTML and within an iframe I have a Paypal form: <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="on0" value="Pages"> <select name="os0"> <option value="10">$1.95</option> <option value="25">$2.95</option> </select> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="encrypted" value="[removed]"> <input type="image" src="/btn_buynow_LG.gif" border="0" name="submit" alt=""> </form> This form works perfectly fine in

Soft keyboard capital initially

杀马特。学长 韩版系。学妹 提交于 2019-12-05 10:58:33
I want that when a user taps on a TextBox the keyboard should be capital initially and then small case after entering first character. I have seen this in calendar app. When you tap on Add title the shift key is initially on and when you tap on Add a message it's off Here are the screen shots.. Screen shot #1 Screen shot #2 Here is a quick summary of the different InputScope types you can set for the on-screen keyboad. http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh393998(v=vs.105).aspx It sounds like "Text" worked for you, but "Chat" will also begin with a capital. The