uwp

Setting a Style for a Button, but changing some properties in UWP app

旧时模样 提交于 2019-12-24 06:49:23
问题 I'd like to create a Style for a Button that has an Icon and a Textblock beside it. Like this Pause Button here So for now I've just set up a Template inside the Button.Content property <Button> <Button.ContentTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <SymbolIcon Grid.Column="0" Symbol="Pause" /> <TextBlock Grid.Column="1" Text="Pause"/> </Grid> </DataTemplate> </Button.ContentTemplate> </Button> This works for

How to create Python ctypes structures for MS Windows PACKAGE_ID and PACKAGE_INFO structures?

孤人 提交于 2019-12-24 06:37:20
问题 I'm trying to translate this SO answer code into Python (and a bit from the other answer there) with the help of official documentation for PACKAGE_ID and PACKAGE_INFO. I'm getting full package names by GetPackageFullName , but some of my structures aren't formed well as OpenPackageInfoByFullName gives Unicode characters that are jibberish to me. Also PackageIdFromFullName returns ERROR_INSUFFICIENT_BUFFER when called. EDIT : As Paul Cornelius noticed, my code had issues with PACKAGE_INFO

Integrate skype for business in uwp app

旧时模样 提交于 2019-12-24 06:36:56
问题 I have been trying to find the best way to integrate skype for business in my uwp app. However, there are a ton of articles in MSDN and Skype/Office 365 developer pages. Most of them are from many months ago. What I want to do is simply place a skype call OR skype chat from within my uwp app. I would prefer to integrate it fully into my app but I am also okay if it just launches the skype for business app. However, I am not seeing any way to do this. Am I missing something or did MS leave

DeviceInformation.FindAllAsync() doing nothing

混江龙づ霸主 提交于 2019-12-24 06:36:02
问题 I've been using a camera BarcodeScanner (Microsoft's BarcodeScanner API) for 3 weeks now in my UWP application. It's working well but sometimes, the preview window of the barcode is not opening and the BarcodeScanner is not turning on. When I figured this out, I took my app in debug mode to see where was the problem and if they were some exceptions thrown. Here's how I'm initializing the BarcodeScanner : public async Task ClaimScannerAsync() { string selector = Windows.Devices.PointOfService

Windows UWP - How to programmatically scroll ListView in ContentTemplate

烈酒焚心 提交于 2019-12-24 06:18:21
问题 I have a list of chats on the left and messages for a given chat on the right. I want to have the MessageList to scroll to the bottom whenever it appears or gets its data updated. How can I do this? My code is based off of Microsoft's Master/Detail view example: https://github.com/Microsoft/Windows-universal-samples/blob/master/Samples/XamlMasterDetail/cs/MasterDetailPage.xaml The xaml page: <Page x:Class="MyApp.Pages.ChatsPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation

Using Google Drive .NET API with UWP App

你。 提交于 2019-12-24 06:06:48
问题 I am attempting to use Google Drive as a storage location in my UWP application. I started at the quickstart provided by Google. I copy the code into a blank UWP project, change some of the output code ( Console.Writeline to a textbox.append method) and I try to build it. It fails to build and reports the error: Cannot find type System.ComponentModel.ExpandableObjectConverter in module System.dll I am running Windows 10 and VS 2015 and I have installed the sdk through NuGet. The example code

UWP C# - Re-launch app from notification click

元气小坏坏 提交于 2019-12-24 06:06:01
问题 I'm writing a UWP app, and I have a ScheduledToastNotification that is added to the schedule when the app is suspended (e.g. like a reminder). However, if I close the app, the notification appears on time, but when I click on the notification (no buttons, just on the notification in general), the app doesn't launch correctly, stopping at the splash screen. How do I get the app the re-launch correctly? Thanks. 回答1: You should override OnActivated in App.Xaml.cs and handle this like protected

Support more than one color input in my Pixel Shader (UWP, Win2D)

北慕城南 提交于 2019-12-24 05:33:07
问题 I've been working on an app that can provide Color Replacement, and had a lot of help from @Jet Chopper on a solution. He's provided me the following code which essentially uses a ControlSpectrum control for Source and Target colors. The idea is you specify a Source Color which then gets replaced by a Target color. Here's the current working code: This is my original post that contains the original solution with a GIF. Original Post XAML: <Grid> <xaml:CanvasAnimatedControl x:Name=

How can I get Visual Studio to connect to the Windows Store?

允我心安 提交于 2019-12-24 05:05:35
问题 I'm trying to create app packages, in Visual Studio 2015, to upload to the Windows Store, but every attempt to connect to the Store results in the error: An unexpected network error has occurred. The app list cannot be refreshed. Please retry by pressing the Refresh button. This operation seems idempotent: pressing "Refresh" lands me back in the same state. I'll give a lot of detail about config and things I've tried below, but at this stage, I'm just after any method to get the app uploaded

Unable to get the “Add” method of a ColumnDefinitionCollection in UWP

三世轮回 提交于 2019-12-24 04:04:27
问题 In the context of a Windows Universal Application, and using reflection, I'm trying to get the Add method from a ColumnDefinitionCollection (the built-in type) So I use this: type.GetRuntimeMethods().First(info => info.Name == "Add"); BUT it returns null! It also happens with the Contains method. Both of them are defined in ICollection<T> ( IList<T> derives from it). However, if I define my own class deriving from IList<T> , it works perfectly. Then, how do I get a MethodInfo for the Add