uwp

How to migrate a UWP app's authentication from OneDrive SDK to Graph

假如想象 提交于 2021-02-11 06:51:51
问题 So I have this really old UWP app that has been using the Live/OneDrive SDK to provide authentication and identification for at least 7 years now. The app is registered with Microsoft Account Authentication which provides a Client Id and Client Secret to identify the app when an authentication request is made. When I use the SDK for authentication (OnlineIdAuthenticationProvider), it returns a unique Id (CurrentAccountSession.UserId) with which I can determine which of my users is using the

Tensorflow to ONNX conversion

限于喜欢 提交于 2021-02-10 20:22:44
问题 I'm currently trying to convert a saved (and working) .pb file that I created with this tutorial (https://github.com/thtrieu/darkflow) into a onnx file. I'm using winML tools at the moment but the result of the conversion doesn't work at all (the input parameters are wrong + the whole architecture is not correct). My input parameter (as specified on the very bottom of the readme): input:0 Output node: ouput:0 I want to use the converted model inside a UWP application that's running on a

Tensorflow to ONNX conversion

懵懂的女人 提交于 2021-02-10 20:19:37
问题 I'm currently trying to convert a saved (and working) .pb file that I created with this tutorial (https://github.com/thtrieu/darkflow) into a onnx file. I'm using winML tools at the moment but the result of the conversion doesn't work at all (the input parameters are wrong + the whole architecture is not correct). My input parameter (as specified on the very bottom of the readme): input:0 Output node: ouput:0 I want to use the converted model inside a UWP application that's running on a

My UWP Application Title Bar isn't changing its foreground color in Xamarin.Forms

邮差的信 提交于 2021-02-10 17:33:53
问题 I'm working on a cross platform app with Xamarin.Forms and on the UWP side, I added this code in MainPage.xaml.cs to change the app title bar to match the navigation bar I'm using: var titleBar = ApplicationView.GetForCurrentView().TitleBar; titleBar.BackgroundColor = Colors.LightSlateGray; titleBar.ForegroundColor = Colors.White; titleBar.InactiveBackgroundColor = Colors.LightSlateGray; titleBar.InactiveForegroundColor = Colors.White; titleBar.ButtonBackgroundColor = Colors.LightSlateGray;

UWP Community Toolkit DataGrid onecoreuap errors

你。 提交于 2021-02-10 17:00:58
问题 I am using the Community Toolkit DataGrid (6.0.0 build 86) in a desktop application running with Windows 10 version 1903. I get loads of errors like this: onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!00007FF80B5C04B0: (caller: 00007FF80B5C027B) ReturnHr(163) tid(4938) 80070490 Element not found. whenever any item is updated in the DataGrid. I would like to get rid of the error or at least be able to filter it out of the debug output - the output is all but

How to force a Windows 10 uwp webview app to load a url after suspend / resuming & auto reload when timing out

柔情痞子 提交于 2021-02-10 16:18:43
问题 This (simplified) c# / XAML UWP Webview app displays a blank page after the app is resumed after about 90+ sec. when displaying a local security cam video stream webpage. It appears to timeout after about 90 sec while the app is being suspended and then upon resuming the webview page is blank. To give the sample code below something to display, I randomly picked a site from a web search and landed on http://www.porttampawebcam.com/. The few youtube and webcam pages I've tried didn't reproduce

How to force a Windows 10 uwp webview app to load a url after suspend / resuming & auto reload when timing out

て烟熏妆下的殇ゞ 提交于 2021-02-10 16:07:47
问题 This (simplified) c# / XAML UWP Webview app displays a blank page after the app is resumed after about 90+ sec. when displaying a local security cam video stream webpage. It appears to timeout after about 90 sec while the app is being suspended and then upon resuming the webview page is blank. To give the sample code below something to display, I randomly picked a site from a web search and landed on http://www.porttampawebcam.com/. The few youtube and webcam pages I've tried didn't reproduce

Not able to access the Word Document on my system using the UWP application

走远了吗. 提交于 2021-02-10 07:54:10
问题 I am trying to edit a existing Word document using the UWP app (Universal Windows). But for some reason I am getting "File does not exist" error. I have tried using the below code to access the word document: using(WordprocessingDocument wordDoc = WordprocessingDocument.Open("C:\\Users\\Public\\Desktop\\Doc1.docx", true)) { } System.IO.FileNotFoundException: 'Could not find document' 回答1: Based on further clarification in the comments section, please see the following instructions. Add your

Not able to access the Word Document on my system using the UWP application

一笑奈何 提交于 2021-02-10 07:53:03
问题 I am trying to edit a existing Word document using the UWP app (Universal Windows). But for some reason I am getting "File does not exist" error. I have tried using the below code to access the word document: using(WordprocessingDocument wordDoc = WordprocessingDocument.Open("C:\\Users\\Public\\Desktop\\Doc1.docx", true)) { } System.IO.FileNotFoundException: 'Could not find document' 回答1: Based on further clarification in the comments section, please see the following instructions. Add your

How keep a UWP AppWindow fullscreen when another AppWindow enters Fullscreen on 2nd monitor?

孤人 提交于 2021-02-10 06:24:29
问题 I'm trying to open 2 AppWindows ( appWindowOne & appWindowTwo ) on separate monitors in full screen but when appWindowTwo opens appWindowOne minimizes. I've tried making the AppWindow re-enter full screen programmatically but it causes the other AppWindow to minimize. When manually clicked in the taskbar it restores to full screen without affecting the other but I would like to know if it's possible to do it programmatically? public static async void ShowAppWindows() { AppWindow appWindowOne