Questions tagged [bindableproperty]

54 questions
1
vote
1 answer

Get value of a BindableProperty used in ViewModel in control?

I have a Control where i define a BindableProperty of type bool. This BindableProperty is used by the ViewModel: How can I get the value this property has in the ViewModel from my control? For example, in the ViewModel I assign it false, in the…
dimioLt
  • 59
  • 1
  • 12
1
vote
1 answer

xamarin forms bindable property does not work properly

i am trying to create custom view like below here i am trying to bind a collection from main page to custom view but here it is not binding properly.
Chandu Ranwala
  • 305
  • 1
  • 4
  • 18
1
vote
1 answer

Xamarin Forms Custom View, Bindable Observable Collection throws "Specific Cast Not Valid"
I'm creating a custom view in xamarin Forms with a set of Bindable properties including Bindable observable collections type of my own Models. These observable collections serves as data source for custom view and gets updated in realtime.…
1
vote
1 answer

How to Apply Behaviors on Xamarin Forms Platform

I want to numeric counterup/down animation my xamarin forms application. I found the code example here But i haven't applied. How can i apply this behavior class Xamarin Forms label control. I tried this code but not work.
0
votes
1 answer

No property, BindableProperty, or event found for "Clicked", or mismatching type between value and property. TextChanged method doesn't get recognized

So, I found some similar questions but it didn't help me to solve my problem. Since it's the first time using Xamarin.Forms, I made the error of not using ViewModels so I'm moving all the methods to viewmodels. As I think I understood, TextChanged…
0
votes
1 answer

How do BindableProperties work in Xamarin.Forms?

i've created the following user control for my project and added a bindable property to access the ItemsSource property of the ListView in this user control during XAML in my view, where i use this user control. The code works fine and mainly i know…
0
votes
1 answer

Cannot bind to BindableProperty of custom behavior. -Xamarin forms/Prism

I have a custom behavior for Entry. It has a bindable property MobileCountryCode. public class MobileNumberValidation:Behavior { public static readonly BindableProperty MobileCountryCodeProperty = …
Ashish
  • 5
  • 3
0
votes
1 answer

Pass-through TextChanged Bindableproperty from a custom Entry control to the actual Entry

I have a custom control, which is basically a XML wrapper around another custom control, with its own CustomRenderer. Custom Control, basically a Wrapper XAML for another custom control
Fred Fickleberry III
  • 2,439
  • 4
  • 34
  • 50
0
votes
0 answers

An Item with the same key has already been added, but in a view

I have a class that inherits from Grid, called MapGrid. MapGrid displays a MapView (implemented on both platforms), some labels, and a button. To display this grid, the user launches the app, taps a button that opens a flyout menu, and then taps a…
0
votes
2 answers

Custom control bindable Property not getting hit when set from a view

I've created a control and it has a bindable property, but when I try to set its value, it does not set, when I check its setter, it's not getting hit while debugging, not sure what am I doing wrong. public decimal MetricValue { …
Venky
  • 1,929
  • 3
  • 21
  • 36
0
votes
1 answer

Xamarin Bindable Property The property 'FadePropertyOf' was not found in type 'FadableImageControl'

I'm working with Bindable Properties I'm getting this error from my xaml file The property 'FadePropertyOf' was not found in type 'FadableImageControl'. it looks like a cast problem, but I haven't figure out a way to make my object to read this…
0
votes
1 answer

Custom control Bindable property don't work with ViewModel

I encounter an issue while I'm creating a Custom control in my Xamarin forms app. I create a bindable property for the label label called "NameLabel" in this xaml file :
0
votes
1 answer

Xamarin Froms Entry Custom Control does not work

I'm trying to make a custom control to use it in multiple places. the thing is it works fine with the label but when it comes to entry it won't even run and it gives me No property, BindableProperty, or event found for "EntryText" here is my custom…
0
votes
1 answer

BindableProperty of type IList with contents set in XAML is never updated

I am making a custom ContentView for a common container type I use throughout my app. The custom view has two bindable properties: the header (string) to be displayed in the upper left corner, and a list of buttons (List) to be displayed in the…
Erlend D.
  • 3,013
  • 6
  • 37
  • 59
0
votes
1 answer

Add a touch-event listener to a Xamarin custom control using Bindable Property

I developed a simple two-lines custom control to host a Name-Value pair and display it with reusable logicl. I could set up the link between the two properties and the XAML using two BindableProperty that set the value of the two labels. This is my…