uwp

C# to find if a user was migrated from Windows Server AD to Microsoft Azure

送分小仙女□ 提交于 2020-08-10 01:13:26
问题 In my personal Azure account, I migrated some users from a Windows Server AD , and some were created directly in Azure AD , and some users came from Microsoft Personal accounts. I have been able to display these users in a Windows Desktop app using Microsoft Graph - similar to what we see in Azure Portal (as shown below). Moreover, as shown below, the Source of user list in Azure portal tells you whether a user was migrated from Windows Server AD or not. But I have not been able to find a way

How to use MSBuild to build multiple platforms

拈花ヽ惹草 提交于 2020-08-09 13:40:31
问题 I am using Visual Studio online build with an MSBuild task. I currently have the following MSBuild Arguments fed to my task: /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM";AppxPackageDir="$(Build.BinariesDirectory)\AppxPackages\\";UapAppxPackageBuildMode=StoreUpload This creates my application in x86 , x64 and ARM . It creates Release version of the libraries in x86 BUT creates Debug version of my libraries in x64 and ARM . When my .appxupload package is creates

How to use MSBuild to build multiple platforms

孤人 提交于 2020-08-09 13:36:20
问题 I am using Visual Studio online build with an MSBuild task. I currently have the following MSBuild Arguments fed to my task: /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM";AppxPackageDir="$(Build.BinariesDirectory)\AppxPackages\\";UapAppxPackageBuildMode=StoreUpload This creates my application in x86 , x64 and ARM . It creates Release version of the libraries in x86 BUT creates Debug version of my libraries in x64 and ARM . When my .appxupload package is creates

How to use MSBuild to build multiple platforms

吃可爱长大的小学妹 提交于 2020-08-09 13:36:11
问题 I am using Visual Studio online build with an MSBuild task. I currently have the following MSBuild Arguments fed to my task: /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM";AppxPackageDir="$(Build.BinariesDirectory)\AppxPackages\\";UapAppxPackageBuildMode=StoreUpload This creates my application in x86 , x64 and ARM . It creates Release version of the libraries in x86 BUT creates Debug version of my libraries in x64 and ARM . When my .appxupload package is creates

How to get {x:DataType} for a DataTemplate in C# for custom DataTemplateSelector

十年热恋 提交于 2020-08-07 04:20:14
问题 I'm writing a custom DataTemplateSelector for a ComboBox control and I'll need to use it to display different DateTemplates for different kind of objects, in both the closed and open modes for the ComboBox . Here's the DataTemplateSelector I came up with: public class ComboBoxTypedDataTemplateSelector : DataTemplateSelector { public IEnumerable<DataTemplate> SelectedTemplates { get; set; } public IEnumerable<DataTemplate> DropDownTemplates { get; set; } protected override DataTemplate

How to get {x:DataType} for a DataTemplate in C# for custom DataTemplateSelector

。_饼干妹妹 提交于 2020-08-07 04:20:03
问题 I'm writing a custom DataTemplateSelector for a ComboBox control and I'll need to use it to display different DateTemplates for different kind of objects, in both the closed and open modes for the ComboBox . Here's the DataTemplateSelector I came up with: public class ComboBoxTypedDataTemplateSelector : DataTemplateSelector { public IEnumerable<DataTemplate> SelectedTemplates { get; set; } public IEnumerable<DataTemplate> DropDownTemplates { get; set; } protected override DataTemplate

Using SystemMediaTransportControls to get current playing song info from other app

試著忘記壹切 提交于 2020-08-05 07:53:45
问题 I write a some program that should work with another player and retrieve info about current playing song. That player is written using UWP, so Windows knows what track is playing, so i can see it's name and other info when changing volume: https://i.imgur.com/nNy16Gs.png Things I tried: var systemMediaControls = SystemMediaTransportControls.GetForCurrentView(); From Get current playing track info from Microsoft Groove Music app Unfortunately, as I understand, it's just for local media,

C# UWP Windows 10 Inter Process Communication with MemoryMappedFiles missing

白昼怎懂夜的黑 提交于 2020-08-01 13:36:08
问题 I'm facing a new problem, that occured while coding my IPC for my app. Before UWP I was able to use the directive using System.IO.MemoryMappedFiles; sucessfully. Now I can't use using System.IO.MemoryMappedFiles; and I need it. Is everyone facing the same issue? If yes, how do you solved it? My app doesn't compile anymore. I already tried to reimport the System.Core.dll as a reference and with DllImport, neither worked. 回答1: Direct inter-process communication is not available in Universal

Microsoft Graph Error - Resource not found for the segment 'root:' when uploading file to OneDrive

ぃ、小莉子 提交于 2020-07-31 05:27:15
问题 When working on this tutorial on Uploading File to OneDrive from Microsoft Graph OneDrive team, I'm getting the following error at the last line of the code shown below: Remarks : There are some posts online with a related issue, (such as: This, or this, or this or this or this). But they all seem to have a different context or do not have a response. Question : What could be the issue, and how can we resolve it Resource not found for the segment 'root:' Relevant Code : GraphServiceClient

Microsoft Graph Error - Resource not found for the segment 'root:' when uploading file to OneDrive

自闭症网瘾萝莉.ら 提交于 2020-07-31 05:24:33
问题 When working on this tutorial on Uploading File to OneDrive from Microsoft Graph OneDrive team, I'm getting the following error at the last line of the code shown below: Remarks : There are some posts online with a related issue, (such as: This, or this, or this or this or this). But they all seem to have a different context or do not have a response. Question : What could be the issue, and how can we resolve it Resource not found for the segment 'root:' Relevant Code : GraphServiceClient