Category "xaml"

How to display text on a progress bar? [C# WPF]

I need to display a sentence on a progress bar, I've found XAML solutions but I need C# specific solutions, meaning I need to set the text in code. This is an i

How to create multiple custom renderer with same type?

I wanted to create a page render with ContentPage type. I created so in android and it is working but in IOS there has custom page renderer with same type (Cont

Getting index of selected item in a ListView while WPF MVVM pattern is used

I want to get selected Item from ListView. My view is: <ListView Name="StudentGrid" Grid.Row="1" Margin="1,1,1,1" ItemsSource="{Binding studentList}" Selecte

Cannot find type System.Windows.DependencyObject in module WindowsBase.dll

I'm using WinUI 3. I used the Project Reunion 0.5 (Blank App WinUI 3 in Desktop). I removed the x86 and arm64 architecture. As soon as I add the Microsoft.Ident

Big button in navigation view. WinUI / xaml

Does anyone know how to make a big button with subtext and a picture in a navigation panel (using xaml)? Like in the Windows 11 settings app. Like this...

TrayIcon with WinUI 3

I am trying to make a program that runs in the background, and I want to place a Tray Icon in the Tray Icon Section of Windows. I didn't find a solution to do t

Can't see anything on the Xamarin ListView (DataBinding - MVVM)

I tried to use some DataBindings on the listview but nothing is listed. Model.cs public class Post { // Columns inside of the Database table [PrimaryKe

My C# WPF webscraper returns error when more than one result is found

I am working on a WPF XAML application that scrapes certain websites for products. I have the search part working and it finds what I'm looking for. But as soon

DockPanel Dock Top element to be scrollable while Dock Bottom does not get hidden

Issue: Creating a DockPanel with Top with flexible height scroller and bottom element. <DockPanel> <Scrollview DockPanel.Dock="Top" height="150">

How can i Change tab item Content on Xamarin forms shell

I need to change one of my tabs' content depending on the condition of the user logged in or just a guest this is my shell <?xml version="1.0" encoding="utf-

WPF Control lagging behind children WebView2 control

I am trying to make a draggable window sort of thing in wpf (.net core 6) and I am using webview2 to make a browser window. However I discovered this strange be

How to bind an imageSource from a List of Image items in .NET MAUI

I'm developing an app that will soon have a server/DB. I want toaccomplish the binding between the List images and the xaml. Any idea of how to proceed? public

How to change a property of a specific element in a DataTemplate from code behind?

I have a bug in my code. FindChild<T>() is searching a Element which is named "PasswordTextBox" but because "PasswordTextBox" is in the DataTemplate there

WinUI 3 runtime localization

I am developing WinUI 3 app, currently stuck with localization. Although I wrote separate resw resource files for different cultures and localized with x:Uid I

How to access fields or controls of Custom View from another Page's XAML in Xamarin Forms?

I am having a Custom Control, I want to add some elements from the Page in which it will be used. Just like this <Label> <Label.Text>First Name&

C# IOException Cannot locate resource

I have a C# project where I have some PNG files in a Images directory. The structure of the project can be simplified to: | ViewModel.cs View.xaml | [Images]

XAML WrapPanel inside TreeView

I have a TreeView displaying items through a Hierarchical Data Template. Now I want to display two properties of an object in the TreeView, as in: Object1 Nam

Why does the IsPressedChanged event not work with an interaction trigger but other events do?

Edit: To make it short: as AFigmentOfMyImagination pointed out in his answer, there exists no IsPressedChanged event. However, here is the original question: I

Binding to a static property doesn't update in Xamarin Forms

I am learning to use MVVM in Xamarin Forms. I am stuck with a Binding issue. I have been trying different solutions on the internet for the past few hours. I am

AvaloniaUI: Cannot embed VideoView control (LibVlcSharp) in a UserControl

I am new to AvaloniaUI 0.10.5. Currently I am using the VideoView control (LibVLCSharp.Avalonia 3.5.0) in an application on macOS. The code is a copy of Donadre