How to view all Visual Tree UI elements of any UI controls, Which is using styles & templates on windows 11 OS environment using VisualUIAVerifyNative tool?
VisualUIAVerifyNative is not displaying few UI elements If TextBox uses style, which has TextBlock as PlaceholderText, then the placeholder textblock UI element is not getting displayed in VisualUIAVerifyNative on windows 11 machine <Style…
is there any roundabouts for design tab in .net maui?
Hello, I'm just started to study .net maui but I stuck on UI design in .net maui project. In WPF project, I could use design tab to correct UI easily. but I can't use that in .net maui. is there anyone or site to teach how to design UI in .net maui…
How Can I call RuntimeHostConfigurationOption OnStartup of a WPF (C#) application in .NET 8?
Hi there, I have a WPF application where the UI is a very important thing and heart of the application. Due to some UI elements requirements I have some custom RuntimeHostConfigurationOption which I put in my WPF application through the *.csproj file. I…
UWP Windows.System.Launcher.LaunchUriAsync is not opening correctly in browser when the URI supports opening the link in other uwp app and browser.
Hi I'm using Windows.System.Launcher.LaunchUriAsync to open a URI, I'm prompted with a dialogue when the URI can be opened in other uwp app and browser. If chosen browser, it opens the local path - AppData/Local/Microsoft/Windows/INetCache instead of…
UWP DataGrid Scrollbar Issue: Unable to Scroll Using Touch on Touch Screen Devices
I'm developing a UWP app and I'm utilizing the DataGrid control from Microsoft.Toolkit.Uwp.UI.Controls to display data. While I can scroll using the mouse using both the scrollbar and its buttons, on a touch screen device, I can only scroll via finger…
MVVM Issue
I have a DataTemplate defined thus: <DataTemplate x:Key="CopyColumnHeaderTemplate"> <StackPanel Orientation="Horizontal"> <Label Content="{Binding}"/> <CheckBox…
UWP app flickering on ARM PC
Hi everyone. I have an UWP application and I'm running on a ARM PC. When I open a customized content dialog the screen starts blinking. Unfortunately, I cannot show the application nor the code, but do you guys know some cases that an ARM PC blinks…
Why do i get this error
When i start debugging and i press a NavigationMenuItem, i get this error (See Screenshot). the NavigationPages are in the folder NavigationMenu. Does anyone know how to fix this My code is MainPage.xaml …
How to refresh DB connection in a WPF app using MVVM pattern with Entity Framework and Oracle as DB?
I have a WPF application that uses Entity Framework and Oracle as the database and follows the MVVM pattern. Each ViewModel initializes its own DBContext and uses it. When I click a button/link then, it refresh the DB connection. Also how to add the…
C# Program can't find XAML page in DLL
I have a program with a window declared as StartWnd (in the main assembly) derived from a class, WzdBase in a DLL which in turn is derived from System.Windows.Window. StartWnd doesn't provide its own XAML page. Rather that's in the DLL and provided by…
Touch two buttons at same time, both stay toggled - WinUI 3
I have a touchscreen PC and when I touch two buttons at the same time they toggle (as if they were pressed and released) in a WinUI 3 Application. UWP this does not happen. Not touched: Both touched and released:
Why does BasedOn?
Severity Code Description Project File Line Suppression State Error (active) XFC0009 No property, BindableProperty, or event found for "BasedOn", or mismatching type between value and property. TipCalculator…
How to design a login page with fully responsive page as like as Web page (Using Blend or VS 2023)
I need to build a pages for WPF app using XAML in such way that each page should be responsive as like as in the browser web pages(Microsoft Blend or Visual Studio 2022). For an example login page, sign up page or any other pages for a WPF app. …
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 to align a WPF window to a child of a second window?
So I've been trying to get a System.Windows.Window to be aligned with a control in a second Window. In the image, the magnifying glass is the control I want to align to. There's padding around the icon. The dark gray box with the +- buttons is the…
How to dynamically enable a button in WPF Forms with C#?
Hi, I am new to WPF but not to C#. I am working on a application where I have several buttons and I need to change the state of the buttons based on certain conditions. For instance, I have this "Add User" button which will be enabled only if…
Mysterious XAML “The name "X" does not exist in the namespace” error won't go away
I'm working on a XAML/C# project. I have a custom abstract class derived from `System.Windows.Controls.UserControl`: `PageBase`. Visual Studio 2022 keeps telling me it can't find `PageBase` in the namespace. The…
An unexpected behavior occurs when set a long string in the TextBox
Hello, This problem happens when I try to put a string with a length greater than 15.684 characters. The height of TextBox increases abruptly and the TextBox turns into non-editable. Please, help me handle it Example
What is the format in VS 2022 for "Custom Expression"?
In working on a WPF application in Visual Studio 2022, if you expand the property window for Brush, you get the following display. If you click the small down arrow in the Editor tab, you get the following menu: If you select Custom Expression..., you…
Strange line appears when Hover in ARM pc
Hi there. I created a UWP application with a command bar and I'm using it on an ARM computer. There is a tiny diagonal line when hovering the icon and in other buttons happen the same error: My code: <StackPanel x:Name="grid"> …