microsoft-metro

WPF interface like MetroTwit

两盒软妹~` 提交于 2019-12-03 10:17:10
问题 I've seen the beautiful MetroTwit interface http://www.metrotwit.com/ ; I would like to know which WPF components have been used for trying to reproduce it. 回答1: MetroTwit designer here :) All of the controls and animations were designed from scratch. Obviously I drew a lot of inspiration from Zune, Windows Phone 7 but everything was re-templated from the default base styles. Most of the icons were made in Photoshop then converted into Expression Design to be output in XAML. Since much of our

Order items horizontal in XAML GridView (Win8 / Metro)

走远了吗. 提交于 2019-12-03 09:29:34
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 used for creating Items through "ItemsSource" (and ItemTemplateSelector). Sorry, I have to take issue with

WinRT - Loading data while keeping the UI responsive

岁酱吖の 提交于 2019-12-03 07:52:16
I'm developing a Windows Metro app, and am getting an issue with the UI becoming unresponsive. As far as I can tell, the cause is as follows: <ListView ... SelectionChanged="ItemListView_SelectionChanged" ... This event is handled here: async void ItemListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.UsingLogicalPageNavigation()) this.InvalidateVisualState(); MyDataItem dataItem = e.AddedItems[0] as MyDataItem; await LoadMyPage(dataItem); } private async Task LoadMyPage(MyDataItem dataItem) { SyndicationClient client = new SyndicationClient(); SyndicationFeed

Decompiled .winmd file contains nothing but external calls

五迷三道 提交于 2019-12-03 07:31:12
I am trying to decompile the ComboBox control for my Windows Store app into C#, but there's no code. Instead, all the properties are calls to a separate assembly, it seems. How do I find where the real code exists, and how do I read the method bodies in C#? I cannot read assembly, so that would do me no good Some notes on how to reverse-engineer the WinRT internals. Under the hood, WinRT is pure COM. First place you want to look on your machine is C:\Program Files (x86)\Windows Kits\8.0\Include\WinRT This directory contains IDL files, or Interface Description Language . IDL is the starting

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

久未见 提交于 2019-12-03 07:13:45
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. The "get_pageTranslation" is actually the " PageTranslation " property on the MouseWheelParameters, you access it by saying: wheelParameters.PageTranslation this: get_PageTranslation() is the name of

Missing .NET features in Metro style application?

為{幸葍}努か 提交于 2019-12-03 05:50:45
Mostly out of curiosity, I started programming a small "Metro Style" project in Visual Studio 2011, the one that was released in Windows Developer Preview. It combines XAML for the design and C# (in my project) for the code-behind. The C# experience is mostly identical to the one you get on Visual Studio 2008 with .NET framework 4.0, save for these features that I wasn't able to find : System.Console , which make debugging a bit more difficult, And System.Threading.Thread.Sleep(TimeSpan) , which is a bit more inconvenient since that's exactly what I needed right now. So are these features

Local storage of structured data in Win8 Metro-style apps [closed]

不羁岁月 提交于 2019-12-03 05:33:02
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. In a desktop .NET application, the standard option for implementing a local relational database is to use SQL Server Compact Edition, and then of course there is the possibility to use SQLite and other third-party engines. What are the options available to a

Creating metro style winform in windows 7 using C# [closed]

我是研究僧i 提交于 2019-12-03 04:19:38
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Is it possible to design a metro styled winform in visual studio 10 or visual studio 11 on windows 7? If so, where can I find info on how to do it? I have already found some links, like http://msdn.microsoft.com/en-us/library/windows/apps/br211380 But I don't get the Windows Metro

CurrentAppSimulator.RequestProductPurchaseAsync purchasing simulation

烈酒焚心 提交于 2019-12-03 04:02:20
I am trying to implement in-app purchase for my Windows Store App (Metro App). I was referring to the code samples here , but when I triggered the RequestProductPurchaseAsync method nothing happens. When I say nothing happens, it means literally nothing. No return results (the result was supposed to be a receipt since I passed in true for includeReceipt ). Also, when I re-checked the ProductLicences[string].IsActive flag it will always return me false. How do I test this out properly? Thanks a lot! Make sure the app LicenseInformation.IsTrial is false, otherwise it won't work. In-app product

String encrypt / decrypt with password c# Metro Style

[亡魂溺海] 提交于 2019-12-03 03:56:53
I would like to encrypt and decrypt strings with a password. I use C# and WinRT (MetroStyle). Have somebody a class for encryption/decryption? The normal .Net System.Security.Cryptography namespace does not exist in Metro. You use the CryptographicEngine class in Windows.Security.Cryptography.Core namespace instead. If the password is only being verified/authenticated, do not encrypt it. Instead, use the following: using Windows.Security.Cryptography.Core; using Windows.Security.Cryptography; using Windows.Storage.Streams; ... // Use Password Based Key Derivation Function 2 (PBKDF2 or RFC2898)