windows-10-mobile

Attach Image/ImageBrush from code behind

跟風遠走 提交于 2019-12-19 03:16:33
问题 I'm trying to add an Image as the background of a UserControl. Depending on the value of a variable I need to change that background but whatever the path or Uri format I use, the background does not change. I've seen lots of questions here in stackoverflow but none fixes my single problem. I let the code below: if (callback.liveUvis.ContainsUVI(uvi)) { this.Status.Text = "LIVE"; ImageBrush imgB = new ImageBrush(); BitmapImage btpImg = new BitmapImage(); btpImg.UriSource = new Uri(@"///IMG//

how to implement chart control in Windows 10 UWP

那年仲夏 提交于 2019-12-18 12:17:48
问题 I need to implement linear graph. Is there any chart control for Windows 10 UWP? Any suggestions? Thanks 回答1: Syncfusion provides free license to independent developers for their Essential Studio suite. They have some great visualization tools. You can check them here: https://www.syncfusion.com/products/uwp You can find more information about its free license at following link: https://www.syncfusion.com/products/communitylicense 回答2: Filip Skakun has made a great library that has several

Changing Theme in Windows 10 UWP App Programmatically

拜拜、爱过 提交于 2019-12-18 03:23:36
问题 I was able to change theme using this.RequestedTheme = ElementTheme.Dark; But what I need is the whole application level, since this one only change the theme of the current page to dark. Whenever I try this App.Current.RequestedTheme = ApplicationTheme.Dark; I always get this error An exception of type 'System.NotSupportedException' occurred in UWPApp.exe but was not handled in user code Is there such a way that I can change the whole application theme from Light to Dark or vice versa? I'm

Windows 10 UWP - detect if the current internet connection is Wifi or Cellular?

人盡茶涼 提交于 2019-12-17 15:43:24
问题 In Windows 10 UWP app how do I detect if the current internet connection is Wifi or Cellular? 回答1: In UWP you can check network connectivity using the IsWlanConnectionProfile or IsWwanConnectionProfile properties. An example would be: var temp = Windows.Networking.Connectivity.NetworkInformation.GetInternetConnectionProfile(); if (temp.IsWlanConnectionProfile) { // its wireless }else if (temp.IsWwanConnectionProfile) { // its mobile } I hope this helps. 回答2: Other than just getting the

Get SIM MSISDN & IMSI number in Windows Phone Application

浪尽此生 提交于 2019-12-14 03:22:09
问题 Is it possible to get the SIM MSISDN & IMSI number in windows Phone app development? I have gone through some of the Q/A but they all are asked a long time ago. 回答1: You could get SIM MSISDN & IMSI number in Windows Phone Application. Please notice that you should manually edit your application Package.appxmanifest as follows: <Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http:/

Unable to deploy on Windows 10 Mobile

那年仲夏 提交于 2019-12-14 02:07:58
问题 I was coding normally on visual Studio 2015 Community, I did some deployments on my Lumia Icon device, but suddenly, when I was developing an app with OAuth 2.0 to interact with LinkedIn and tried to deploy this app, visual studio started to crash, and I got that error list 2>------ Deploy started: Project: OAuth2, Configuration: Debug Any CPU ------ 2>Deploying X:\...\...\Documents\Visual Studio 2015\Projects\OAuth2\OAuth2\Bin\Debug\OAuth2_Debug_AnyCPU.xap... 2>Connecting to Device... 2

How to detect that WP8.1 app launched on Windows 10 Mobile?

落花浮王杯 提交于 2019-12-14 01:04:23
问题 I need to check OS version (WP 8.1 or W10) in my code of WP8.1 application. What better way to do this? May be reflection or some special API for this purpose? 回答1: I didn't find any other way to do this, so here's my approach. The following property IsWindows10 detects if a Windows 8.1 or Windows Phone 8.1 app is running on a Windows 10 (including Windows 10 Mobile) device. #region IsWindows10 static bool? _isWindows10; public static bool IsWindows10 => (_isWindows10 ?? (_isWindows10 =

How to generate .appxupload file?

元气小坏坏 提交于 2019-12-13 19:25:52
问题 I am trying to build a package for Release on ARM CPU. When I built it with "Compile with .NET Native tool chain" checked, the package failed to build and threw me an error which states error : ILT0021: Could not resolve method 'System.Nullable<System.Double> $95_Windows.Graphics.Display.DisplayInformation.get_DiagonalSizeInInches()' . When I built it with "Compile with .NET Native tool chain" unchecked, there are no error and the package were successfully created, BUT the compiler generates

How to use C++ class in Windows 10 C# universal app? [closed]

故事扮演 提交于 2019-12-13 13:12:22
问题 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 4 years ago . I want to execute a method from cpp class in my Windows 10 C# Universal app. As i'm a newbie in Windows app development and C#, so i can use some code to understand the method. 回答1: You need to: 1- Create a new Windows Universal Runtime Component DLL, using C++/CX 2- Add a new ref

Send events from AppService to main Project

谁说胖子不能爱 提交于 2019-12-13 07:04:17
问题 I am implementing VOIP application. I use this sample VOIP sample. when a call changes status, I want to send an event from app service to main project in order to update UI, but I can not find any way to do it, I just can send a message from the main project to app service and receive a response. So anyone can show me the way to send message from app service to main project ? 来源: https://stackoverflow.com/questions/39462097/send-events-from-appservice-to-main-project