WinUI - Event to Check if High Contrast was chosen
I have a WinUI application and I need to check if the user change the OS theme to High Contrast. I got this error when signed this event to identify if HighContrast was set. It is the same event to UWP, but in WinUI this error happens.
How to use different Data Types in a Custom Control
I have a Custom NumericUpDown control in my WPF C# .NET 8 application that is working nicely, But now i want to update it so that it can use different Numbers DataTypes like int and decimal so that i can re-use my custom NumericUpDown control instead of…
Xaml and column format in CollectionView
Hi Friends, I have this CollectionView below where my columns are not left aligned properly. How do I clean this up so that my labels in the columns are aligned correctly. Thanks ! Screenshot 2024-02-12 104906.png …
problem with Custom ComboBox not raising notification changes during SelectedItem change
Hi, in my wpf C# .net 8 application i have a custom Control composed of a Label and ComboBox, the problem i am experiencing is that the Custom Control's ComboBox doesn't raise the SelectedItem change in the ViewModel, then i decided to test it with a…
I want to turn on the PC from sleep mode on windows 10/11 programmatically in WPF (.net framework) C# application. How to achieve it ?
I want to perform windows sleep turn on and then wake up the PC after some time say 2 days later. I have two options :- Either programmatically sleep the pc and wake it up later automatically(but it requires manual entering of password to pc after…
How to bind a attached property in MAUI(XAML)?
A simple label <Label x:Name="llll" FontSize="16" extensions:CommandParameterHelper.Parameter="content" Text="{Binding…
WPF/XAML Style/Template Properties Memory Usages
Hello! I wonder if without border properties 'BorderThickness & BorderBrush' of a Control Style (ie Button) can help the overall performance when that control is used in large quantities through a list/treeview? Thanks.
How can i filter a ComboBox's dropdown in a datagridcolumn based on the selection of the previous cell?
I have 3 ComboBoxes in a DevExpress Datagrid Columns namely; Country, Provinces Districts respectively. The Country Column has a dropdown that lists all of the Countries in the World, the Province Dropdown has all of the Provinces in all the Countries,…
WPF Re-Usable Datagrid with Pre-Loaded Data inside its VieModel
I have a Project in WPF C# .NET 8 that gets data from sql server and display a StudentName, a DataGrid that Contains places where that student is interested in called PlacesOfInterest. In the PlacesOfInterest datagrid, there are three Column ComboBoxes…
[UWP][C#] when a folder is dragged & dropped files in it aren't deleted
in my app when i drag & drop a folder i can view details of the files but when i try to delete them i get error that 'file is read-only' , why is that ? await file.DeleteAsync(deletionMode);
Get Syncfusion ComboBox Id Value
Hey Friends, I am using .Net Maui and a Syncfusion ComboBoc and I am trying to adhere to the MVVM pattern and I was wondering if you have a simple model of type collection with Name and Id like the code below, how would I create a binding to the Id…
How to get a PowerShell available list of events, methods, and properties For GUI using Xaml
My Question is here I want to know to get a PowerShell available list of events, methods, and properties for GUI using Xaml https://stackoverflow.com/questions/77853338/how-to-get-a-powershell-available-list-of-events-methods-and-properties-for-gu
How to use a type in attachedBindableProperty in xaml?
public class LayoutHelper<T> { public static readonly BindableProperty ItemSourceProperty = BindableProperty.CreateAttached("ItemSource", typeof(ObservableCollection<T>), typeof(LayoutHelper<T>), null); .... } In C#…
How to add keyboard shortcut of OEM keys in Keyboard Accelerators in WinUI 3, XAML
Hi. I am creating an app in WinUI 3, C# Xaml. In the app I have a button which has the "+" symbol. The Keyboard shortcut for the button is only showing the numeric pad "+" key. How do I add a shortcut of the shift key and the OEM plus…
Navigation Problem In Xamarin Forms
I am using Xamarin Forms in Visual Studio Community 2022 version 17.7.5 I have many screen in my app , After splash there are onboarding screen and then dashboard screen , in dashboard screen there are two option one is signup and second is login.…
Filtering a ComboBox in a DataGrid based on another combobox in the datagrid in WPF C#?
In my Example Here i have a 3 ComboBoxes in a Datagrid displayoing Countries, Provinces and Districts respectively.How can i Filter the Provinces by Countries and Districts by Provinces in such a way that when the user selects a country he only gets the…
Window shrinking background effect
Hello, In windows 11 when you try to move a window using a pen/stylus it will shrink a little bit and show a background on the sides (of the actual size of the window), when you release it it will return to normal. We have a WPF project made a…
How to load page like frame in WPF?
I wanna know if there any control can show a page,when i set frame‘s content as a page,it only show its name,but in wpf the frame is work directly.
MAUI : Dark mode is hiding visual element in IOS
On IOS whenever I am changing system, Light mode to Dark mode, and visit to my maui application , some visual elements are getting dark due to which some labels and other visuals are also hiding. see below attachments for the reference. download.png…
I want to display an Action Sheet from the ViewModel
I am trying to display an action sheet from the viewmodel when the user taps on an Item in the ListView using commanding. Currently I have this in my Xaml. But I get a compiler error message stating that Event ItemTapped can only be bound to properties…