298 questions with Windows App SDK tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

How to remove the clear button at the end of the TextBox in WinUI3

If the TextBox is getting focus and there chars it, there will be a X button appear, so how to remove or hidden the button.

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.
749 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.
789 questions
asked 2024-07-10T09:52:42.2533333+00:00
C CB 150 Reputation points
commented 2024-07-12T02:25:08.8866667+00:00
C CB 150 Reputation points
1 answer One of the answers was accepted by the question author.

How to scroll in the tabs area in TabView in WinUI3 by using code

There are many tabs in a TabView Control in WinUI3 App. I made a function: pin a selected tab to top. After set it to the top (meaning the first tab ), I make it be selected. Everything is ok, but the first selected tab may be hidden if I had previously…

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.
749 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,604 questions
asked 2024-07-05T08:19:01.0566667+00:00
C CB 150 Reputation points
accepted 2024-07-10T09:27:50.8033333+00:00
C CB 150 Reputation points
2 answers One of the answers was accepted by the question author.

How to set a fixed width for the header of TabViewItem in TabView

There is a TabWidthMode property for TabView to specify the width of the tabs. But I want to set a fix width for each tabs. So how to do it? I have a Style setting for the TabViewItem, but I don't know how to add the Width property into…

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.
749 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,604 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.
789 questions
asked 2024-07-04T02:44:23.1733333+00:00
C CB 150 Reputation points
accepted 2024-07-05T06:08:47.4233333+00:00
C CB 150 Reputation points
2 answers One of the answers was accepted by the question author.

Launching Windows Applications using Voice Assistants

Is there an alternative to Cortana on Windows that I can use to launch my applications using a voice command like "Open Abc App"? I have come across an application named "Voice Access," but I can't find any documentation on how to use…

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.
749 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,508 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,625 questions
asked 2024-04-24T06:38:51.75+00:00
Rohan Pande 420 Reputation points
edited an answer 2024-07-04T14:43:43.1966667+00:00
Caozhi Li 0 Reputation points Student Ambassador
1 answer One of the answers was accepted by the question author.

In WinUI3, How to make the TabItems load the corresponding page after clicking and selecting them

In WinUI3, TabView has some TabItems. how to make the TabItems load the corresponding page after clicking and selecting them. My codes as following, but they don't work( Just check the second tab). <?xml version="1.0"…

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.
749 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,604 questions
asked 2024-06-27T08:36:37.03+00:00
C CB 150 Reputation points
accepted 2024-06-28T09:13:16.31+00:00
C CB 150 Reputation points
1 answer One of the answers was accepted by the question author.

In UWP or WinUI3, how to use AutoSuggestBox as the search box and highlight the matching keywords in red in the search result list

AutoSuggestBox is a good control in WinUI3. I use it as a search box and display search results. But how to achieve more advanced functions, such as highlighting keywords in the results ( ex, one of the result is 'powered by Microsoft', and only…

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.
749 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,604 questions
asked 2024-06-25T01:56:14.0933333+00:00
C CB 150 Reputation points
accepted 2024-06-27T01:15:19.66+00:00
C CB 150 Reputation points
1 answer One of the answers was accepted by the question author.

Not able to create new object of DesktopWindowXamlSource after closing one

Hi, I'm working on Win32 application with Xaml Island. I'm facing the issue with DesktopWindowXamlSource. If I create two objects of DesktopWindowXamlSource, it's working as expected. However, If I create one object and close it using Close() method.…

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.
749 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,508 questions
asked 2024-06-18T05:49:24.7766667+00:00
Shyam Butani 160 Reputation points
accepted 2024-06-19T10:05:39.8833333+00:00
Shyam Butani 160 Reputation points
1 answer One of the answers was accepted by the question author.

How to set up WinUI3 applications to run as administrators

I'm begging to write WinUI3 application. Administrator privileges are required for certain functions. In the Win-form program, simply configure the following in the app. manifest <requestedExecutionLevel level="requestAdministrator"…

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.
749 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,604 questions
asked 2024-06-07T08:35:00.8433333+00:00
C CB 150 Reputation points
commented 2024-06-13T09:34:52.6833333+00:00
C CB 150 Reputation points
2 answers One of the answers was accepted by the question author.

What is the best way for customizing TitleBar in WinUI 3?

What is the best way for customizing TitleBar in WinUI 3? I used to customize in this way: 1.using window.Extend... and window.SetTitlebar(element); 2.using window.AppWindow.Extend... now there is a new way for customizing titlebar…

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.
749 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.
789 questions
asked 2023-11-10T14:50:42.9966667+00:00
Mahdi Hosseini 135 Reputation points
answered 2024-06-06T14:28:38.25+00:00
Jay Paans 0 Reputation points
1 answer One of the answers was accepted by the question author.

How can I change the border color of a NavigationView in WinUI 3?

Which property is it in the generic.xaml? I can't even find the TargetType. Lines within the red rectangles.

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.
749 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.
789 questions
asked 2024-05-22T15:53:25.08+00:00
youki 1,016 Reputation points
accepted 2024-06-06T05:47:34.11+00:00
youki 1,016 Reputation points
2 answers One of the answers was accepted by the question author.

How can I set a control/element to full screen in WinUI3

I'm using MediaPlayerElement to play video, but there is no full screen button in the MediaTransportControls(but it does exist in UWP). So I think, maybe I can set the MediaPlayerElement or it's parent element to full screen. I tried the ZIndex and…

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.
749 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,604 questions
asked 2024-06-04T02:40:04.7733333+00:00
C CB 150 Reputation points
commented 2024-06-05T08:21:07.0766667+00:00
C CB 150 Reputation points
1 answer One of the answers was accepted by the question author.

How to create a system notification with ultra long ellipses displayed

Hi I want to display all the text on the system notification, but extra long text shows ellipses. Also need to use line breaks to wrap the displayed text. The code is placed in the following link, and the commented out lines 133 and 134 are the desired…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,040 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.
749 questions
asked 2024-05-28T01:37:25.9666667+00:00
Thomas Zuo 25 Reputation points
accepted 2024-05-29T07:35:49.7466667+00:00
Thomas Zuo 25 Reputation points
1 answer One of the answers was accepted by the question author.

How to receive WM_SETTINGCHANGE message in WinUI3 when system theme changes

Hi, I want to capture system theme change event in my WinUI3 app. I'm trying like below code snippet, but not receiving WM_SETTINGCHANGE message there. void TWWinUI3App::OnLaunched(LaunchActivatedEventArgs const&) { // ... Window window =…

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.
749 questions
asked 2024-05-22T06:54:06.97+00:00
Shyam Butani 160 Reputation points
commented 2024-05-24T06:18:18.99+00:00
Shyam Butani 160 Reputation points
4 answers One of the answers was accepted by the question author.

[Winui3]How to show a model window?

PrivacyWindow::PrivacyWindow() { InitializeComponent(); //...... window_handle_ = GetWindowHandle(); auto window_id = winrt::Microsoft::UI::GetWindowIdFromWindow(window_handle_); app_window_ =…

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.
749 questions
asked 2022-07-01T08:22:42.937+00:00
lei han 46 Reputation points
answered 2024-05-13T07:15:02.6066667+00:00
Torsten Krause 0 Reputation points
1 answer One of the answers was accepted by the question author.

Resizable UI Elements/containers in WinUI3

Hi, I am working on WinUI3 application, and doing everything programmatically (without XAML). When we create a window, we can click+drag the border/corner using mouse to resize it. I want similar thing for my UI elements inside window. Basically, I want…

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.
749 questions
asked 2024-05-03T08:20:06.9166667+00:00
Shyam Butani 160 Reputation points
accepted 2024-05-06T05:22:49.36+00:00
Shyam Butani 160 Reputation points
2 answers One of the answers was accepted by the question author.

How to use my downloaded fonts in WinUI 3?

In my WinUI 3 app, I try to declare and apply my downloaded fonts but it doesn't work. Note: If I manually install the font on my computer, it works well. I wonder if the font installation is a must-have step in WinUI 3? Steps that I have done Add…

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.
749 questions
asked 2023-04-03T08:02:21.6933333+00:00
Luyen Do 20 Reputation points
commented 2024-05-04T23:25:27.5366667+00:00
gmgallo 0 Reputation points
1 answer One of the answers was accepted by the question author.

How do I build a .NET WinUI 3 App without VisualStudio?

Let's say that the VisualStudio license terms don't fit my use case. Perhaps my employer defines itself as a "Java shop", and I'd like to show them the goodness of native apps. But I can't do so by producing an app they're not free to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,598 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.
749 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
328 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,604 questions
asked 2023-05-31T20:50:51.39+00:00
Geronimus 20 Reputation points
commented 2024-05-03T16:55:37.2+00:00
Peter N. Moore 0 Reputation points
1 answer One of the answers was accepted by the question author.

Alternatives for the application to make it as a packaged application?

Hi, I am currently building a WinUI3 C++ application using Windows App SDK. But currently the application is unpackaged mode. I am currently thinking to shift to packaged mode as it is recommended by the Microsoft currently I have tried the sample…

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.
749 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,625 questions
asked 2024-03-13T04:17:56.3366667+00:00
Rohan Pande 420 Reputation points
commented 2024-04-26T00:06:10.75+00:00
Matthew Bonanno 1 Reputation point
1 answer One of the answers was accepted by the question author.

Inconsistent behaviour of windows App SDK runtime Installer

Hi, I'm working on WinUI3 desktop application in C++. We are building a Framework dependent unpackaged desktop application with this we were able to generate a single EXE application. But here to run this WinUI3 application we need to install Windows App…

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.
749 questions
asked 2024-04-05T12:30:42.7066667+00:00
Harshithraj1871 1,516 Reputation points
accepted 2024-04-17T11:43:45.3466667+00:00
Harshithraj1871 1,516 Reputation points
1 answer One of the answers was accepted by the question author.

Understanding Windows app tamper protection

Hi, I'm working on a WinUI3 desktop application in CPP. I'm building an application packaged with external location. There I read that What does tamper protection mean here? Does it mean it wont allow us to tamper with application's data and files? I…

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.
749 questions
asked 2024-04-16T09:52:20.51+00:00
Harshithraj1871 1,516 Reputation points
commented 2024-04-17T07:29:37.8666667+00:00
Harshithraj1871 1,516 Reputation points