windows-8

Touch Scrolling ScrollViewer in WPF App with RealTimeStylus Disabled

女生的网名这么多〃 提交于 2019-12-04 15:25:51
问题 We are working on a WPF 4.5 application that will be run on Windows 8 computers with touchscreen monitors. We have disabled support for the RealTimeStylus following the directions on the MSDN, since we have some views that need multitouch support through WM_TOUCH. The problem is that disabling the RealTimeStylus support seems to also disable the user's ability to scroll a ScrollViewer using touch - normally the user can pan around ScrollViewers with their fingers, but if RealTimeStylus

Dropbox Javascript Datastores API example in Phonegap provides error forbidframing for Windows8 app

拥有回忆 提交于 2019-12-04 15:21:20
I have attempted to create a Phonegap app supporting both Android and Windows8 for the Dropbox Javascript Datastores API that makes use of the example provided here: https://github.com/dropbox/cordova-datastores-example When I build and run the Android app, it runs perfectly on the Android tablet. But when I run the app created for Windows8, an error is displayed: The app couldn't navigate to ... because of this error: FORBIDFRAMING . And then nothing happens afterwards. I haven't been able to find an alternative to using a frame. I would like to know, if there is a way to run the Windows8 app

How to show “An app on your PC needs the following Windows feature.” dialog programmatically?

天大地大妈咪最大 提交于 2019-12-04 14:53:54
When I try to run .NET 3.5 applications on Windows 8.1 which has not .NET 3.5 Framework, Windows will show the "An app on your PC needs the following Windows feature. .NET Framework 3.5 (includes .NET 2.0 and .NET 3.0)" dialog automatically. But I want to show this dialog programmatically. I think that the dialog is much more friendly than DISM command. Any help would be appreciated. The dialogue you are searching for is provided by a tool called Fondue (Features on Demand User Experience Tool). To request .NET 3.5 you need to invoke it like this: FONDUE.exe /enable-feature:NetFx3 Available

How to start a MetroApp directly in Snapped mode? [duplicate]

别等时光非礼了梦想. 提交于 2019-12-04 14:26:47
Possible Duplicate: Force WinRT app to snapped view Is it possible to start a MetroApp directly in snapped mode? I want to call another App by Protocol, an the App should open in Snapped mode. The call to the App by Protocol is not a problem, it works fine, but the App opens in Fullscreen or Main-Content Mode. I have'nt found any configuration to say "start on Sidebar". Please Help! As of now the answer is no. Since the snapped mode functionality depends on the user , you cant skip it / restrict it using code , Hope MS might provide this feature in further . As @Hermit Dave mentioned

PreviewKeyDown for Windows Store App ListBox

独自空忆成欢 提交于 2019-12-04 14:13:57
问题 Is there an equivalent to the PreviewKeyDown for a Windows Store App ? It isn't available. I have exactly the same problem as described here: I have a ListBox with a TextBox above it. I would like to use the arrow keys to navigate from the ListBox to the TextBox. The intention is that if the first item in the ListBox is selected, and the user keys up, the TextBox will get focus. 回答1: Ah, tricky. Handling key events isn't super-obvious. Here's what you want: public MainPage() { this

Metro App, Query Current Apps in Windows Store

青春壹個敷衍的年華 提交于 2019-12-04 14:07:26
How does one query data such as App Icons, Reviews, Stars, Price, etc. from Windows Store in another App? For instance, picture an app called "best drawing tools" with comparisons of 5 popular drawing tool apps, then links to Window Store (Or even better direct install links). The premise of the app "Great Windows Apps" (http://www.greatwindowsapps.com) seems to be the basic functionality I am trying to imitate. I also found MetroStore Scanner http://metrostore.preweb.sk which appears to query the windows store from the web, but I am looking to query from another app. I have been researching

Await blocks the UI Thread, Network Related

岁酱吖の 提交于 2019-12-04 14:05:25
I have this piece of code in my Windows Store app where I handle a button click. But somehow, UI freezes when I click this button on rare occasion. It mostly happens when I connect to a Wi-Fi network further away than the one I usually connect to. Taking into consideration that I download a RSS feed from the internet, it is most probably related to my using of async/await keywords. If I correctly understood the mechanics of async/await, UI thread should not block at all. Am I missing something here? private async void Add_Click(object sender, RoutedEventArgs e) { AddButton.Visibility = Windows

Sdk for Dropbox, EverNote and Google Doc (WinRT)

纵然是瞬间 提交于 2019-12-04 13:51:36
Is there any official Winrt SDK's are available for Dorpbox, EverNote and GoogleDoc. I searched for this in the internet but didn't find any working solutions. If anyone know more about this(Either official or 3rd party sdk's) Please share your thoughts with me. Thanks in advance, Stephan Dropbox don't have WinRT api and probably it' wont change in near future, but you can also use REST Api: https://www.dropbox.com/developers/core/api So you can simply use this REST api because Windows 8/RT supports programing in JavaScript and HTML: http://msdn.microsoft.com/en-US/library/windows/apps

Get URI for a stored file in StorageFile (WinRT)

喜欢而已 提交于 2019-12-04 13:48:50
问题 I'm building a metro app, and I'm trying to get a Uri of an Image after saving it in the StorageFile, this is my code: StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync("samplefile.dat", CreationCollisionOption.ReplaceExisting); IRandomAccessStream raStream = await file.OpenAsync(FileAccessMode.ReadWrite); IOutputStream outStream = raStream.GetOutputStreamAt(0); DataWriter dw = new DataWriter(outStream); dw.WriteBytes(img); // I'm saving array of bytes await

Get notified when internet is connected or disconnected

浪尽此生 提交于 2019-12-04 13:09:15
问题 I have a desktop application in WPF and C# developed under the .Net 4.0 Client Framework that has to show or hide some data according to if internet is available or not on the PC. This means I have to be able to detect as soon as possible if the internet is disconnected or connected in order to react. (Example could be disconnect from a wireless network or unplugging the network cable) As I researched a bit I found that an event exists in the class NetworkChange called