win-universal-app

Type universe cannot resolve assembly: System.Configuration AND Cannot resolve Assembly or Windows Metadata file 'System.Configuration.dll

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 11:56:22
问题 I am developing UWP App via VS2015 in Win10. My App was running perfect, but just today when I start running my App, even I didn't make changes of such ... and It shows 2 errors and is not running now. 1. Type universe cannot resolve assembly: System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. 2. Cannot resolve Assembly or Windows Metadata file 'System.Configuration.dll' What is these errors ... I didn't find the satisfactory solution 回答1: I was able to

Changing value of a ThemeResource at runtime does not reflect in other views

拥有回忆 提交于 2019-12-20 10:55:26
问题 I am using custom themedictionary in my UWP app. I change the value of a ThemeResource at runtime. This change is reflected only in the mainview and not the other views. Even if i create a new view after changing the resource's value the new view uses only the intial value of the resource. Is there anything I'm doing wrong? This is how I change my resource's value. (Application.Current.Resources["BackgroundBrush"] as SolidColorBrush).Color = Windows.UI.Colors.Black; My Secondary View's XAML:

Make app icon on task bar have a transparent background (UWA)

依然范特西╮ 提交于 2019-12-20 10:26:09
问题 I am making a Universal Windows App and I want my apps icon on the task bar to have a transparent background so it isn't in a coloured box. A lot of Microsoft's own stock apps are like this (Mail, Photos, Xbox etc) and I know it can be done because I did it by accident. But the icons I was using were too big and when I used correct sized ones it stopped working. I've tried using the old too large icons again and it still doesn't work. Setting the tile background in the apps manifest just

UWP Windows 10 App memory increasing on navigation

女生的网名这么多〃 提交于 2019-12-20 09:45:24
问题 I have a UWP Windows 10 App and noticed the memory usage in task manager is increasing over time. I stripped the App back and found the memory is increasing when the navigating pages. So I made a simple app with just a few pages to test and the memory is still increasing in this simple App. I have a MainPage that navigates a frame from Page1 to Page2 and back on a timer. public sealed partial class MainPage : Page { private DispatcherTimer _timer; private bool _page1Showing; private bool

How to check internet connectivity type in Universal Windows Platform

╄→гoц情女王★ 提交于 2019-12-20 08:39:44
问题 I would like to check internet connectivity type in Windows Universal Application. Not Connected Connected via WLAN(WiFi) Connected via WWAN(Cellular Data) Connected to a metered network in order to provide an option for downloading large size content. And also sense the significant network availability changes. Currently, I'm only able to check whether internet connected or not using GetIsNetworkAvailable method of NetworkInterface class. NetworkInterface.GetIsNetworkAvailable(); 回答1: 1.

How can used semantic zoom for 3 level in UWP?

与世无争的帅哥 提交于 2019-12-20 06:32:29
问题 I want to use semantic zoom (or its effect) for selecting a location in my UWP Application. I want to select the county first, and second select city, and third select the location. Has anyone a true idea about this? I searched multiple zooms for semantic zoom, but it's apparently impossible. I used two semantic zoom parallax, but that has its problems also. Can anyone help? 回答1: I found my solution, https://blogs.msdn.microsoft.com/shashankyerramilli/2014/02/14/implementing-a-custom-semantic

Create slidable ListView in Windows 10 UWP apps like in Maps app

你。 提交于 2019-12-20 06:32:01
问题 I'm creating UWP Application where I need to show an array of results in a sliding menu. The sliding menu is scrollable and can be slide to change it's height like the search results in Maps Application in windows 10 mobile . I can't find any tutorial to create such an experience. Thanks in advance 回答1: You can use a UserControl and UIElement.RenderTransform property to do this. Here is a sample: UserControl "SlidableControl" xaml: <Grid x:Name="SlidRoot" ManipulationMode="All"

Opening File in C# Access Denied [duplicate]

拜拜、爱过 提交于 2019-12-20 06:27:46
问题 This question already has answers here : Read file from subfolder of application installation folder (4 answers) Closed 3 years ago . I am trying to read the content of a text file but I get the 'Access to the path is denied' exception of type 'System.UnauthorizedAccessException'. I've tried the following: Ran Vs in Administrator mode Checked if the file is read only Checked if the file is hidden Checked if the file has full control on all users My code: private async void MyButton_Click

StartupTask class is not recognized

好久不见. 提交于 2019-12-20 06:17:34
问题 I'm trying to get my Centennial application to autostart on logon. According to this post that can be done. But then to disable it programmatically I'd need to use the Windows.ApplicationModel.StartupTask class and Visual Studio refuses to recognize it. So how is that class used? 回答1: You need to add a reference to the Desktop Extension SDK. 来源: https://stackoverflow.com/questions/45849937/startuptask-class-is-not-recognized

Is there a way I can have an object take up multiple grids in Windows UA?

a 夏天 提交于 2019-12-20 06:08:54
问题 I'm trying to make my first app, and I'm having a little trouble with the grids. I'm trying to make the left side of the screen a map, and the right side 2 boxes/grids. I'm not sure if there is a way to have an object within multiple grids or how to just setup a layout like that (basically a + with the left line gone) So far, this is the code I gotten for the layout. <Grid.RowDefinitions> <RowDefinition Height= "*"/> <RowDefinition Height= "*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions>