microsoft-metro

Does Windows 8 Compile JavaScript?

拥有回忆 提交于 2019-12-10 04:24:44
问题 It is exciting that Windows 8 is supporting so many languages for Metro App development. One that especially interested me was the HTML5/CSS/JavaScript. What I don't understand, is this code going to get compiled in a sort of executable (like the C#, VB, and C++ option), or would my app basically be running in IE as an actual web page? 回答1: Yes. Javascript is executed on Windows 8 by the Chakra engine. Similar to the .NET just-in-time compiler, it translates javascript to optimized machine

Windows 8 - BeginAnimation?

扶醉桌前 提交于 2019-12-10 03:16:53
问题 It seems I can't do myObject.BeginAnimation(dp , animation) . Is this a bug or has it been changed? 回答1: You need to use a storyboard. Add your animation to the storyboard and have the storyboard begin the animation. var storyboard = new Storyboard(); var opacityAnimation = new DoubleAnimation { From = 0, To = 1, Duration = DurationHelper.FromTimeSpan(TimeSpan.FromSeconds(1)), }; storyboard.Children.Add(opacityAnimation); Storyboard.SetTargetProperty(opacityAnimation, "Opacity"); Storyboard

Working with hmacsha256 in windows store app

让人想犯罪 __ 提交于 2019-12-10 03:14:49
问题 I'm migrating/converting/rebuilding a Windows Phone 7.1 app to a Windows 8 Store App. One method I am using in de WP7 app is giving me trouble: private byte[] GetSHA256Key(string data, string secretKey) { byte[] value = Encoding.UTF8.GetBytes(data); byte[] secretKeyBytes = Encoding.UTF8.GetBytes(secretKey); HMACSHA256 hmacsha256 = new HMACSHA256(secretKeyBytes); byte[] resultBytes = hmacsha256.ComputeHash(value); return resultBytes; } Looking at the documentation for Windows Store Apps I came

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

Framework used to develop the new windows azure management portal?

你离开我真会死。 提交于 2019-12-10 02:48:45
问题 Does anyone know what framework microsoft used to develop the metro like web management portal on windows azure. If so. Is it available to developers? 回答1: I posed the same question and got a lot of hate for it. The winning answer is the Metro UI Pack. It does a lot of what they do in Azure, but you'd have to implement the rest yourself. 回答2: The CSS is probably custom, but the portal uses a few open source libraries for the javascript part: jquery-1.7.1 jquery-ui jsObservable JsRender

What desktop does Metro stuff run in?

家住魔仙堡 提交于 2019-12-09 15:53:55
问题 Just curious, from a standpoint of WinAPI developer, what desktop do Metro apps run in? This stuff: 回答1: I didn't know that it would be such a secret... so I had to do some investigating and here's what I found: First off, to answer my original question -- the Metro (or Modern UI) stuff runs in the exact same desktop as the "desktop" apps (pardon the pun.) It is actually all very simple. The short answer -- all Microsoft approved Metro stuff runs in the Internet Explorer_Server container

Store user data in Windows 8 metro app

断了今生、忘了曾经 提交于 2019-12-09 14:50:55
问题 I am learning how to develop Windows 8 Metro style apps but i couldn't found a way to store user data in SQL Server for example. What could i use or how to store user data. 回答1: You cannot access local "desktop services" from the Metro app. So you will not be able to communicate with a local SQL Server. You can use online services that store your information or you can use local storage. Take a look at: How to store and retrieve local application data ApplicationData sample That question is

how to create collection (1:n) relation

不羁岁月 提交于 2019-12-09 10:49:18
问题 I'm implementing SQLite database in my Windows Store application (WinRT). I want to relation between two tables (1:n) Book (1) - Chapter (n) class Book { [SQLite.AutoIncrement, SQLite.PrimaryKey] public int Id { get; set; } public String Title { get; set; } public String Description { get; set; } public String Author { get; set; } public List<Chapter> Chapters { get; set; } public Book() { this.Chapeters = new List<Chapter>(); } } I get - $exception {"Don't know about System.Collections

How to register for Win8 periodic tile notifications?

馋奶兔 提交于 2019-12-09 06:39:49
问题 I am working on a Win8-UI-App (previously called Metro...) and trying to implement Periodic (Documentation for different methods) Tile Updates (Live Tiles) for the first time. I found a couple of very good resources on the internet and was able to do it. Unfortunately the question of where I should register for the notifications remained unsolved: Do I have to register for Notifications every time the app starts (e.g. in the App.xaml.cs OnLaunched() Method)? - Or is there an other, more

Place holder or watermark in TextBox windows 8

佐手、 提交于 2019-12-09 02:22:07
问题 I want to show a placeholder text in TextBox when user hasn't typed anything and TextBox is idle. In Andriod it can be done using android:hint="some Text" In iPhone it can be done as textFild.placeholder = "some text"; How can I do it in windows 8 metro apps? Thanks 回答1: Edit for windows-8.1 they have introduced a new property <TextBox x:Name="UserName" PlaceholderText="User Name"/> Please see Sergey Aldoukhov's answer For me this is the working solution that I got. If any one has better