windows-store-apps

Deserialization of array with DataContractJsonSerializer with Windows Store App

佐手、 提交于 2019-12-12 04:38:09
问题 Is it possible to deserialize a json array with native DataContractJsonSerializer in a Windows Store App? Example, from: [{"groups":[{"name":"tom","vip":false},{"name":"sam","vip":true}]},{"groups":[{"name":"pam","vip":false},{"name":"mom","vip":true}]}] To, anything roughly in the line of: public class Group { public string name { get; set; } public bool vip { get; set; } } [DataContract] public class RootObject { [DataMember] public List<Group> groups { get; set; } } So far, my attempts

Windows 8.1 app packages created on windows 10 OS doesn't work on windows 8.1 OS

十年热恋 提交于 2019-12-12 04:31:51
问题 I'm using VS 2015 under Windows 10 OS and building a Windows 8.1 store app. When publishing my app I use x86 and x64 architecture packages and after the package has been installed using powershell on Windows 10 OS(Build 10240) it works fine but when I try to install it on Windows 8.1 app crashes before it starts. I build and publish the the app on VS 2013 under Windows 8.1 OS and the app works fine on both 8.1 and 10 OS's. Is there a problem with Windows 10(Build 10240)? If yes which OS build

Retaining selected item in sublist in DataTemplate change in Windows Store Apps

柔情痞子 提交于 2019-12-12 04:17:31
问题 I have generated an expandable Listview in Windows Phone 8.1. I'm switching templates on item selection changed and item click. <ListView Name="FiltersListview" ItemContainerStyle="{StaticResource StretchItemStyle}" ItemTemplate="{StaticResource CollapsedTemplate}" SelectionChanged="FiltersListview_SelectionChanged" IsItemClickEnabled="True" ItemClick="FiltersListview_ItemClick" Grid.Row="1" Grid.ColumnSpan="2"/> <DataTemplate x:Name="CollapsedTemplate"> <Grid Height="50"> <Grid

Windows Store app, Listview Groupheaderplacement Left and vertical scrolling

谁都会走 提交于 2019-12-12 04:13:10
问题 So I'm having a issue with GroupHeaderPlacement and Vertical scrolling. What Im trying to achieve is this: But for some reason my groups are getting arranged in a horisontal scrolling direction. Anyone know if I'm missing something obvious here or if you simple can't have a vertical scrolling Listview if you have GroupHeaderPlacement Left. The Code is: <ListView x:Name="ItemsGridView" Margin="118,-5,0,0" ItemsSource="{Binding Source={StaticResource AllCurrentGroup}}" SelectionMode="Single"

Launcher.LaunchFileAsync(…) not working

做~自己de王妃 提交于 2019-12-12 03:56:59
问题 I'm working on an App for Win8 which should include the possibility of saving contact information. The service I use offers VCard support so I decided on using them. I can succesfully download and save them, only opening them automatically doesn't work. The files are "correct", and can be opened from the explorer without any problem. Any ideas why LaunchFileAsync isn't working? Here's a dump of the code: private async void SaveContactSelected() { IRandomAccessStreamReference img =

Create sub folders in My Pictures from Windows Store application

有些话、适合烂在心里 提交于 2019-12-12 03:46:01
问题 I'm trying to create a folder structure within My Pictures folder from a Windows store app. But I can't seem to get pass the first level. I create my first level folder using the following code: IAsyncOperation<StorageFolder> appFolder = Windows.Storage.KnownFolders.PicturesLibrary.GetFolderAsync("AppPhotos"); if (appFolder==null) { //Create folder appFolder = Windows.Storage.KnownFolders.PicturesLibrary.CreateFolderAsync("AppPhotos"); } Now I want to create another folder below this call

JavaScript runtime error: Unable to get property 'activate' of undefined or null reference

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:34:43
问题 I get the following error: 0x800a138f - JavaScript runtime error: Unable to get property 'activate' of undefined or null reference when running the following line of javascript in my UWP App: Windows.UI.Xaml.Window.activate(); Windows.UI.Xaml.Window.current.activate(); or Windows.UI.Core.CoreWindow.activate(); API Reference, Handle app activation Doc 回答1: Windows.Ui.Xaml and the docs you linked aren't relevant for HTML/JavaScript apps. Windows.UI.Xaml is used only in Xaml apps. To call

Expression blend Animating multiple objects

孤街醉人 提交于 2019-12-12 03:33:40
问题 i am trying to create an animation in Expression blend for a Windows Store App. I want the animation to represent rainfall. The animations consists of 2 pictures and im trying to have 3 scenarions. 1) Lite rainfall: animate with a cloud and 1 drop as in picture 1. This works fine 2) Medium rainfall: Here i want to use the same cloud but add 1 more drop 3) Heavy rain: here i want to use the same cloud but add a third drop My problem is when i trye to create the two last scenarios it effects

How can RoutedEventArgs.OriginalSource Property be used to identify the specific UIElement that originated the event

我与影子孤独终老i 提交于 2019-12-12 03:23:17
问题 I'm trying to use the OriginalSource property to determine the specific UIElement that generated a PointerReleased event. According to the documentation RoutedEventArgs.OriginalSource returns the object that originated the event but I don't know how to use that to identify the UIElement. I can use OrginalSource.ToString() to identify the type of UIElement but not a specific instance. My approach may be entirely wrong, if so, that would be worth knowing too. Thanks. 回答1: If you have set of

Windows Store App Guidelines on editor applications

一曲冷凌霜 提交于 2019-12-12 03:16:49
问题 Most demos and webcasts that introduce and explain Windows Store App are about content consuming applications. Are there any design guidelines for creating editor apps? Question I have include: Is it advisable to take the Metro route here? What to do with things like toolbars (think formatting, etc), as the appbar isn't that big, and you're not supposed to include toolbars 回答1: This really depends on how complicated of an editor application you have in mind. I think anything heavy weight apps