Category "xaml"

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

Span Label underline is not working on Xamarin iOS

I'm using a Label with Spans, one of them is a link and I want to add an underline style, I'm using <Span Text="Link url" TextDecorations="Underline" /> b

Behavior OnDetachingFrom not called on close of popup

On close of popup behavior dettach method is not called. while OnDisappering the page if binding context is assigned with null OnDetachingFrom will be called. B

How to create a semi-transparent frame in xaml?

I have made a BMI calculator based on a tutorial on Youtube. I added wallpaper to my app. I want to add a transparent frame to my background and all the control

Multi linear brush in same fill rect only in xaml

Can i use lineargradientbrush to fill a rect in xaml only combining different direction? I'd like to have it in a drawingimage... ex image below

Dynamicly adding StackLayout

So what I wanna do is have a stacklayout, with entries etc. Added when I set it in the code. For example, I have 3 entries, once they are all filled I want a se

Trouble binding ViewModel to View, as part of a ListViewItem DataTemplate with ReactiveUI

I'm having some issues trying to display a view in a ListViewItem Data template in reactive. I have a ListView in, for example ReceiptView.xaml whose source is

How do I access Window Resources in WinUI 3

I've just started working on a WinUi 3 (Desktop) project and have got blocked trying to add Window resources to a Window. I would have thought the following wou

combobox tostring() returns object instead of value

I want to retrieve the string value selected in a combo box and convert into an integer, however the SelectedItem method always returns the name of the object.

WinUI3 - bind ContentControl to CollectionViewSource CurrentItem instead of collection?

When an item is selected in my ListView, I want to display a specific user control in the my ContentControl. Using the following code, my content control merely

Width problem with * (star) in WPF Grid - ColumnDefinition

I have tried ColumnDefinition Width="5*" and also with 3*, 1* to ColumnDefinition which aplied to Grid container and the parent control is ListBox but it does

DataTemplate doesn't work when moved to ResourceDictionary

I was trying to move a DataTemplate from a ListView into a resource dictionary and it somehow broke the Bindings, I believe. I verified that when I hardcode th

In my WPF control, can I hide the validation control based on the size of the adorned element's row?

I have a user control with many sub controls within a grid. Since there are many controls per row, I'm controlling the visibility of the controls by setting the

How to close ComboBox list items when moving application window of my WinRT/C++ UWP application?

I have a pair of ComboBox controls having IsEditable() true as well as false. When I am scrolling through my application or moving my application window (by cli

Xamarin TabbedPage Specified Cast is not valid

I have a TabBar in my AppShell which has five tabs. Three of these tabs are ContentPages whereas the other two are TabbedPages. All three tabs with ContentPages

Make RichTextBox automatically scroll to bottom when content is added

I have a WPF UserControl with a BindableRichTextBox: xmlns:controls="clr-namespace:SysadminsLV.WPF.OfficeTheme.Controls;assembly=Wpf.OfficeTheme" . . . <cont