uwp

Paragraph mark of UWP RichEditBox is not resized

佐手、 提交于 2020-06-29 04:02:26
问题 With this code ( Editor.Document.Selection.CharacterFormat.Size = 20; ) I change the font size of a UWP RichEditBox in the Page_Loaded -handle. When I start typing some characters, everything works fine. But when I select the paragraph mark and then type something, this text appears in the wrong font size (10.5). What I've tried is to expand the selection before setting the font size, but it seems that there is no paragraph mark when there's no text. But when the rich edit box is empty and I

ContentDialog delay after OK clicked

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-28 08:26:43
问题 I have a helper method that shows an ContentDialog with an input box that accepts string data. My issue is that it takes about 1 second after OK is clicked before the caller gets the string back (and it's very noticeable). I theorized that maybe it was the dialog fading out default animation/transition to end before the dialog returned. In the code below, there's about a 1 second delay between when OK is clicked on the dialog and when the "return textBox.Text" fires. /// <summary> /// Shows

How to send RTMP video stream in UWP?

梦想的初衷 提交于 2020-06-28 07:21:48
问题 I'm working on living Stream to server in UWP using MediaCapture, but I can't find any useful solution about it. Microsoft's library, but it only supports Azure. https://github.com/MicrosoftDX/AzureRTMPIngestLib I can play RTMP live video streaming from server but can't send video streaming to server, I want to know if there has any solution or library can send RTMP live streaming in UWP? 回答1: Following example below uses STSP . I've tested this example on a local network with using ipv4

CommandBar AppBarButton Icon Size

可紊 提交于 2020-06-23 05:22:30
问题 I'm trying to redesign my CommandBar AppBarButton icons to look like Calendar, Mail, etc. Microsoft Apps. As you can see below, Microsoft Apps icons are bigger smooth, thin than mine and also have vivid white color. I've tried to apply resources, and other configurations like font size, height, width and nothing works, I have no idea how to do it. This is my source code: <Page.Resources> link to resouse file: https://msdn.microsoft.com/pt-br/library/windows/apps/mt299105.aspx </Page.Resources

How to get system's closed caption font size?

不羁岁月 提交于 2020-06-17 15:47:29
问题 I want to get system's closed caption font style, and I referd doc. So far everything is good, except the font size. According to doc, ClosedCaptionProperties.FontSize returns enum ClosedCaptionSize , see code switch (Windows.Media.ClosedCaptioning.ClosedCaptionProperties.FontSize) { case Windows.Media.ClosedCaptioning.ClosedCaptionSize.FiftyPercent: richtextblock.FontSize = 50; break; case Windows.Media.ClosedCaptioning.ClosedCaptionSize.OneHundredPercent: richtextblock.FontSize = 100; break

Rotate Image in Win2D

╄→гoц情女王★ 提交于 2020-06-17 09:42:08
问题 I'm trying to rotate image but couldn't get expected result. I've tried with WIn2D but couldn't make image as expected. My tried Code public async void Rotate(string originalImagepath, Rect originalImageRect, float degrees) { int height = (int)Math.Sqrt(originalImageRect.Width * originalImageRect.Width + originalImageRect.Height * originalImageRect.Height); CanvasDevice device = CanvasDevice.GetSharedDevice(); CanvasRenderTarget webCardImage = null; CanvasBitmap bitmap = null; var logicalDpi

Windows Store asset generator as command line tool

僤鯓⒐⒋嵵緔 提交于 2020-06-17 09:32:08
问题 UWP Application requires a lot of icons and logos in different sizes. Do you know command line tool to generate assets from source image. For example in Microsoft Terminal project: https://github.com/microsoft/terminal Source image: Terminal.svg Produced icons and logos: images 回答1: You could use this open source solution which seems to generate all required assets (except badges): https://github.com/tomzorz/UwpBetterTileGen 来源: https://stackoverflow.com/questions/61953370/windows-store-asset

UWP C# app cannot open driver for device connected via USB

ぐ巨炮叔叔 提交于 2020-06-16 21:37:11
问题 I am trying to read data from a device that is connected via USB. My app is UWP C# . manufacturer of device supplied a .NET dll file. I can successfully open the driver, get driver config and read data with a C# console application (console application works without any problems) . However, same code does not work in UWP app. my code compiles and i am able to load dll. The code does nothing when device API's are called in UWP app. i was thinking it may have something to do with specifying

Uncaught Type JavaScript Error In Uno.Lottie WebAssembly

只愿长相守 提交于 2020-06-16 17:43:47
问题 I have an AnimatedVisualPlayer on my Page for playing a Lottie: <winui:AnimatedVisualPlayer x:Name="player" AutoPlay="true" Width="150" Height ="150" PlaybackRate="1.5"> <lottie:LottieVisualSource UriSource="ms-appx:///Lottie/waiter.json" /> </winui:AnimatedVisualPlayer> I installed these packages: Microsoft.Toolkit.Uwp.UI.Lottie (for theLottieVisualSource) Microsoft.UI.Xaml (for the AnimatedVisualPlayer) Uno.UI.Lottie (for the LottieVisualSource) Uno.UI (for the AnimatedVisualPlayer) I did

Xbox 360 Wireless Controller is not working via C++/WinRT and Windows.Gaming.Input API in console application

落爺英雄遲暮 提交于 2020-06-13 07:08:06
问题 I trying to use Windows.Gaming.Input API via C++/WinRT from Windows Console Application and it is not working as supposed with Xbox 360 Wireless Controller (reported as Xbox 360 Wireless Receiver for Windows (0x045e:0x0000) ). I got GamepadAdded event, then trying to read gamepad state via gamepad.GetCurrentReading() and seems GamepadReading struct is not filled at all for Xbox 360 Wireless Controller . Also I found that there is some strange error message on MSVS debug console: onecoreuap