745 questions with Windows App SDK tags

Sort by: Updated
1 answer

OOP Background Task with SelfContained WinUI/WinAppSDK desktop app doesn't run if dotnet is not installed

I have a beta version available of my WinUI/WinAppSDK desktop app for a restricted set of users via Microsoft Store Package Flights. One of the users reports that none of the 3 background tasks in the app are executed. The 3 type of tasks are: a 15…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2024-01-23T13:42:10.23+00:00
Jos Huybrighs 136 Reputation points
edited the question 2024-01-31T07:39:20.4866667+00:00
Jos Huybrighs 136 Reputation points
1 answer

How to fix System.AccessViolationException?

Hi, I have a simple WinUI application to try MultiBinding. When I run debug the application, it throws error System.AccessViolationException. As I researched, an AccessViolationException is an exception typically raised when your process tries to…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2024-01-25T09:30:23.9133333+00:00
Nhan Tran 0 Reputation points
edited an answer 2024-01-31T06:10:58.6833333+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Does PointerEntered work for WinUI?

I have tried all kinds of things to make PointerEntered work to no avail. Xaml: <Border BorderThickness="5" BorderBrush="Yellow" Width="300" Height="300" …

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2024-01-27T00:45:15.5966667+00:00
Hong 1,206 Reputation points
accepted 2024-01-31T01:38:43.8666667+00:00
Hong 1,206 Reputation points
0 answers

How to change Mica TintColor which does support Dark/Light Theme?

Hi, i am trying to use Mica with Custom TintColor, i ended with using this helper class: internal class MicaSystemBackdrop : MicaBackdrop { public Window window; public WindowsSystemDispatcherQueueHelper m_wsdqHelper; public MicaController…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
asked 2024-01-21T20:13:18.5766667+00:00
Mahdi Hosseini 135 Reputation points
commented 2024-01-26T09:10:31.66+00:00
Mahdi Hosseini 135 Reputation points
0 answers

Do you know of a solution for the problem where the App Installer Launch button does not work when reinstalling a previous version of a .Net Freamwork App packaged using MSIX?

I have packaged a .Net Framework 4.6.1 application using the command line to create a MSIX package. The application installs and updates properly. The situation is that if version 2 is installed, and I click the version 1 MSIX package, reinstall of…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2024-01-24T13:37:14.42+00:00
Richard Montalvo 0 Reputation points
commented 2024-01-25T01:34:29.72+00:00
Xiaopo Yang - MSFT 12,151 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

WinRT : Why there is no need of un-initializing the apartment after initializing it?

Hi, I'm building winui3 desktop app in pure c++ without XAML files. In the beginning, I'm initializing the thread with Single Threaded Apartment with init_apartment . But I did not find any documentation that says we need to un initialize it. Why don't…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2024-01-19T16:13:49.5+00:00
Harshithraj1871 1,516 Reputation points
accepted 2024-01-24T06:46:36.97+00:00
Harshithraj1871 1,516 Reputation points
1 answer One of the answers was accepted by the question author.

Recommendations To Learn To Program Desktop Apps

I would like to lean how to program apps that run on the Windows 11 platform. I need recommendations for books that will take me through the principles and practices of building a Windows program. I have written C/C++ and Fortran programs that run from…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,493 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,766 questions
asked 2024-01-18T21:37:22.45+00:00
Aaron Greenwood 20 Reputation points
accepted 2024-01-21T20:22:42.49+00:00
Aaron Greenwood 20 Reputation points
2 answers

Migrate UWP App to MAUI Windows: Error after update with MSIX

I currently have a Xamarin Forms UWP App in the Microsoft Store. In the next months I want to update it to MAUI. For testing purposes and ensuring that all stored data are still available within the app, I want to simulate the Update of the Xamarin…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,319 questions
Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,138 questions
asked 2022-09-09T10:33:57.39+00:00
Reinhard Lackner 6 Reputation points
edited an answer 2024-01-17T14:49:39.68+00:00
Reinhard Lackner 6 Reputation points
1 answer

WinUI DataGrid (CommunityToolkit.WinUI.UI.Controls) - Resize of height is not working when user shrink or expand column

<ctWinUI:DataGrid x:Name="DataGrid" AutoGenerateColumns="False" CanUserSortColumns="True" GridLinesVisibility="All" …

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2024-01-16T03:25:50.7933333+00:00
Chirag R. Pandya 0 Reputation points
edited a comment 2024-01-17T06:54:55.32+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to add keyboard shortcut of OEM keys in Keyboard Accelerators in WinUI 3, XAML

Hi. I am creating an app in WinUI 3, C# Xaml. In the app I have a button which has the "+" symbol. The Keyboard shortcut for the button is only showing the numeric pad "+" key. How do I add a shortcut of the shift key and the OEM plus…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,493 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
782 questions
asked 2024-01-08T13:14:13.2866667+00:00
Hemanth B 886 Reputation points
edited the question 2024-01-16T03:31:30.31+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
1 answer

How to use ActiveX control into WinUI3 main window

I am developing WinUI3 app and want to use the activeX control created by my colleague that shows 3D object. But I am not sure how to embed the activeX control into WinUI3 control. (e.g. canvas or image, etc...). Is there the way to realize it? Thank…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 questions
asked 2024-01-10T23:32:39.7366667+00:00
Ueda Kunio(上田 邦男) 20 Reputation points
edited the question 2024-01-16T03:13:24.86+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How do I Maximize the Windows Screen in a .NET MAUI App

I want my .NET Maui app to run as a Mazimized window. How do I accomplish this? I tried using this code but it wants a DLLImport code? Microsoft.Maui.Handlers.WindowHandler.Mapper.AppendToMapping(nameof(IWindow), (handler, view) => { #if…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,138 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
asked 2023-12-28T22:52:32.7566667+00:00
Fritz Switzer 261 Reputation points
commented 2024-01-01T09:06:15.3566667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,371 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to Move Window to Left or Right side of screen in winui 3?

i want to create a window in Left or Right side of a screen in winui 3 i used following codes: var width = DisplayArea.Primary.WorkArea.Width; var height = DisplayArea.Primary.WorkArea.Height; var x = DisplayArea.Primary.WorkArea.X; var y =…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
asked 2023-12-17T20:05:44.6333333+00:00
Mahdi Hosseini 135 Reputation points
accepted 2023-12-28T06:51:59.8833333+00:00
Mahdi Hosseini 135 Reputation points
1 answer One of the answers was accepted by the question author.

how to port DrawingBrush stuff from WPF to WinUI 3?

I am trying to port a WPF control to WinUI.Most of the work is done and only the main work remains. The goal is to create a watermark control. i dont know how to port this code into winui, there is no DrawingBrush class: there is some error…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
asked 2023-12-22T07:56:13.2366667+00:00
Mahdi Hosseini 135 Reputation points
commented 2023-12-27T09:41:13.8733333+00:00
Mahdi Hosseini 135 Reputation points
1 answer One of the answers was accepted by the question author.

Trouble in using FileOpenPicker

"Invalid window handle. (0x80070578)" exception will through if FileOpenPicker is used the same way as for UWP. A remedy needs to be used. FileOpenPicker picker = new FileOpenPicker() { SuggestedStartLocation =…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2023-12-18T01:59:41.4033333+00:00
Hong 1,206 Reputation points
commented 2023-12-27T03:11:05.31+00:00
Hong 1,206 Reputation points
1 answer One of the answers was accepted by the question author.

Can I copy an added folder in Windows Application Packaging Project to Local via Package.appxmanifest?

I'm thinking about saving a folder with HTML files containing the manual locally so that it can be accessed via the app. The folder should be added to the Windows Application Packaging Project and then copied during installation. Can I define this via…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2023-12-21T19:52:23.7666667+00:00
youki 1,016 Reputation points
accepted 2023-12-26T23:11:57.6833333+00:00
youki 1,016 Reputation points
1 answer

winui 3 FindAncestor

Hello: In Wpf , The below code in a page/usercontrol will get the property value from MainWindow Datacontext. <TextBlock Text="{Binding DataContext.Arr[2],RelativeSource={RelativeSource Mode=FindAncestor,…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
asked 2023-12-03T15:07:45.8366667+00:00
Simon Ong 21 Reputation points
commented 2023-12-26T12:45:10.0333333+00:00
Eason Yao 0 Reputation points
1 answer One of the answers was accepted by the question author.

WinUI 3: ToggleSwitch Height and internal padding sizing

I have been having issues resizing the WinUI 3 Toggleswitch. Changing the height & minheight to anything too small makes the internal content off center (and cut off). There's no way to vertically align the content to top or center. There's no way to…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2023-12-21T18:08:29.66+00:00
John Granatino 25 Reputation points
commented 2023-12-26T12:20:55.69+00:00
John Granatino 25 Reputation points
1 answer

Where exactly can I find api-ms-win-core-console-l3-2-0.dll?

I've been looking left and right, here and there for the past 2 days trying to isolate/locate those dll files. But I cannot find it anywhere, none of the SDK have it anymore. I am trying to compile an app to work in Windows 7 environment (and possibility…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,493 questions
asked 2023-12-20T04:20:49.4466667+00:00
Eric To 0 Reputation points
commented 2023-12-26T08:17:08.9533333+00:00
RLWA32 42,366 Reputation points
2 answers

Generic.xaml - x:Bind with Converter binding

I have tried to create my own templated control that should work on x:Bind. By reading the offical document, I have created a code-behind Generic.xaml.cs file and referred it in App.xaml. When I use a converter inside my control, then it throws null…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
asked 2023-12-20T18:24:50.85+00:00
guess_me_if_u_can 126 Reputation points
commented 2023-12-26T05:34:48.62+00:00
Xiaopo Yang - MSFT 12,151 Reputation points Microsoft Vendor