uwp

What components I need to create VS 2017 offline layout for UWP development?

自作多情 提交于 2019-12-11 00:50:05
问题 I know I could download the whole workload, but it's 12 GB+ decompressed (so maybe 4 or 5 GB download) and with my connection it would take several days and I don't understand why many other components which I don't need are included like UWP tools for Xamarin, Web and ASP.NET, Windows 10 SDK which I downloaded as ISO etc... So would something like this be OK? vs_community.exe --layout D:\VS17 --lang en-US --add Microsoft.VisualStudio.Workload.Universal Microsoft.VisualStudio.Component.UWP

How to change default mode of x:Bind?

ぐ巨炮叔叔 提交于 2019-12-11 00:49:03
问题 I don't know why they decided to set default value for Mode to OneTime But that's not what I want most of the time. It wasted my whole day in debugging. Is there a way to set OneWay value as default for Mode of x:Bind ? <!--This will not listen to future changes. it is OneTime by default--> <TextBlock Text="{x:Bind Name}"/> <!--We have to explicitly define Mode value--> <TextBlock Text="{x:Bind Name, Mode=OneWay}"/> 回答1: starting in Windows 10, version 1607 (Anniversary Update), SDK version

Tabs are missing from my UWP app that targets Xamarin

半城伤御伤魂 提交于 2019-12-11 00:48:13
问题 I have created a simple Xamarin application, which contains two pages and each page is accessed by tabbing as shown below: The Android target is working correctly (shown in the screenshot above) so I have now added a UWP target. The problem is that the UWP target only displays one page i.e. there is no tab, so no way to tab between the two pages. How can I add the tabs to the UWP app? Note that I used a tab template when I created the UWP app. Everything else works as expected (except the

UWP / C# Rotating BMP

倾然丶 夕夏残阳落幕 提交于 2019-12-11 00:31:21
问题 The question seems to be asked already, however I cannot find a relevant answer. I am loading a BMP image to memory in a UWP app, and I would like to rotate it by either 90, 180 or 270, but I just cannot find the way to do this. The imgSource.rotate() does not seem to exist anymore The RotateTransform works with xaml .... Could anyone add the missing code by a chance please? public async Task LoadImage() { StorageFile file = await ApplicationData.Current.LocalFolder.GetFileAsync("test.bmp");

How to Disable UWP App Suspension?

自闭症网瘾萝莉.ら 提交于 2019-12-11 00:27:25
问题 I am using C# to develop a UWP app for Windows 10 running only on desktop computers, targeting platform version 10.0.14393.0. Due to business requirements, the app lifecycle must behave like a traditional Win32 application. Therefore, I followed the recommendation from this article to request an ExtendedExecutionSession with ExtendedExecutionReason.Unspecified . I also configured Windows to never sleep and never hibernate. Still, on rare occasions, Windows will revoke the extended execution

UWP - Show textbox text highlight while textbox is out of focus

北城以北 提交于 2019-12-11 00:18:49
问题 How do I prevent the textbox from hiding the selected text highlight when the textbox loses focus? The following line worked for WPF textBox1.IsInactiveSelectionHighlightEnabled = true; but what is the equivalent for UWP? 回答1: As I know there is no equivalent in UWP for that. One of possible work-around solutions could be to use some image to keep selection highlighted. Here is sample code: XAML: <Border BorderThickness="2" BorderBrush="{ThemeResource TextBoxBorderThemeBrush}" Height="164"

Universal Windows Platform/UAP: what is AOT?

北城以北 提交于 2019-12-11 00:12:17
问题 I recently created a blank UWP application in Visual Studio 2015, and then tried to add a nuget package to that application. The package installation failed and resulted in the following messasges in the output window... System.Reflection.Emit.ILGeneration 4.0.1 provides a compile-time reference assembly for System.Reflection.Emit.ILGeneration on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm-aot. One or more packages are incompatible with UAP,Version=v10.0

Disable fullscreen/maximise button in UWP-application?

流过昼夜 提交于 2019-12-11 00:12:13
问题 I'm working on a Universal Windows Platform-application for desktop platforms. How can I disable/remove the maximise-button from a <page> or <application> in Windows 10? 回答1: You cannot. I didn't see any option to disable these buttons. You can only change their colors. ApplicationViewTitleBar titlebar = ApplicationView.GetForCurrentView().TitleBar; titlebar.ButtonBackgroundColor = Windows.UI.Color.FromArgb(255, 126, 188, 66); titlebar.ButtonForegroundColor = Windows.UI.Colors.White; 回答2: If

Exception occurs when button clicked inside my custom control

纵然是瞬间 提交于 2019-12-10 23:27:31
问题 I have made a UWP custom templated control that contains a collection of ICommandBarElement, much like the standard CommandBar control. The problem is that as soon as I click on any of the AppBarButton contained in my CommandBar implementation, an unhandled exception occurs: "No such interface supported". There is something I must doing wrong but I just can't see it. Here is the code for the custom control: public sealed class MyCommandBarControl : ContentControl { public MyCommandBarControl(

Admin Consent not working with App Model V2

怎甘沉沦 提交于 2019-12-10 23:26:46
问题 I have a web application that used Azure AD authentication and accesses graph.microsoft.com. We currently do the required application registration in Azure Management Portal, but we want to move to the new App Model V2 with application registration in apps.dev.microsoft.com. This allows us to use scopes that are defined in the application instead of resources defined in the Azure Portal. However, with exiting App Model, we can define admin-consent so that the admin can give consent to all