uwp

System.Serializable attribute gone in Windows 10 UWP apps?

不羁岁月 提交于 2019-12-05 00:53:02
While trying to port an open source library (Aforge.net) to UWP, I discovered the System.Serializable attribute does not seem to exist. References for UWP work a little differently and I'm still trying to wrap my head around the changes so I hope I'm just missing something simple. My question is, can someone please confirm whether the System.Serializable attribute works/should work in a UWP app? I've tried looking through MSDN and various other google sources but cannot find any evidence one way or another. Any help is greatly appreciated. Update It looks like I may need to use DataContract /

Steps to diagnose translated UWP stack trace

社会主义新天地 提交于 2019-12-04 23:52:02
问题 So I have received a stack trace from my UWP windows application in release mode. I've now translated all the addresses to their method names using windbg. I now have this output: System.InvalidOperationException: InvalidOperation_EnumFailedVersion. For more information, visit http://go.microsoft.com/fwlink/?LinkId=623485 at MyApp!<BaseAddress>+0x7710b7 - MyApp!System::Func$4<System::__Canon,System::__Canon,System::__Canon,System::__Canon>.BeginInvoke+0x27 | (00b710c0) MyApp!System::Func$4

How to Know When a FrameworkElement Has Been Totally Rendered?

我与影子孤独终老i 提交于 2019-12-04 23:22:37
问题 For WPF there is the ContentRendered event in the Window class which let us know when the visual elements have been rendered. Is there anything that would help me achieve the same result for UWP apps? I'd like know when a FrameworkElement has been completely rendered so I can trigger some actions after that. I don't think the Loaded event helps on that since it's triggered way before there's anything on screen. 回答1: I would start with Loaded. It might be better than you think. https://msdn

Vector Map Tiles on Bing Map Control

ⅰ亾dé卋堺 提交于 2019-12-04 22:58:27
Hello I am working on a UWP map based application. I am currently using Raster Tiles data to remove the Bing Map default tiles. I Want to now shift to using Vector Tiles on the Bing map control. For Raster Tiles I know there are two ways: Set Tile data via the HTTPTileSource Set Tile data via the BitMapTileSource I want to know how can I implement Vector Tiles on the bing map control. The Vector tiles I get are of the extention .pbf . I have to hit the URL and get the .pbf file now how do I place the tile on the map? This won't be easy, but can be done. There are two key things you will need

Edge: In-Process native extension and Windows.System.Launcher.LaunchFileAsync

我的梦境 提交于 2019-12-04 22:58:23
I have developed an edge browser extension (native messaging) using the in-process mechanism as described here (through an activation of OnBackgroundActivated ). Within OnBackgroundActivated , or to be more specific in OnAppServiceRequestReceived of the established app service connection, I am attempting to call Windows.System.Launcher.LaunchFileAsync(IStorageFile) . This doesn't appear to happen on the UI-Thread (although it does work in debug mode with a debugger attached). The problem that I am facing is, that the application is headless, and therefore there is no CoreWindow

How can I change the height of the ListView item(UWP) that is clicked? Like Mail App does

流过昼夜 提交于 2019-12-04 22:11:10
Here is what I am trying to do. I have a very simple ListView that has a dataTemplate, which is bound to a ObservableCollection in page code. Fairly simple right? Now I want to change the height of a single Item in listview as soon as it gets clicked. Mail and Wifi-Ui of Windows uses this kind of manipulation. Check the Images to understand Better. Possible Solution:- I have defined two datatemplate in Xaml as a resource and in a click event I am changing the ItemTemplateSelector property of listview. But the problem is that every item in listview changes itself to that datatemplate, which by

Can I sync scrolling between multiple Listview items in UWP?

拥有回忆 提交于 2019-12-04 21:59:40
How can I link 2 Listview components, so that their scrolling is in sync (when I scroll one, the other scrolls too at the same time)? So basically I need a way to: 1) Monitor the scrolling event of Listview1 2) Set the same scrolling offset to Listview2 I found some examples here on Stackoverflow but they either refer to WPF, or WinRT and they are not compatible with my app. Thank you! What you have described in your question can be done by the following steps: Find the ScrollViewer inside the ListView (check out GetScrollViewer from this answer ). Subscribe to the ViewChanged event. Inside

How to add icons to SecondaryCommands in Command Bar

徘徊边缘 提交于 2019-12-04 21:47:21
I am trying to build a CommandBar that looks like this: Desired CommandBar with SecondaryCommands that have icons But I can't find a way to edit the default style of CommandOverflowPresenter in order to show SecondaryCommands like they are shown in Mail Windows 10 universal app, with icons on the left and text labels on the right. The CommandOverflowPresenter doesn't have a Content property to build a control template around it and bind content elements to AppBarButton Icon and Label properties. I found this article , but it doesn't show the Style for the AppBarButton. There was another

How to get the system accent color for UWP-Apps?

混江龙づ霸主 提交于 2019-12-04 21:36:37
I'm trying to get the Accent Color of a user in a UWP-App for Windows 10. I know how to get it in C#, but I develop my apps in WinJS. So does anyone knows the WinJS equivalent for var color = (Color)Application.Current.Resources["SystemAccentColor"]; ? It would also be nice, if I could Access this Color with CSS. I found some hints, that color: Highlight; would be the solution, but this gives me only a blue and not the Accent Color. Thanks alot. you can use WinRT API to do that : Windows.UI.ViewManagement.UIColorType enumeration provides all accents colors. You can make something like : var

Xamarin Forms ListView Images Sometimes Displays, Sometimes Doesn't (UWP)

我与影子孤独终老i 提交于 2019-12-04 20:59:49
I have a ListView in which I'm displaying the same image ( chevron_right.png ) in each of the rows. On load, none of the images show. However, when I navigate away from that page via Navigation.PushAsync() and then return back to the original page via Navigation.PopAsync() , the images display as they should. Simplified version of my code: <ListView x:Name="MyList"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <StackLayout Orientation="Horizontal"> <Label Text="Hello"> <Image Source="chevron_right.png" HeightRequest="30" WidthRequest="10"> </StackLayout> </ViewCell> </DataTemplate> <