Content
Does XAML (UWP) Visual Designer in Blend for Visual Studio 2022 work on Windows 10?
I am trying to design a C# Maui UI in XAML. I read that you can use Blend for Visual Studio to visually program XAML code. So, I loaded a new C# Class project in Blend to attempt an XAML visual edit, though the "Design" tab says "Visual…


Change InkDrawingAttributes Opacity for Pen brush
I using a color picker to draw with a pen, but using this code I can't change de opacity of the pen color: InkDrawingAttributes inkDrawingAttributes = InkCanvas.InkPresenter.CopyDefaultDrawingAttributes(); inkDrawingAttributes.Color =…


How to find the index of a newly added item in a ListView collection
I have a ListView element using a GridView. The ListView.ItemsSource property is bound to a CollectionViewSource. When I add a new item to the collection, the item appears successfully in the grid but I cannot determine the index at which it appears…


Dynamically Add Entry in a StackLayout and Retrieve Values in a List
As per the attachment, when clicked the '+' button, a new entry will display and need to store entered value in a List<string> . If 'x' clicked, the entry need to removed from the layout and removed from List<string> too.


Is this a right way to change DataGrid's value programmicality in C# WPF?
I want to be able to easily change the values of datagrid cells at any time Is this helper function a good solution? : public static DataGridCell GetCellConfig(DataGrid DGR1, string NAME_SUTUN, int ROWINEX) { var TheCol =…


How to set Focus on new row after TAB Pressed in the last row in C# WPF DataGrid?
I'm using C# WPF , I have a DataGrid that is bound to an ObservableCollection , I want to keep focus on DataGrid's row when user is entering value with keyboard on DataGrid, I mean when last row is focus after value entered , istead of lost focus on…


What is the best way to communicate with the database through Datagrid in C# WPF between DataSet and Entity?
I use C# WPF, I am programming an accounting program with a SQL Server database, in this accounting program, data is inserted, updated, and deleted by the user directly in a data grid, which contains a textbox and Combobox elements. In an issue…


Bound ComboBox within a page and frame not working as expected - WinUI 3
Hi, i have a bound ComboBox which i've already posted here. I'm adding a separator by a TemplateSelector but to disable the separator, I have to iterate the ComboBoxItems in the Tapped event and set the IsEnabled property to false. This has to be…
CollectionView UI not updated when Switch Toggled but ObservableCollection updated
Here, when toggle, observablecollection has been updated, but ui not updated. Expected Output is: When switch toggle is on, the items pack price need to be display. When switch toggle is off, the item's price need to be display. <CollectionView…


WPF ListBox - Display Message When Item Source Is Empty
Hello All - I am trying to replace the listbox with a message for the user when there is no data available. When there is data available, whatever is available, will display out. I have been working on this for a while but do not know what to do. When…


Access native functionalities in .Net MAUI Blazor app with embedded Angular application
Hi, We are working on creating a mobile application using .Net MAUI Blazor as technology. We were trying different approach Load dist folder of Angular application build into Blazor application Load direct angular application through weburl We were…


Find several template generated ComboBox items by property value - WinUI 3
I have a ComboBox bound to a ViewModel. Is there a shortcut to get the item's index by the property which is not displayed, i assume there isn't? My target: I have to find an item by property value to select the index. If the property's value is not…
How to change the UWP app standard minimize/maximize/close toolbar background?
The UWP app is using the dark theme and it is set like in the c# code. Current.RequestedTheme =ApplicationTheme.Dark; if we change to lighter windows themes from the personalization/themes in windows 10/11 , somehow it changes the UWP app…


How Can I save a ComboBox selected value in settings file when it has dynamic content in WPF?
I have a WPF application where I use many ComboBox controls. Most of the time I save application user settings in the Settings file, though many people use JSON to do that work but I think the default Settings file in WPF application is provided by…


How to Change WebView url source at runtime MAUI .NET?
I want to change MAUI .NET Webview Source at runtime. I have this code, which is summoned by a button in XAML C# CODE: `void OnReloadWebView(object sender, EventArgs e) { try { WebView = new WebView(); WebView.Source = new…


3221226107 (0xc000027b) API REST
Hello, I am a novice programmer. Does anyone know how to solve the problem with 3221226107 (0xc000027b). Well, after replacing the code in TodoListPage.xaml.cs from public partial class TodoListPage : ContentPage { public TodoListPage() { …


adding custom font in .net maui does nothing on android
Also my font is not showing on my label, that is 100% not a chewy font, however its in there like it is supposed to: public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder …


ComboBox - MaxDropDownHeight seems to be limited to 15 items - WinUI 3
I would like to have the ComboBox's dropdown as long as it gets depending on the available space on the screen that the user has less scrolling; faster access. I've tested it: If i have the ComboBoxItems tags in the xaml code directly and i set the…
Wpf ListView and ContextMenu with multiple CommandParameters
I have created striped down test project to simply demonstrate the problem. I have a series of button with Commands and Multiple CommandParameters to manipulate some images displayed within a ListView. Everything works fine. I would then like a…
Combobox - SelectionChanged - Input comes from User
There is no implemented flag or the right event to detect, if the input comes from a user (by keyboard and mouse)? Depending on the CombobBox Item and a ListView selection, different pages are loaded in a frame and the selection of the ComboBox is saved.…