uwp

Visual Studio 2015 Update 1 xaml designer not showing for UWP

a 夏天 提交于 2019-12-08 17:19:04
问题 Where disappeared XAML designer for Universal Windows app in Visual Studio 2015 Update1? It is working for wpf and window 8.1 apps and XAML designer is enabled in Tools->Option->XAML Designer 回答1: Change the Target Version to (10.0; Bulid 10240) 回答2: See the notification asking to update Windows - 回答3: I was having the same problem. Updated windows from windows update as instructed by the VS2015 notification and now it is fixed. 回答4: I assume that you are using VS2015 on an operating system

Images from Assets Folder are not working in UWP app

怎甘沉沦 提交于 2019-12-08 16:45:26
问题 The Images are working in the MainPage, but I'm trying to Integrate it in an Navigational Panel Templete and the images don't show up. Can anyone suggest me what might be the problems. The Templete's making use of FRAMES but that should not be the issues. XAML code <Button Grid.Column="0" Style="{StaticResource NavigationButtonStyle}"> <StackPanel Orientation="Horizontal"> <Image Source="Assets/donut-icon.png" Style="{StaticResource IconImageStyle}" /> <TextBlock Text="Donut" Foreground=

LDAP queries using UWP on Windows 10 IoT

℡╲_俬逩灬. 提交于 2019-12-08 14:48:32
问题 After several hours of searching it appears that there is no way to query a local LDAP directory (Microsoft Active Directory or otherwise) from a UWP app. This seems like a rather bizarre hole in the UWP offering, and so I'm hopeful that I'm just missing the obvious. What (if anything) is the functional equivalent of System.DirectoryServices in the Universal Windows Platform world? 回答1: This thread is a little older, but you have 3 options today: Use the Windows Compatibility Pack for

await Task.CompletedTask for what?

此生再无相见时 提交于 2019-12-08 14:46:48
问题 I created UWP app with Windows Template Studio that introduced at Build2017. Below class is a part of generated code from it. public class SampleModelService { public async Task<IEnumerable<SampleModel>> GetDataAsync() { await Task.CompletedTask; // <-- what is this for? var data = new List<SampleModel>(); data.Add(new SampleModel { Title = "Lorem ipsum dolor sit 1", Description = "Lorem ipsum dolor sit amet", Symbol = Symbol.Globe }); data.Add(new SampleModel { Title = "Lorem ipsum dolor sit

Getting “Tuple element name is inferred. Please use language version 7.1 or greater to access an element by its inferred name.”

六眼飞鱼酱① 提交于 2019-12-08 14:25:59
问题 We have the following code that has been working fine in our UWP app until today after we updated Visual Studio 2017 to the latest 15.3 . private void Test() { var groups = new List<(Guid key, IList<(string, bool)> items)>(); var items = new List<(string, bool)> { ("a", true), ("b", false), ("c", false) }; var group = (Guid.NewGuid(), items); groups.Add(group); } There is no error message but this in the output window Tuple element name 'items' is inferred. Please use language version 7.1 or

Detect is a website address or email address on textblock

血红的双手。 提交于 2019-12-08 12:50:11
问题 I have a TextBlock whose data comes from JSON. I would like if the textblock the website address or email, the text color becomes blue and the user can click (if the email address it will go to the email application and the user can write an email directly to this address. Meanwhile, if the website address, it will immediately open the web browser). XAML: <TextBlock x:Name="DetailDeskripsi" Width="290" Text="{Binding Deskripsi}" VerticalAlignment="Top" HorizontalAlignment="Left" Height="auto"

UWP AppServiceConnection - SendResponseAsync returns AppServiceResponseStatus.Failure

一世执手 提交于 2019-12-08 12:48:28
问题 I'm trying to create a UWP service app on the Raspberry Pi3 which provides the access to the on board UART. I'm facing an issue about the AppConnection Request/response. this is the service method that handles the incoming requests from client apps internal class Inbound { public static async void OnRequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args) { var messageDeferral = args.GetDeferral(); var response = new ValueSet(); bool success = false; var msg =

Multi-Tenant app - OneDrive Business API

三世轮回 提交于 2019-12-08 12:39:09
问题 I need to create an universal app windows 10 that allow users save his files in his own OneDrive Business account. I read that I need to register the app with Azure Active Directory (developer account) and then request permissions for OneDrive for Business. But: Question1 : if app is set as "multi-tenant" in Azure AD, every user will store his files in his own business account onedrive? user logged: xxxx@contoso.onmicrosoft.com ---> onedrive business account contoso.onmicrosoft.com user

UWP VirtualKeyboard shows NumericPin layout in simple textbox

杀马特。学长 韩版系。学妹 提交于 2019-12-08 12:22:39
问题 I have multiple textbox controls in different views in my app. For each textbox inputScope is set to default or AlphaNumeric. In some scenarious when i open a ContentDialog and close it , KeyboardLayout becomes NumericPic layout for all textboxes, even if i click on windows taskbar keyboard button. NumericPic is not set anywhere, already checked in all code. Does someone knows anything about this ? Or maybe is a windows issue ? Checked on Lenovo Tablet , Windows 10 Home Single Language v 1607

Windows 10 Universal app screen size on launch not working

自闭症网瘾萝莉.ら 提交于 2019-12-08 12:17:53
问题 I had read a ton about setting the app window size on launch. Basically, my app is launching full screen everytime. I want to restrict it to a pre-defined size when it launches. However, nothing seems to be working. Here is what I have done so far: I have put the following: var desiredSize = new Size(400, 600); ApplicationView.GetForCurrentView().ExitFullScreenMode(); ApplicationView.GetForCurrentView().SetPreferredMinSize(desiredSize); ApplicationView.PreferredLaunchViewSize = desiredSize;