How do I get a drawing context from a Microsoft::UI::Xaml::control::panel the draw using a 3d rendering api like opengl or vulkan?
How do I get a drawing context from a Microsoft::UI::Xaml::control::panel the draw using a 3d rendering api like opengl or vulkan
In WPF C#, How can i make a Custom TextBox that has label that acts like 'Hint' in materialdesginfloatinghintTextBox?
Hi Everybody, I wanted to Create a Custom Control in WPF C# that is Composed of a MaterialDesignFloatingHintTextBox which 'IsFloating' property is set to 'False' and a Label above the textbox that behaves like a Floating Hint, for the label i wanted it…
Bind View Model Property To User Control Dependency Property
Hello Guys! I am fairly new to the WPF eco system, but i already made some functioning dependency properties inside user controls, which can be bound successfully, and which updates, when the bound property inside the view model changes. For now i just…
C# WPF DataGrid column header style error Cannot find source: RelativeSource FindAncestor
I'm using C# WPF .NET Core 6 also Material Design Theme nuget, I have problem with DataGrid's Column Header Style I have Set a Style for Column Headers of my DataGrid App.xaml : <Application.Resources> <ResourceDictionary> …
CrispImage draws empty area when using VS image service and catalog
I wanted to use the MS Visual Studio Image library for my project and do it in the recommended way using the image service. Therefore I followed the cook book on…
I cannot get data binding to work on WinUI 3 ListView any more.
Yesterday after noon I had this really nice ListView of all the Segoe Fluent Icons. That was a great feat in it's self since the FontIcon cannot bind the text to a Text Glyph code. But once figured out is was great. Woked for quiet a while binding…
.net maui bug visualState on CollectionView
Hello, In my Maui Android mobile application, I have a collectionView that contains ItemTemplates. Each ItemTemplate has a state. I've defined a visualState for the Disabled state on the ItemTemplates. When it's in a certain state, it must be Disabled…
What is criteria to UWP ScrollBars auto-hide when no interactions? Because sometimes, the scroll bar doesn't hide anymore
Hello! Sometimes, the scroll bars inside ScrollViewer compoent doesn't hide anymore. Some cases, the scroll bars auto-hide correctly, but there are some mouse interactions that scroll bars doesn't auto-hide. It's seems a little bug. Please, can anyone…
Visual Studio 2022 Teams Code Review Error on xaml files
On one laptop, in Visual Studio 2022 Teams Code Review (source control is on Azure), when clicking on a .xaml file, the error "Empty path name is not legal" pops up. This only happens when reviewing .xaml files and only on one machine. Any…
MAUI IMAGE LOAD ISSUE USING ASSEMBLY
Hi, I'm encountering a significant problem in my MAUI development. I've developed a MAUI library project, and when I reference it in another MAUI project, everything functions correctly. However, when I attempt to use the assembly or DLL within the same…
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 to Bind columns in Datagrid
I want to bind a column dynamically into the datagrid but datagrid does not allow this. I can only add static columns as I share below. <DataGrid AutoGenerateColumns="False" CanUserAddRows="False" …
How to achieve ink replay without losing the original properties of the ink?
I'm trying to implement ink replay in my application, and I'm using the code from this sample application https://github.com/microsoft/Windows-universal-samples/releases/download/MicrosoftDocs-Samples/SimpleInk.zip, and the key content is as follows.…
how to load data from sql database onto an rdlc report with a DataSet Already
i am having a usercontrol that loads my rdlc report in c# like this; DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("Subject1", typeof(int))); dt.Columns.Add(new DataColumn("Subject2",…
MAUI DisplayAlert() When User Closes Window : Getting Unhandled Exception
I want to show an ALERT/POPUP to the user to ask him/her before he closes the Application. This is what I am already doing : In App.xaml.cs Application.Current.MainPage.DisplayAlert this line throws unhandled exception, The Exception…
Set XAML ListBox MaxHeight to height of 10 rows
How can I set the height (MaxHeight) of a ListBox to the height of a specified number of rows, such as 10? Either in XAML or in code-behind. This is for WPF. It seems to be a very simple requirement and should be a common one but I cannot find anything…
WPF The refrence is invalid or unsupported
Hi dears, I want to add System.Windows.Forms.dll to my project but it get an error The refrence is invalid or not supported. my project : WPF .net 6/C#/32bit I want to use WindowsFormsHost control <PropertyGroup> …
StaticResource inside MainWindow passing through a Datacontext inside an UserControl and this Datacontext passing through another UserControl
Could you clarify a question about StaticResource and hierarchy? I have MainWindow.xaml (Window) and inside it I call NewChart.xaml (UserControl) through the command <vm:NewChart DataContext="{StaticResource _instance}" /> . I would like…
how to make Image click through?
I wanna display an icon in a window. I want the whole window click through including icon so user can operate other application behind the window as if the window and the icon don't exist. So I create a transparent window and put an Image control on it.…
Problem with TabControl Template and Binding in WPF.
I would like to put image in TabControl header using binding, but below code doesn't work. I would like to know why, and how to do it? Thanks in advance :) 1、MainWindow.xaml <Window x:Class="WpfApp3.MainWindow" …