windows-8

Does Windows 8 ARM, A.K.A. “Windows RT” have the Winapi (win32) available for third party developers?

老子叫甜甜 提交于 2019-12-04 18:28:07
问题 Windows 8 for ARM, also known as Windows RT, does it have the equivalent of the Win32 API? (I don't mean if it can run Win32 x86 code, but if it has the Win32 API available to third party developers.) 回答1: Yes, the ARM version will support the same APIs as x86 and x64 builds, possibly with some slight differences in architecture-specific stuff like exception handling. For example, here's the list of APIs that the ARM version of msvcrt110.dll imports from kernel32: Setting environment for

ASP.NET MVC4 and Web API Authentication + Authorization (Windows 8 and Web)

妖精的绣舞 提交于 2019-12-04 18:17:32
问题 I created an ASP.NET MVC 4 Internet Web Application using Simple Membership db for storing users, roles and profiles. In my app I created a Web API controller that will respond to the http:// 127.0.0.1/api/users and this call will return a list of all users stored in the db as JSON . The UsersController is decorated with [Authorize] attribute therefore any call to the http:// 127.0.0.1/api/users have to be authenticated. On the main page I have a button that once pressed a jQuery ajax get

Windows 8 start “metro” app from desktop app?

*爱你&永不变心* 提交于 2019-12-04 18:09:29
Is there any way to start a "Metro" app from a desktop app in .net? SLaks All Modern UI apps have a URL protocol associated with them which can be used to launch the app. You can find find the protocol for a specific app like this: Press Windows+R Type regedit Navigate to HKEY_CLASSES_ROOT\Extensions\ContractId\Windows.Protocol\PackageId Find the subkey for your app (eg, AMZNMobileLLC.KindleforWindows8_1.1.0.0_neutral__stfe6vwa9jnbp ) Within that subkey, go to ActivatableClassId_some long name_\CustomProperties The Name value will tell you the protocol name. You can then pass name :// to

How to run a Metro-App from PowerShell on Windows 8?

社会主义新天地 提交于 2019-12-04 17:54:34
问题 Related to another question on Superuser, I'm trying to run a Metro based application from the command-line. According to a comment on my superuser question, I could maybe find an answear on a PowerShell command or script. I already tried but found anything on any internet reference about PowerShell and Windows 8... So, there is some specific way/command to call and run a Metro-style application from a PowerShell command on Windows 8? 回答1: There is no direct way to do this but there are a

how to trigger a button click in my code? [duplicate]

二次信任 提交于 2019-12-04 17:48:35
This question already has an answer here: Invoking the click method of a button programmatically 2 answers How can I trigger a button click directly in my code? I have a code like this: namespace App1 { /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </summary> public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); } protected override void OnNavigatedTo(NavigationEventArgs e) { // fire a click ebent von the "Button" MyBtn } private void Button_Click(object sender, RoutedEventArgs e) { // ... } } } Is it

What will the future be for WPF and Silverlight under Windows 8?

别等时光非礼了梦想. 提交于 2019-12-04 17:40:03
问题 Seeing the first announcement of the HTML5/JS Windows 8 GUI, plenty of WPF and Silverlight developers panicked. What is the future for these technologies? How will the new and old technologies be able to cooperate? Should we all start developing using an entirely new framework pretty soon? Does anyone have official sources clarifying the situation a bit? 回答1: In the keynote of the build conference they demonstrated the following platform diagram: WinRT is an object-oriented replacement for

Windows Store Apps: Change the icon of an AppBar Button?

点点圈 提交于 2019-12-04 17:38:15
I want to change the icon of an AppBar Button in my Windows Store app. I found that the AppBar buttons have XAML markup that looks like this: <Style x:Key="PicturesAppBarButtonStyle" TargetType="ButtonBase" BasedOn="{StaticResource AppBarButtonStyle}"> <Setter Property="AutomationProperties.AutomationId" Value="PicturesAppBarButton"/> <Setter Property="AutomationProperties.Name" Value="Pictures"/> <Setter Property="Content" Value=""/> </Style> What does the content value  mean? Is there any refernece to the built-in icons ? Also how can I display a different icon of my own ? Frank

Where do I find conceptual documentation for Windows Runtime? [closed]

坚强是说给别人听的谎言 提交于 2019-12-04 17:33:36
I'm trying to learn enough about Windows Runtime to make a recommendation about what it would entail for my employer to port our existing applications to it. I'm having trouble finding documentation that provides a technical overview of how the API works. All my web searches seem to lead me to API reference on MSDN , which is terse to the point of unreadability. It documents the formal signatures of API classes and methods, but seems to assume that the reader already knows how things fit together. The purpose of each method is usually just described as a terse sentence fragment that restates

SharpDX: Enabling BlendState

主宰稳场 提交于 2019-12-04 17:21:05
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 find one - but it uses effects. So my question is simple - do i have to use technique's and effects in

How to detect when Windows 8 goes to sleep or resumes

狂风中的少年 提交于 2019-12-04 17:21:00
I have an app that keeps a connection alive to a server, however if the user walks away and the tablet goes to sleep, I would like to handle the disconnect gracefully, and I would also like to log back in when the user wakes the tablet. I've tried in my putting the following code in my connection class, but they never get fired. Application.Current.Suspending += this.OnAppSuspending; Application.Current.Resuming += this.OnAppResuming;; For desktop apps, you can use SystemEvents.PowerModeChanged event to know if Windows is going into sleep state. I don't know if this works for the tablets too,