Questions tagged [bindableproperty]

54 questions
0
votes
1 answer

Xamarin - Binding to a Property of a child control inside a custom control

I am working on a Xamarin App. I am making a custom control with a Label control, a DatePicker control and an Entry control. I had to create quite a few BindableProperties for the Date Control in the Custom Control such as MaximumDate, MinimumDate…
Babu Mannavalappil
  • 447
  • 2
  • 9
  • 27
0
votes
1 answer

Purpose of declaringType in BindableProperty

Last time when i was reviewing my code I found out that I have assigned wrong declaringType to my Custom ContentView declaring type. It was interesting because it did not affect the way this content view worked. It passed UI tests and integration…
user2999425
  • 125
  • 1
  • 11
0
votes
1 answer

How to use a bindable property for colours in Xamarin.forms?

I have my own custom control with some bindable properties. I coded the string bindable properties very easily using YouTube. But how to use the bindable properties for colours?
Ninad Kulkarni
  • 61
  • 1
  • 11
0
votes
1 answer

Creating a custom BindableProperty that takes a custom defined string representation of the underlying return type in XAML

I am attempting to create a custom BindableProperty for a custom view which takes in a string when consumed through XAML but is internally implemented as a custom structure as follows: struct X { public Y A; public Z B; // Y and Z are data…
hecate
  • 620
  • 1
  • 8
  • 33
0
votes
1 answer

Create bindable properties for Treeview in Xamarin Forms

I needed to use a Treeview in my xamarin forms application, however the only existing TreeView on the net are not free (Syncfusion and Telerik). So I found this very interesting project : https://github.com/AdaptSolutions/Xamarin.Forms-TreeView the…
Shahid Od
  • 103
  • 4
  • 13
0
votes
2 answers

Exposed Bindable Property not binding correctly

I'm having this problem with a custom view I made that connects a checkbox with a text and allows you to tap the entire view to tick the checkbox. But when I bind to the exposed binding from the checkbox It doesn't seem to react to changes. I'm…
0
votes
0 answers

How to implement custom BindableProperty from XAML local:imageresource

(EDITED: clarity) I want a BindableProperty for a custom control which will ultimately display an image. In my implementation (extracts below), the property Source gets assigned the value Xamarin.Forms.StreamImageSource instead of something…
Peri Hartman
  • 19,314
  • 18
  • 55
  • 101
0
votes
1 answer

Xamarin Forms Using Reflexion to get Property of Bindable Property

What i want is, when the value is changed, it should call CreateChart()and use the new values. I try to call in an onPropertyChange method OnValueChanged a bindable Property with reflection, but the property is always null and i dont get the value…
0
votes
2 answers

BindableProperty (List<>) in Xamarin Forms

my problem is the following: I have my ContentPage which has a ResourceDictionary with some DataTemplates. One of the templates takes the Horse Object (which holds the List's). I display several stats of that object but when I want to pass…
Daniel Klauser
  • 384
  • 3
  • 16
0
votes
1 answer

Xamarin Forms: Not able to update the custom control on the UI

I have created a custom control that has horizontal bar there can be N number of boxview in the bar based on number I get from API for example i have a control with limit of 20 controls and i have selected 10 of them so 10 boxview will be on orange…
0
votes
1 answer

How to initialise a bindable property of type Array from XAML

In a custom component, I define a bindable property of ARRAY type: public static BindableProperty LabelsProperty = BindableProperty.Create(nameof(LabelStrings), typeof(string[]), typeof(BLSelector), null, BindingMode.Default, propertyChanged:…
Belight
  • 205
  • 2
  • 14
0
votes
1 answer

Binding Bindable Property Command Not working In Xamarin forms

I have a custom view with bindable properties. i am trying to bind the command in my Main Page View Model. here is the way i have done but the binding is not working.
Chandu Ranwala
  • 305
  • 1
  • 4
  • 18
0
votes
1 answer

ContentView -> Custom Frame Binding Not Working

I copied/wrote a class that inherits from Frame public class Circle : Frame { //private double _radius; public static readonly BindableProperty RadiusProperty = BindableProperty.Create(nameof(Radius), typeof(double), typeof(Circle), 126.0,…
John Mc
  • 212
  • 2
  • 16
0
votes
3 answers

Property in a new instance of class and previously created instance of same class are referenced same memory

// Interface public interface IItem { Collection Collection { get; set; } } public class Collection : BindableObject { public static readonly BindableProperty ItemsProperty = BindableProperty.Create("Items",…
0
votes
1 answer

Custom ItemSource in XAML Not bindable

I created a custom control which should have an ItemSource. So I added a BindableProperty and tried to bind it, but I always receive the following error: "Position 18:46. No property, bindable property, or event found for 'ItemsSource', or…
Nehl-IT
  • 523
  • 3
  • 15