microsoft-metro

RSA Encryption in metro style Application

梦想与她 提交于 2020-01-03 18:51:14
问题 I have public key modulus and public key exponent and I need to generate a public key and encrypt data in metro style application. in c# we have RSAParameters class but I cannot find any thing of such sort for metro style applications. when I use the base64encoded public key directly received from the certificate and try to import the key with the below code I get an exception thrown ASN1 bad tag value met. which i think is due to the invalid format of the data. //sample dummy key from

Win8: Registration of the app in the layout folder … failed

懵懂的女人 提交于 2020-01-03 14:13:08
问题 Noob warning. I'm really new to Windows dev tools. I've got the latest Win8 RC installed, and got VS 2012 RC for it as well. Now I'm trying to create a Metro-style application (C#), but running into problems when executing tests from VS. The error message is: Error : DEP0700 : Registration of the app in the layout folder "C:\<FOLDER>" failed. error 0x80070005: Failed to set access rights to \\?\C:\<FOLDER> Failed to activate Metro style unit test executor. Error : The parameter is incorrect.

How to pre-select multiple listview/gridview items in C#/XAML windows 8 app?

雨燕双飞 提交于 2020-01-03 08:48:09
问题 in my app there is gridview of my custom class. I am using custom data template and values are bound from SQLite. Now when user launch the app, the certain items (NOT SINGLE) should be pre-selected in gridview/listview. Gridview/listview allows multiple selection. How can I achieve this with SelectedItem property ? UPDATE : I have followed this, it doesn't work for me. Returns 0 selections. UPDATE 2 : I have posted the code void MainPage_Loaded(object sender, RoutedEventArgs e) { using (var

How to programmatically maximize a window using LaunchUriAsync in Windows 8?

时光怂恿深爱的人放手 提交于 2020-01-03 05:47:20
问题 How do I maximize/minimize launching/current windows store applications programmatically using LaunchUriAsync in Windows 8? private async void Button_Click(object sender, RoutedEventArgs e) { var options = new Windows.System.LauncherOptions(); options.TreatAsUntrusted = false; options.DisplayApplicationPicker = false; Uri target = new Uri("ms-mail:"); bool isSucceed = await Windows.System.Launcher.LaunchUriAsync(target, options); } 回答1: There isn't a way to do this in Windows 8, but Windows 8

In metro, get all inherited classes of an (abstract) class?

。_饼干妹妹 提交于 2020-01-03 04:20:10
问题 I got stuck when trying to get all inherited classes in metro. The WinRT API is different from .net framework, so both the solutions (solution1 and solution2) don't work. Any code or tool solution is appreciated. I'm still trying. I will put my solution here if success. 回答1: This should work (based on the code from here): public IEnumerable<T> GetEnumerableOfType<T>(params object[] constructorArgs) where T : class, IComparable<T> { List<T> objects = new List<T>(); foreach (Type type in typeof

Using Livebindings to Assign Several Field Values to an FMX MetropolisUI TListBox Item.Text

空扰寡人 提交于 2020-01-03 02:27:11
问题 I am coding a FMX Metropolis UI application and trying to assign two field values of type string to the Item.Title member of TListBox by LiveBindings technology (using expression engine). When I use a TBindList in the following way: object BindList1: TBindList Category = 'Lists' ControlComponent = ListBox1 SourceComponent = BindSourceDB1 FormatExpressions = < item ControlExpression = 'Text' SourceExpression = 'FieldByName("name1").Text + " " + Field' + 'ByName("name2").Text' end>

How do I print a TextFile OR contents of a TextBox in Metro apps?

此生再无相见时 提交于 2020-01-02 17:54:49
问题 I have a TextBox control in my Metro app and need to be able to simply print its contents. I have done my research ever since Windows 8 Dev Preview was around and I still cannot figure it out. I've tried samples, read other answers and read the documentation - over, and over, and over. It just doesn't seem possible. So, after what, 2 years? I'm offering all my reputation (well, as much as they'll allow) in the hopes that someone can help me. 回答1: Here I have created a simple helper class

Reuse animations in Windows 8

▼魔方 西西 提交于 2020-01-02 08:39:08
问题 I am building Windows Store Application (Winrt, Metro, Windows 8 app). I try give images in gridview animation: after image is loaded from web and opened it populates its cell. I have storyboard for that: <Storyboard x:Name="PopupImageStoryboard"> <DoubleAnimationUsingKeyFrames EnableDependentAnimation="True" Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="image"> <EasingDoubleKeyFrame KeyTime="0" Value="100"/> <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="240"/>

Snapping ScrollViewer in Windows 8 Metro in Wide screens not snapping to the last item

喜你入骨 提交于 2020-01-02 07:12:11
问题 I have enabled snapping points in my app inside a ScrollViewer, as described in this question: Enabling ScrollViewer HorizontalSnapPoints with bindable collection The problem that I am having is that as I am trying my app in a full HD monitor (1920x1080) and each item is 1400 px width. By the time that I have the scroll snapped in the item #n-1 I can't scroll to the last one, because it doesn't snap... The hack I had to do was to add a "fake" item, transparent at the end, so I can scroll to

How can I associate css to html string, received from server?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-02 04:06:11
问题 I'm working on a metro app. Say I receive a string (html) and I load that string in a webview. How can I associate a .css to that html? Update: WebViewColumnRight as suggested in an answers is an android method; I'm working on a metro app, c#. 回答1: As JanivZ said the one way is that your returned html string should contain the reference to the required CSS so that it can be loaded automatically. or the other option you have is, you can use WebView.loadDataWithBaseURL htmlData = "<link rel=\