726 questions with Windows App SDK tags

Sort by: Updated
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.
726 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,424 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,533 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,201 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,294 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.
726 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,891 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.
726 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,181 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.
726 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,424 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,269 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.
765 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,051 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.
726 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,533 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,051 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.
726 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,891 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,269 questions
asked 2023-12-28T22:52:32.7566667+00:00
Fritz Switzer 241 Reputation points
commented 2024-01-01T09:06:15.3566667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,576 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.
726 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,269 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,676 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.
726 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,269 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.
726 questions
asked 2023-12-18T01:59:41.4033333+00:00
Hong 1,051 Reputation points
commented 2023-12-27T03:11:05.31+00:00
Hong 1,051 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.
726 questions
asked 2023-12-21T19:52:23.7666667+00:00
youki 996 Reputation points
accepted 2023-12-26T23:11:57.6833333+00:00
youki 996 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.
726 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,269 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.
726 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.
726 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,424 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 40,471 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.
726 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 11,496 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Difference between Segoe Fluent Icons and Segoe MDL2 Icons

i am reading MS Docs about Segoe Fluent Icons and Segoe MDL2 Icons, but i am a little confused. for example both docs says that they support PUA E700-E900 PUA EA00-EC00 PUA ED00-EF00 PUA F000-F200 PUA F300-F500 PUA F600-F800 and MDL2 included in…

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.
726 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,269 questions
asked 2023-12-25T16:02:15.3766667+00:00
Mahdi Hosseini 135 Reputation points
accepted 2023-12-26T04:08:47.3966667+00:00
Mahdi Hosseini 135 Reputation points
0 answers

WinUI3 - Strange top line when maximized window

Hello! When we set ExtendsContentIntoTitleBar to true in the application on Dark Mode, we have strange top line when we click to maximize window. This behavior occurs when the screen/monitor have Resolution 100%, 125% etc. I opened a issue in Microsoft's…

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.
726 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,891 questions
asked 2023-12-18T17:37:19.0133333+00:00
LeonardodaCunhaMeloSantos-3381 0 Reputation points
edited a comment 2023-12-21T02:59:22.4266667+00:00
Roy Li - MSFT 32,051 Reputation points Microsoft Vendor
0 answers

WinUI3 - Title bar without top line when High Contrast Mode

Hello! I need help about issue on WinUI Platform. When we set ExtendsContentIntoTitleBar to true in the MainWindow constructor to create custom TitleBar, we have strange behavior: On High Constrast mode, there's no top line in the window. There are some…

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.
726 questions
asked 2023-12-18T17:20:23.4433333+00:00
LeonardodaCunhaMeloSantos-3381 0 Reputation points
edited a comment 2023-12-21T02:57:43.9733333+00:00
Roy Li - MSFT 32,051 Reputation points Microsoft Vendor
1 answer

WinUI3 - The "Close Button" hasn't Automation ID for inspection

Hello! Following the https://learn.microsoft.com/en-us/windows/apps/develop/title-bar to create a custom titlebar and when ExtendsContentIntoTitleBar = true is setted, all the titlebar become a InputNonClientPointerSource area. This way is not possible…

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.
726 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,891 questions
asked 2023-12-18T19:55:37.7733333+00:00
LeonardodaCunhaMeloSantos-3381 0 Reputation points
answered 2023-12-20T23:28:37.4133333+00:00
Rob Caplan - MSFT 5,412 Reputation points Microsoft Employee
1 answer

How to debug WinUI 3 app?

I started a new project with the WinUI 3 desktop blank app template with the packaging project: I did not do anything with the code. When I start debugging (F5), I get the following System.DllNotFoundException: Could anyone offer a tip on its remedy?

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.
726 questions
asked 2023-12-19T14:03:59.68+00:00
Hong 1,051 Reputation points
commented 2023-12-20T12:03:00.7966667+00:00
Hong 1,051 Reputation points
1 answer

How to make Winui 3 window transparent?

hi, i want to make a transparent window, i used following codes: public static void SetTransparent(Window window, bool isTransparent) { var rgn = NativeMethods.CreateRectRgn(-2, -2, -1, -1); var dmw = new NativeValues.DWM_BLURBEHIND() { …

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.
726 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,269 questions
asked 2023-12-18T07:08:37.57+00:00
Mahdi Hosseini 135 Reputation points
commented 2023-12-19T10:54:07.3833333+00:00
Mahdi Hosseini 135 Reputation points