C:\Users\HMIS>dotnet list sdks The command could not be loaded, possibly because: * You intended to execute a .NET application: The application 'list' does not exist. * You intended to execute a .NET SDK command: No .NET SDKs were found.
every time i try to install SDKs in mywidnows machine its not going through even to open my already created app to open...using System; using System.Reflection; [assembly:…
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 fix Expression: m_pAccessor != 0 Debug Assertion Failed!
Debug Assertion Failed! Program: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll File: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\atlmfc\include\atldbcli.h Line: 5198 Expression: m_pAccessor != 0 For…
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…
x:Bind vs TemplateBinding inside ControlTemplate
https://learn.microsoft.com/en-us/windows/uwp/xaml-platform/templatebinding-markup-extension#xbind-in-controltemplate What is the difference between using TemplateBinding and x:Bind inside the ControlTemplate? On the document, it is mentioned that…
How to customize TabView in WinUI3
How to customize TabView in WinUI3 as follows: Set the header of the selected tab to bold font and red background, and the header of the unselected tab to yellow background. Leave some space between each tab header. Add a red dividing line between…
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…
How to correctly initialize MediaCaptureInitializationSettings for an IP Camera?
Hello, I'm currently attempting to use Windows::Media::Capture APIs in C++/CX to record MP4 streams from an IP Camera. Here is a code snippet I have written: MediaCaptureInitializationSettings^ settings = ref new…
Setup app for website without using msix installer (e.g. using .exe installer)
Our application supports apps for websites using app URI handlers. However some older computers or domain computers with certain policies cannot install apps packaged in msix installer. Is there a way to register your app to handle links…
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"…
Why upon closing an invisible window gives an Error in WinUI3 project?
Hi, I am creating a multi-window application in C++ using WinUI3. To make the application even running if no windows are visible, I am creating an invisible window. During exiting the application, we need to close all the Windows to come out of the…
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…
Request targets an app that is not in allowed receiving apps list by WNS
Hello, I have a problem during sending WNS raw notifications to my app on client's computers. I receive this error sometimes, but not for all my clients: 2024-05-29 19:16:06.244 +02:00 [WRN] X-WNS-Debug-Trace: BY3PEPF000195A1 2024-05-29 19:16:06.245…
WinUI3 : How to close all the visible window at once
Hi, I'm working on a WinUI3 desktop application in C++. I'm building a multiwindow application. Is there a way to close all the window at once in WinUI3? One way is to maintain the List of windows ourselves, is there any other way to solve this? just…
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…
Performance Discrepancy Between Templated Control and Direct Implementation
I encountered a performance issue while working on a project where I utilized two identical buttons with all properties set the same. The only difference was in the content: one button utilized a PathIcon inside a Viewbox, while the other utilized a…
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.