windows-8

How to test a Windows8 app on a surface

早过忘川 提交于 2019-12-10 03:09:23
问题 How do I port a Windows8 app that I built onto a Surface? I've built the app using Visual Studio and I can test it just fine on the desktop machine by just hitting F5. How can I put it onto a Surface to test it without having to publish it to the Store? Thanks. 回答1: This link explains how to test your app on a Surface using remote debugging: http://timheuer.com/blog/archive/2012/10/26/remote-debugging-windows-store-apps-on-surface-arm-devices.aspx A quick summary: 1. Download the Remote Tools

New Windows Application - What language?

痞子三分冷 提交于 2019-12-10 02:47:37
问题 We are currently in pre phase of developing a desktop application for windows. But when hearing all the latest discussions on Windows 8, Silverlight, WPF, Jupiter I don't know what to believe anymore. Is it wrong starting a new project with WPF now? Should I switch to Silverlight? Or should I wait until more details of Windows 8 comes out? 回答1: Interesting topic, main point is if you do it windows based (Winforms or WPF) or web based (ASP.NET MVC or Silverlight). For a new business

WPF Scrollviewer on touch screen tablet

天涯浪子 提交于 2019-12-10 02:39:59
问题 I'm writing a WPF application that is going to run on a full windows 8 touchscreen tablet (not RT). However touch scrolling doesn't seem to be working. So I'm wondering if it's something I'm doing wrong or if it's even possible? So, I have a WPF window with a scrollviewer. Within that scrollviewer I have a StackPanel which has loads of textblocks within it. See below: <ScrollViewer> <StackPanel> <TextBlock Text="Row 1" /> <TextBlock Text="Row 2" /> <TextBlock Text="Row 3" /> <TextBlock Text=

Custom detail pages in Windows 8 grid application

偶尔善良 提交于 2019-12-10 02:36:58
问题 I have created a simple C# Windows 8 grid application. If you're unfamiliar with this layout, there is a brief explanation of it here : Link What I would like to have is simple - some custom ItemDetailPages . I'd like to be able to click on some items on the GroupDetailPage and the GroupedItemsPage and navigate to a custom .xaml file, one where I can include more than one image. I'm sure there is a simple way of doing that that I have missed out on, and I'm also sure that this information

WinRT Replacement of System.Environment.TickCount

戏子无情 提交于 2019-12-10 02:09:49
问题 What is the WinRT replacement for System.Environment.TickCount? 回答1: It should be available, because it isn't a problem. But it is not, a [TypeForwardedTo] hangup I guess because GetTickCount() isn't on the white list and .NET never adopted GetTickCount64. The standard fallback works fine, you can use pinvoke the call the native Windows function. I verified that a program that uses it passes the Windows App Certification Kit test. [System.Runtime.InteropServices.DllImport("kernel32.dll")]

Run autostart_console.bat on startup or new tab in ConEmu?

我只是一个虾纸丫 提交于 2019-12-10 01:50:23
问题 I am using ConEmu (robust cmd) on Windows 8 Pro. How/where can I set conemu to run autostart_console.bat when starting ConEmu or when opening a new tab? Thank you. 回答1: In most cases you need to use following command in Command line field (Settings -> Startup). cmd /k autostart_console.bat If you need to start other shell (not cmd.exe), for example Far Manager cmd /c autostart_console.bat & far.exe Full paths to autostart_console.bat or far.exe are required if they are not in %PATH% . 来源:

decompress a ZIP file on windows 8 C#

走远了吗. 提交于 2019-12-10 01:48:05
问题 I am building a metro style app for windows 8 and I have a zip file that I am downloading from a web service, and I want to extract it. I have seen the sample for compression and decompression, but that takes a single file an compresses/decompresses it. I have a whole directory structure that I need to extract. Here is what I have so far: var appData = ApplicationData.Current; var file = await appData.LocalFolder.GetItemAsync("thezip.zip") as StorageFile; var decompressedFile = await

Is there a 'IsInDesignMode' property in WinRT?

安稳与你 提交于 2019-12-10 01:36:44
问题 I'm trying to port my application from Phone 7 and can't find the way to detect when control is in Design mode. Got it - Windows.ApplicationModel.DesignMode.DesignModeEnabled 回答1: I am using this: if (Microsoft.Devices.Environment.DeviceType == DeviceType.Emulator) and this _isInDesignMode = Windows.ApplicationModel.DesignMode.DesignModeEnabled to check the current developing situation 来源: https://stackoverflow.com/questions/7624351/is-there-a-isindesignmode-property-in-winrt

How do you bind a ViewModel to the Windows 8 Settings pane in MvvmCross?

醉酒当歌 提交于 2019-12-09 22:32:01
问题 I've been looking at MvvmCross for cross platform mobile development. Since navigation of views is done by calling ShowViewModel<>(), how would you create the settings pane (which is a user control) in Windows 8 using MvvmCross? 回答1: MvvmCross provides a general ShowViewModel<T> navigation mechanism which uses a Presenter to display and set the DataContext on View s. Views that are shown this way typically cover the 'whole screen' and benefit from automatically constructed ViewModels using

SharpDX: Enabling BlendState

谁都会走 提交于 2019-12-09 20:29:48
问题 I'm trying to get the "SharpDX.Direct3D11.DeviceContext.OutputMerger.Blendstate" to work. Without this, i have nice scene (Polygones with textures on it, for a Spaceshooter). I've done OpenGL Graphics in the past three years, so i thought it might be as simple as in OpenGL - just enable Blending and set the right Dst/Src Modes. But if i set a new BlendStateDescription, all Output is Black, even if "RenderTarget[x].IsBlendEnabled" is set to "false". I searched for a tutorial or something, and