windows-8

Accessing other processes in Win8 Metro-style app

為{幸葍}努か 提交于 2019-12-21 05:06:16
问题 I am trying to build a Windows 8 "metro-style" app that will operate as a "app killer". For those of you who have used Win8 (Tech Preview) you'll notice that once you open a metro-style app you cannot close it (without going into Task Manager and ending the process). My challenge is that I cannot access 'System.Diagnostics.Process' from my metro-style app, nor do I know if there is an comparable alternative within the WinRT. I also thought of building a separate app that hosts a service for

How to deploy a metro app to windows 8 device/Tablet?

岁酱吖の 提交于 2019-12-21 05:00:41
问题 For testing an application, I have deployed my metro app by creating a app package which is provided in vs2012. I have deployed the package by opening using the PowerShell, but now I want to deploy the metro app in a Windows 8 device (tablet) for testing it, how can I do this? Will there be a PowerShell option available in device also? (to deploy the app) Are there any other ways of deployment? 回答1: i have used this to sideload apps for testing onto other devices including SurfaceRT http:/

How to convert a simple stream(http webresponse) to bitmapimage in c# windows 8?

空扰寡人 提交于 2019-12-21 04:51:13
问题 I try 1000 times, to convert a simple stream (http webresponse) to bitmapimage, but no one tutorial is working in c# windows 8. Example: BitmapImage image = new BitmapImage(); image.SetSource(stream); image1.Source = image; Thank's for all reply. Solution InMemoryRandomAccessStream randomAccessStream = new InMemoryRandomAccessStream(); DataWriter writer = new DataWriter(randomAccessStream.GetOutputStreamAt(0)); writer.WriteBytes((byte[])command); await writer.StoreAsync(); BitmapImage image =

Missing EventToCommand behaviour in mvvmlight for Windows 8 - Work Around?

孤者浪人 提交于 2019-12-21 04:38:07
问题 Question says it all really :) I'm writing a Windows 8 app in XAML/C# using MVVM Light and I've noticed the EventToCommand feature hasn't been implemented yet. Are there any work arounds for this that anybody can suggest? thanks! 回答1: Check out the EventToCommand behavior written by LocalJoost which uses Reactive Extensions: http://dotnetbyexample.blogspot.be/2012/07/a-winrt-behavior-to-mimic-eventtocommand.html 回答2: You can now accomplish what EventToCommand used to do using the Behaviors

How easy is it to port a Windows Phone 7 application to Metro on a Windows 8 tablet?

瘦欲@ 提交于 2019-12-21 04:09:23
问题 I know that Metro on both platforms shares a common “look and feel” and that WinRt makes use of XAMLand C# (or VB.NET) like Silverlight does on Windows Phone 7. However I also know that WinRT is not Silverlight. Therefore what is the process of creating an app that will work on both a Windows 8 tablet and a Windows 7 (or 7.5) Phone? How close is WinRt to Silverlight? 回答1: Despite certain people in Microsoft claiming it will only require changing a couple of lines of code... The only possible

SignTool internal error when trying to repackage an APPX package?

筅森魡賤 提交于 2019-12-21 03:58:28
问题 I'm analyzing existing Windows Store applications and modifying them to make sure my company's obfuscator works with them. I've ran into a bit of a problem doing that though. I can grab an APPX package from the store easily enough(requires Fiddler to get the URL). I can then just use any unzip program to extract the appx to a folder. I can then take the assemblies in the APPX and modify the IL a bit. I then remake and sign the package: makeappx pack /d "mypackage" /p "mypackage.appx" signtool

Order items horizontal in XAML GridView (Win8 / Metro)

試著忘記壹切 提交于 2019-12-21 03:02:08
问题 how can i sort the items of GridView horizontal in the XAML? Sadly i found no method to achieve this. The Keyword "Orientation" is not available. Here is my current GridView: <GridView x:Name="TestDataBinding" HorizontalContentAlignment="Left" VerticalContentAlignment="Top" SelectionMode="None" ItemsSource="{Binding}" ItemTemplateSelector="{StaticResource itemTemplateSelector}" Margin="0,60,0,0" Width="1100" Height="540" /> Another Way could be a "VariableSizedWrapGrid". But this can't be

HTML/CSS Renderer for Metro-Style Apps

99封情书 提交于 2019-12-21 02:45:22
问题 The current WebView for Metro-Style apps is unusable for me because it is hosted in a seperate HWND, making it impossible to overlay the WebView with other controls. Additionally, the APIs provided are not enough for me to use it (e.g. no possibilty to handle the "onNavigation" events). I am looking for a C++ library that can parse HTML/CSS and render using DirectX. I am willing to write my own renderer but it is not easy. I would help to atleast have a proper HTML/CSS parser. I also checked

How to bring up the Windows 8 on-screen keyboard in a desktop app

試著忘記壹切 提交于 2019-12-21 02:24:04
问题 I have a fullscreen DirectX desktop app, and would like to display the on-screen keyboard when the user taps a textbox in my game. Is there a way to do this while in fullscreen mode? 回答1: Executing osk.exe will pop up the more old-fashioned on-screen keyboard. The Windows 8 touch keyboard will pop up by executing C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe I just figured that out, since I'm working on a fullscreen desktop app that is running on a tablet PC without keyboard

How can I make a Windows 8 Metro scrollviewer respond to mousewheel?

放肆的年华 提交于 2019-12-20 23:47:20
问题 I'm currently writing an app for Windows 8 using Metro and C#. In my app I use a combination of scrollviewer and gridview to show my data. My problem is however, how can I make it scrollable with a mouse wheel? In my searching I found MouseWheelParameters located in System.Windows.Input, but when I try to use the get_pageTranslation, it gives an error stating I can't explicitly use the get method. 回答1: The "get_pageTranslation" is actually the "PageTranslation" property on the