Questions tagged [bindable]

The Bindable annotation should be applied to any getter accessor method of an Observable class. Bindable will generate a field in the BR class to identify the field that has changed.

87 questions
155
votes
4 answers

android databinding using "&&" logical operator

I am trying to use the and "&&" operator in xml using Android databinding, android:visibility="@{(bean.currentSpaceId == bean.selectedSpaceId **&&** bean.currentSpaceId > 0)? View.VISIBLE: View.GONE}" but I got the compilation…
chub
  • 5,131
  • 4
  • 35
  • 59
15
votes
2 answers

Create an ICommand Bindable property on Xamarin Forms

I have a custom checkbox control that I created with an ICommand property and the corresponding bindable property (my checkbox is a Xamarin.Forms XAML Page), the code is: CheckBox.xaml
Cesar Tomatis
  • 538
  • 1
  • 3
  • 13
8
votes
1 answer

Xamarin Forms: IMarkupExtension with bindable property does not work

The binding is not working for the Image tag. When I debug, I see that the value of the Source in Extension class is always null? But the content of the label is not null. Xaml
7
votes
2 answers

JavaFX - meaning of property "invalid"

In the context of JavaFX, in what sense is a property "invalid" when it is changed? I don't understand the reason for using this term. A JavaFX property is an object that is observable and wraps a field value. So its listerners/observers are…
4
votes
0 answers

swiftUI modally (sheet) presented list doesn't work the second time

I am using beta 4 Xcode and simply have a list of string items that is modally presented from a main view. var body: some View { NavigationView { List { Section() { Button(action: { …
Arash
  • 1,007
  • 1
  • 9
  • 18
4
votes
1 answer

Best Way in VB.Net to Use Generics for My.Settings Persistance?

Can you improve upon this generic? I'm trying to reduce code bloat, reduce errors and simplify codebehind by use of generics. In this case I'm applying generics to declaration of persistable properties. Persistance is implemented by My.Settings.…
BSalita
  • 6,917
  • 5
  • 48
  • 60
3
votes
1 answer

How to make a bindable markup extension in Xamarin.Forms

As you guys know, there is no built-in type converter class to convert a string to ImageSource object. That brough me a challenge when I want to have my models have a string property representing ResouceID for an embeded image and, then, XAML's…
Big Square
  • 35
  • 4
3
votes
2 answers

How to use a Grid with Bindable Layout (more than one column)

In Xamarin.Forms 3.5 Microsoft introduced us to bindable layouts which can be used to dynamically fill layouts (e.g. StackLayout, Grid, etc.). To use this in a grid with a single column is pretty straightforward:
Christoph Mett
  • 221
  • 2
  • 12
3
votes
0 answers

Xamarin Forms - EventToCommanBehavior do not bind command

I attempted to use EventToCommandBehavior like in below…
Piotr
  • 89
  • 2
  • 8
3
votes
1 answer

How to "inherit" bindable properties in Aurelia?

I am developing an Aurelia application using TypeScript. In this application I defined a set of custom elements each sharing a set of bindable properties that get translated to css settings as shown in the following simplified example: import…
Spontifixus
  • 6,133
  • 8
  • 38
  • 57
3
votes
1 answer

Testing aurelia customElement with bindable and dependencies

Im using the 1.0.0-beta.1 of Aurelia and try to write some unit tests. I have a customElement like this: ... @inject(BindingEngine, Class1, Class2) export class MyElement{ @bindable data; constructor (bindingEngine, class1, class2) { …
jmenzel
  • 120
  • 9
2
votes
1 answer

Does a base class with the metadata [Bindable] keyword automatically extends EventDispatcher?

I'm encountering something a bit bizarre, but maybe someone else came across this before. I've got a base class, that doesn't extend anything. Let's call it... public class FooBar { //... } But I want to bind EVERY single one of its exposed…
bigp
  • 3,913
  • 3
  • 27
  • 52
2
votes
1 answer

Python bindable entities?

I saw that, in the book, Programming Language Design Concepts by John Wiley, 2004, there is a definition for bindables: "A bindable entity is one that may be bound to an identifier. Programming languages vary in the kinds of entity that are…
2
votes
1 answer

How to pass route param as bindable value to component's viewmodel (not view)

I have used route navigation where I access route params from activate. app.ts export class App { configureRouter(config) { config.map([ { route: 'student/:id', name: 'student', moduleId: 'student', nav: true, title: 'student',…
she
  • 97
  • 1
  • 7
2
votes
2 answers

custom BindableProperty of HeightRequest for my custom control in xamarin.forms

I have created one custom control for wrappanel.but it shows extra space. so i am trying to create BindableProperty of HeightRequest for control and set it according to content to remove extra space. this is how i created BindableProperty of…
Neelam Prajapati
  • 3,586
  • 2
  • 21
  • 60
1
2 3 4 5 6