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.
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…
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…
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…
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"…
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…
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.…
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"…
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…
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.
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…
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…
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 =…
[Winui3]How to show a model window?
PrivacyWindow::PrivacyWindow() { InitializeComponent(); //...... window_handle_ = GetWindowHandle(); auto window_id = winrt::Microsoft::UI::GetWindowIdFromWindow(window_handle_); app_window_ =…
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…
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…
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…
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…
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…
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…