How to Display HTML output in RichEditBox in C# UWP
This is a RichTextEditor, and I want to display HTML output. Is it possible? As seen below ss here is display HTML content as a string in Richtexteditor. Please Help if we have any solution for this Sample string: "Dear…
Native memory leak
I am trying to debug the memory leak of a UWP app. The memory profiling seems to suggest the leak is primarily on the native side: I cannot make any sense of the native memory data: Could anyone offer a tip on how to read these native memory data to…
How remove focus borders of TextBox?
I personally don't like the thick borders when a TextBox gets focus. Is there any way to remove it?
How show/select a file in File Explorer using code?
Suppose I have a ListView that displays some files. When the user select one, I want to reveal the file in File Explorer. Is this possible in UWP?
Authenticate the Azure App Services with the Microsoft Entra ID in UWP app
Hi, We are utilizing Azure App Services for our Azure Mobile Apps table in the UWP apps. Our mobile apps currently access the Mobile Apps table with anonymous access level via Azure App Services. However, we have decided to enhance the security of our…
Help with porting service to UWP
Hello, I'm new into developing UWP apps, but I have tons of experience with C/C++, python, PHP, etc. Programming concepts aren't new to me. I'm developing an application for UWP called "OllamaUWP". This app is designed to be run on the Xbox…
TextBlock and TextAlignment=TextAlignment.Justify
Hello, I have such issue: When I set TextBlock.TextAlignment as TextAlignment.Center, the TextBlock's mouse events arent fired. If I set other TextAllignment all works Code below: XAML <Canvas x:Name="cnv"> …
Problem with XAMLReader
Hello, I have a xaml file in my Assets folder "MainPage1.xaml" defined as below. <StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:local="using:Label" > <Grid…
DeniedBySystem returned when i was used PhoneLineTransportDevice::RequestAccessAsync
I try to requset PhoneLineTransportDevice access with below code. It works fine in my Win10 22H2, but failed when i try to run in my Win11 23H2. would you like to give some advice? 1, Why it was failed DeniedBySystem in win11 ? 2, How to solve it…
Anyway to bypass control event firing during Page.Loaded event?
Simplified scenario: <ToggleButton x:Name="fuzzySearchToggle" Checked="fuzzySearchToggle_Checked" Unchecked="fuzzySearchToggle_Checked"/> bool _loading = true; private…
Enable FrameworkElements reflection using rd.xml file
Hello, Reading Microsoft docs I found informations about rd.xml file. Can I set in that file that metadata from FrameworkElements or Shapes wont be removed during compilation? And I will be able to fully using reflection after release type…
How to apply Width and Height of Text on CanvasDevice's DrawText, that means some text width is too small some text too high how to calculate this and apply
//JSON file "Templates": [ { "TemplateID": "1", "TemplateName": "WHITE", "CardFeeder": "A", "Sides": [ { "Side":…
How can I find the Text (width/length/ending point) in CanvasDevice via CanvasDrawingSession
fontFamilyName = $"ms-appx:///Assets/HelveticaNeue-Bold.ttf"; CanvasTextFormat FNtextFormat = new CanvasTextFormat { FontSize = CardTheme.FN.FS, …
How to paste image to canvas from WebView2?
In C# uwp project i want to paste image from a WebView2 to my Canvas. I tried to implement that in 2 ways: with drag n drop and with right click copy. Drag n drop cannot be possible because i cannot drag the image from webview2, so the subscribed drop…
I'm trying to release this uwp app on visual studio 2022 but it won't run I get this problem as shown from screenshot
I'm trying to release this uwp app on visual studio 2022 but it won't run I get this problem as shown from screenshot
Any way to specify binding source datatype?
I have Microsoft.Toolkit.Uwp.UI.Controls.DataGrid package in my project. Given the following XAML: <toolkit:DataGrid x:Name="resultDataGrid" <!-- How specify datatype of ItemsSource without specifying ItemsSource? --> …
How to get current memory usage by OS/device in a UWP Windows10 app programmatically?
Hi Everyone, I am working on a Windows 10 UWP app and I am trying to get to current memory usage by OS in an app like we see the memory in task manager. I am unable to find a solution. Did anyone come across such a requirement or worked on it? Please…
How do I make a list of button functions to Choose Default Search Engine uwp app made on visual studio 2022
How do I make a list of button functions to Choose Default Search Engine uwp app made on visual studio 2022
Need help on XAML syntax for ThemeResource and binding in DataTemplate
I have the following code and XAML: class FileCategory { public string Code { get; set; } public string Name { get; set; } } <!-- <Page.Resources> section contains theme resources --> <ComboBox.ItemTemplate> …
How get shell icon of a file in UWP?
In WIN32 SDK, I can call SHGetFileInfo to get the shell icon of a file used by system (used in File Explorer). Is there any equivelant API for this purpose in UWP?