Questions tagged [bindableproperty]
54 questions
4
votes
1 answer
Xamarin BindableProperty works with binding only when I don't use BindingContext
in Xamarin Forms I created a Page that contains a custom component which I want to feed a value just like this:
This, however, doesn't work. When I use a raw number instead of the Binding it works. The…

tagtraeumer
- 1,451
- 11
- 19
3
votes
0 answers
Xamarin: Binding property of nested custom control inside nested custom view
I'm asking myself if there's a better way to bind to a nested property.
The set up is: Custom control inside a custom view inside a custom page.
So: CustomControl -> CustomView -> CustomPage
The CustomControl has an entry and I ultimately want the…

Remo
- 65
- 5
2
votes
2 answers
Xamarin.Forms Bindable Properties
It may sound like a dumb question but why are bindable properties static?
public static readonly BindableProperty MapSpanProperty = BindableProperty.Create(
propertyName: "MapSpan",
returnType: typeof(MapSpan),
declaringType:…
user12945091
2
votes
0 answers
Bindable Property In IValueConverter Always Null
I have a converter that deals with Boolean values and uses them to pick either of two ImageSources.
I defined the ImageSource as two parameters in the converter, later on I need to supply those resources using the DynamicRsource markup extension…

Scarnet
- 738
- 2
- 11
- 36
2
votes
0 answers
Why does setting BindableProperty.DefaultValue not call OnPropertyChanged?
I'm using a bindable property like this in a class the inherits from Xamarin.Forms.ContentView:
public static readonly BindableProperty OverlayColorProperty = BindableProperty.Create(nameof(OverlayColor), typeof(Color), typeof(MyControl),…

Gabriel Weidmann
- 756
- 12
- 16
2
votes
2 answers
Xamarin Forms - Custom Control Binding Issue
There's a good chance I haven't had enough coffee today, but I've got an issue I've been going around in circles with for the last few hours.
I've created a CustomEntry class which is just a ContentView containing an Entry and a few other bits and I…

Martin Crawley
- 477
- 1
- 7
- 16
1
vote
1 answer
Change in ObservableCollection item property not triggering UI update in ContentView in .NET MAUI app
In my .NET MAUI app, I have a feed that displays some data along with a like button. Because I have different variations of this feed in the same app, I created a ContentView with BindableProperty's so that I can reuse my code.
Initially, things…

Sam
- 26,817
- 58
- 206
- 383
1
vote
1 answer
MAUI Custom Control : XFC0009 No property, BindableProperty, or event found for "Title", or mismatching type between value and property
Am using MAUI application on .Net 6.
Created a custom control for activity indicator, and created bindable property for Running & title.
CODE BEHIND
``public partial class CustomProgressDialog : VerticalStackLayout { #region CTOR public…

abhi
- 54
- 8
1
vote
2 answers
.Net Maui Couldn't get value by binding to Attached Property
In .net Maui 7, I have been trying to bind custom bindable property to an attached property value. I have tried various ways to bind the attached property value to custom bindable property value. In xaml code below you will see the custom view…

yigit sertac
- 33
- 5
1
vote
1 answer
Xamarin Forms: How to send object and event through to ViewModel on ImageButton Clicked using Commands
I've created a CustomElementTagger class which allows me to set and get custom set tags on view elements. I need this because I want to have a single command that gets executed but has different behavior on the corresponding tag on the element. In…

ThisQRequiresASpecialist
- 929
- 4
- 19
1
vote
1 answer
Problems passing an ObservableProperty variable via BindableProperty into GraphicsView canvas
I am trying to pass a variable into my GraphicsView canvas, but it looks like I have some problems receiving the passed variable in my drawable.
What am I doing wrong?
Drawable
public class NewDrawable : IDrawable
{
public float Vectors { get;…

Jonas Sønderby
- 11
- 2
1
vote
0 answers
How to create markup extensions having bindable properties?
I want to have a markup extension called RgbColorExtension where R property is bindable to let me adjust its value with a slider.
The following attempt does not work. Changing the slider does not effect the R property.

The Real Masochist
- 499
- 4
- 10
1
vote
2 answers
How to bind data to the bindableproperty in xamarin forms
I have two pages that use the same form so I created a content view of form and apply bindable properties like this:

Đức Tú
- 23
- 1
- 5
1
vote
1 answer
Access a custom controls bindable properties from its xaml
I want to declare a bindable property in my custom view and link it to the corresponding viewmodel.
I use the MVVM pattern and want to separate ui logic and data logic from eachother. So I keep my status and other data in the viewmodel and update my…

Gabriel Weidmann
- 756
- 12
- 16
1
vote
0 answers
Getting a property value from a ContentView (child view) to the ContentPage (parent)
As a not so experienced Xamarin developer I am trying to retrieve a property value from a child page (ContentView) in my Parent page (ContentPage).
I can find quite some examples how to get / set the value from the parent page to the child page but…

Nicolas
- 2,277
- 5
- 36
- 82