uwp

InkCanvas Strokes are not rendered with proper bounds when switching PC

自古美人都是妖i 提交于 2019-12-12 21:25:53
问题 I have one UWP App using a UWP InkCanvas with a Load and Save Ink Buttons. I made a draw with the app on one laptop, saved the ink as a gif (+embedded isf) and sent the gif file to another laptop with a smaller screen to try it out. When opening the ink with the same app but on this other laptop, the draw is clipped at the boundaries, as if it does not fit the screen, which arguably is due to the laptop's smaller screen size. I tried to resize the InkCanvas as a whole by encapsulating it in a

UWP app uploading fails Microsoft store

拟墨画扇 提交于 2019-12-12 21:19:35
问题 I am trying to upload a UWP app to the windows store. The progress bar keeps on showing and I get the following error in the dev console. File.lastModifiedDate is deprecated. Use File.lastModified instead. AppSubmissionPackages.app.js:23:16 Setting state: 0 XfusUploader_V3.js:591:13 message Setting state: 0 level 1 XfusFileUploader.js:206:25 Upload Initialized XfusUploader_V3.js:591:13 message Upload Initialized level 1 XfusFileUploader.js:206:25 Setting metadata for AssetId: 5e0205e4-03c4

How to honor the “Regional format” setting in UWP Apps

蹲街弑〆低调 提交于 2019-12-12 21:14:38
问题 I want to format dates and numbers according to the "Regional format" setting the user configured in Windows 10. With WPF this was no problem. With UWP this seems to impossible without resorting to hacks. Sample code to experiment with. I stared a new question because the best similar one is 3 years old without an accepted answer. The "Regional format" is a Windows setting the user can configure independent of the language and region. E.g. the user can have configured: Languages: English (as

Acces Denied when I use Open File Picker for open text file for RichEditBox UWP C#

本小妞迷上赌 提交于 2019-12-12 20:45:57
问题 I want to open a text file with Open File Picker and show in a RichEditBox, but when I select the file and push Ok, Visual Studio show "Access Denied", I want to know how to solve this please, there is my code: var picker = new FileOpenPicker(); picker.ViewMode = PickerViewMode.Thumbnail; picker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary; picker.FileTypeFilter.Add("*"); picker.FileTypeFilter.Add(".txt"); picker.FileTypeFilter.Add(".text"); picker.FileTypeFilter.Add(".bat");

UrhoSharp.Forms on UWP - unable to load dll 'mono-urho'

五迷三道 提交于 2019-12-12 20:35:14
问题 I'm trying to use Xamarin.Forms to embed a Urho-application with some generic UI, defined in a portable project. It's working on Android, so that's nice! The Xamarin UrhoSharp Feature samples work for UWP, but the UI isn't cross-platform there, so I'd like to avoid that if possible. On UWP x86/32-bit, which seems to be the only supported config (?), I get this exception: "Unable to load DLL 'mono-urho': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" at Urho.Sdl

Only a single ContentDialog can be open at any time

假如想象 提交于 2019-12-12 19:13:52
问题 If I press my login button multiple times, it triggers the message: "An async operation was not properly started. Only a single ContentDialog can be open at any time." (The delay is there to represent the time it takes for the app to contact the server to see if the user is valid.) If I use MessageDialog everything works ok, but I want to use the extra customisation that ContentDialog provides. This link has not helped. My code example below shows me trying to use it. XAML: <Page x:Class=

How to use Windows Media Foundation with UWP without a topology

天大地大妈咪最大 提交于 2019-12-12 18:16:26
问题 I have been reading the Polinger book "Developing Microsoft Media Foundation Applications" in order to understand the Microsoft sample MixedRemoteViewCompositor for the Hololens. A key concept of the text is that Media Foundation components are COM objects that are connected into a graph structure called a Topology. However, the sample code is for Universal Windows Platform (UWP) and the word "topology" does not exist anywhere in the code. The call to create a topology does not exist in the

HttpClient is sending extra cookies

感情迁移 提交于 2019-12-12 18:08:33
问题 Running a UWP app* So I have an HttpClient and it's associated handler. I am making a request to a website, passing in specified headers, and using a specified CookieContainer, which is empty at the beginning of the request. When I send the request, Fiddler shows extra cookies being sent that I have not added. Where are they coming from? CookieContainer cookieJar = new CookieContainer(); HttpClientHandler handler = new HttpClientHandler( ); handler.UseDefaultCredentials = false; handler

Why cannot I open links in an external browser in a WebView (UWP)?

蓝咒 提交于 2019-12-12 18:07:42
问题 I'm developing a Web App application that is almost finished, the app has a local WebApp that has some links and I'd like to open them in an external browser (Edge, Chrome, etc.). My code is split in 3 parts: 1) Windows Runtime Component: using System; using System.Collections.Generic; using Windows.Foundation.Metadata; using Windows.Storage; using Windows.System; namespace CallJSInterface { [AllowForWeb] public sealed class CallJSCSharp { public async void OpenURL(string url) { await

ItemsControl not updating immediately after Property Value change

蓝咒 提交于 2019-12-12 17:43:15
问题 I have the following test code… XAML: <Page x:Class="Test.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Test" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:data="using:Test" mc:Ignorable="d"> <Grid Background="White"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> <