Cannot assign VisualStateGroup into property VisualStateGroups type must be assignable to ILISt
I am setting VisualState to Button <Style TargetType="Button"> <Setter Property="VisualStateManager.VisualStateGroups"> <VisualStateGroup…
Some doubts regarding after registering for WinUI3 packaged with external location app?
Hi, I was earlier creating a WinUI3 blank unpackaged app. Followed the steps here to make my solution from packaged to unpackaged application. In this project I have disabled the XAML code and created my own entry point (WinMain). Steps that I have…
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 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 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…
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 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…
How to style Tabview with Tabviewitems and how to remove default Tooltip for TabViewitem? WinUI3
Hi I am creating Winui3Application with Tabview control having 3 tabviewitems like header1,Header2,Header and i want to change the selected tabviewItemhedader background color i did not find any particular style for Tabview control Any…
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"…
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 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.…
When will we use xaml designer view in WinUI 3.0?
Hello, I just updated my VS 2022 to 17.0.2 and created a WinUI 3.0 based project to test XAML designer view in it. I tried open XAML designer view in the project but failed because there's no XAML designer view in it. When will we use…
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.