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.

93 questions
179
votes
5 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…
chubao
  • 5,871
  • 6
  • 39
  • 64
18
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
  • 598
  • 1
  • 4
  • 15
10
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
8
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…
user3058565
  • 81
  • 1
  • 2
5
votes
5 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
  • 369
  • 3
  • 16
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: { …
Congruent Tech. UG
  • 1,408
  • 2
  • 12
  • 21
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
  • 8,420
  • 10
  • 51
  • 68
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
0 answers

Xamarin Forms - EventToCommanBehavior do not bind command

I attempted to use EventToCommandBehavior like in below…
3
votes
2 answers
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,570
  • 9
  • 45
  • 63
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…
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63
2
votes
2 answers

Aurelia make bindable act as observable on object properties

In Aurelia binding if in a component we use observable decoration on a property, and if the property being an object, then we will subscribe to all properties of that object. For example: import { observable } from 'aurelia-framework'; export…
ConductedClever
  • 4,175
  • 2
  • 35
  • 69
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…
1
2 3 4 5 6 7