uwp

Is it possible to build UWP app in Mac?

拥有回忆 提交于 2019-12-04 02:57:34
Is it possible to build the UWP app in the Mac platform? Like I have Mac PC and the new Visual Studio Code can use to write codes, but is it possible to install the Emulators and SDK for Windows 10 / UWP? I want to build apps for Windows platform. Unfortunately currently there is no option to use UWP dev tools on the MAC even with Visual Studio Code. The same is for Linux. 来源: https://stackoverflow.com/questions/39243485/is-it-possible-to-build-uwp-app-in-mac

UWP Button Changes Colors when Mouse hovers over

三世轮回 提交于 2019-12-04 02:51:20
I am trying to create a UWP button which will change background color when the mouse pointer hovers over it. The trouble I am having is that by default, it seems to already do this, but not to the color I want. When I hover over my button, which is red, it turns to the default grey and then back when I mouse out. I wrote code in C# to attempt to make it turn blue when I hover over it private void button_PointerEntered_1(object sender, PointerRoutedEventArgs e) { button.Background = new SolidColorBrush(Windows.UI.Color.FromArgb(255, 0, 0, 255)); } private void button_PointerExited_1(object

JsonConverter how to deserialize to generic object

百般思念 提交于 2019-12-04 02:38:56
问题 I'm sending this structure through webapi: [DataContract] public class PacketData { public enum Opcodes { Hello = 0x00, Close = 0x01, Serial = 0x02, GPIO = 0x04 } [DataMember] public object Data { get; private set; } [DataMember] public Opcodes Opcode { get; private set; } public PacketData(Opcodes opcode, object data) { Data = data; Opcode = opcode; } } And my problem is that I set on server side when I sending it I assign to Data few class ex. CustomClass1, CustomClass2 Now on deserialize I

String format using UWP and x:Bind

白昼怎懂夜的黑 提交于 2019-12-04 02:18:12
Does anyone know how to format a date when using x:Bind in a UWP Windows 10 app? I have a TextBlock that is bound (x:Bind) to a DateTime property on my ViewModel which is read from SQL. I want to format the output to "dd/MM/yyy HH:mm (ddd)". Is there a simple way of doing this? The default format is "dd/MM/yyy HH:mm:ss" which I presume is coming from a default. Could this be replaced maybe? Thanks. Use a StringFormatConverter (check if you maybe use some library, which already includes it, e.g. the UWP Toolkit (thanks, @maxp) or the older Cimbalino Toolkit ): public class StringFormatConverter

UWP unit test compile errors

拥有回忆 提交于 2019-12-04 02:09:37
问题 I'm migrating WPF projects to UWP. While setting up new unit test projects in UWP I'm running into errors when the new unit test targets a migrated project that in turn has a dependency on another project in the solution. (Each solution builds w/o errors) Solution Explorer: Communication.Base(.csproj uwp class library) Communication(.csProj uwp class library) -> depends on Communication.Base Unit_Test(.csproj) If Unit_Test project references both Communication.Base and Communication, I get

UWP Accessing Frame for page navigation through Usercontrol an Object?

偶尔善良 提交于 2019-12-04 02:09:21
I'm currently developing a UWP application that involves several Usercontrol objects inside of a Map ( using Windows.UI.Xaml.Navigation ). with these Usercontrol objects I sometimes require the user to be able to press a button in the objects and be taken to a new page, the only issue is I can't seem to access the page's Frame to be able to use the Frame.Navigate(typeof([page])); method. How would I go about this and/or are there any alternatives? I've been stuck on this most of the day! Thanks in advance for any help you guys can offer! We can let the page to navigate itself. Just define an

C# - Get mac address in Universal Apps

北慕城南 提交于 2019-12-04 01:44:32
问题 I am developing a Windows 10 Universal App, and I need to get the mac address of the network adapters of the device on which the universal app will run. I looked a bit into MSDN but I could find a way to get the mac address, can anyone help me out with the code to get the mac address of network adapters in universal apps for windows 10? Thanks in advance. 回答1: Hmmm I wrote something but I didn't tested it on mobile device because I don't have any at the moment but I tested it on my PC and

Does UWP Composition Api support color replacement?

╄→гoц情女王★ 提交于 2019-12-04 01:17:57
I've been trying to look for an examples which related to Color Replacement, here's an example using the Photoshop which can take, for example, a Blue shade and replace it with a Red shade: BEFORE: AFTER: Is this possible using the Composition Effects in the latest version of Composition Api? I've seen examples related to Hue Rotations and Temperature and Tint: https://xamlbrewer.wordpress.com/2016/04/08/uwp-composition-effects-hue-rotation/ https://xamlbrewer.wordpress.com/2016/04/19/uwp-composition-effects-temperature-and-tint/ But I'm wondering if the api is capable of using Effects to

No phone emulator showing in device list in visual studio 2015 RTM

ぐ巨炮叔叔 提交于 2019-12-04 00:18:32
问题 So I would like to test some apps on windows phone 10, but there is no emulator to choose from in the device drop down. I clicked on the 'Download new emulators...' option in the dropdown, downloaded the package, and installed a 3.5GB windows phone 10 emulator but I'm not seeing where it went. I've restarted windows and opened up the test project in VS2015 CE. Still no emulator available. Anyone else have this problem? Any ideas? 回答1: You need to switch the platform in your Visual Studio from

Universal Windows Platform app registration fails - blocked by AppLocker

假如想象 提交于 2019-12-03 23:38:52
Deploying a UWP app locally from Visual Studio 2015 (Update 3) fails with the error message: DEP0700 : Registration of the app failed. error 0xC000003A: Deployment of package 6dd81a71-9c3a-4204-abaf-886a9b0c29bb_1.0.0.0_x86__kcdnnw7pbsh48 was blocked by AppLocker. (0x80073cf9) The full output doesn't add further insight: Restoring NuGet packages... To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.' 1>------ Build started: Project: App2, Configuration