Questions tagged [binding-context]

Part of knockout.js, binding context is an object that holds data that you can reference from your bindings.

Part of knockout.js, binding context is an object that holds data that you can reference from your bindings.

References

Related Tags

41 questions
35
votes
5 answers

Xamarin form: How to reference to the parent binding

Assuming this viewcell was inside ListView. If the content page was binding with a view model, how can I get a reference to the content page's…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
28
votes
1 answer

Set BindingContext to ViewModel in XAML on Xamarin.Forms

I want to develop a simple project with Xamarin.Form and MVVM. In my solution (named XamarinPOC) i have (in addition to standard Xamarin.Forms projects) one separate project for the model (XamarinPOC.Model) and one separate project for the ViewModel…
fabiuz
  • 283
  • 1
  • 3
  • 6
13
votes
1 answer

Cast Binding Path so it recognises ViewModel property at Design-Time

Ok this is more of an annoyance than a problem. There is no error Page
TheGeneral
  • 79,002
  • 9
  • 103
  • 141
2
votes
2 answers
2
votes
2 answers

SAPUI5 - How can I get the name of the model to which my Custom Control has been bound?

I am working on a Custom Control in SAPUI5. The goal is a Pie Chart with clickable segments. Whenever a segment is clicked, an Event should be fired which contains the binding context of the clicked segment (e.g. "/testdata/2"). The context is used…
2
votes
1 answer

Binding with BasePage in Xamarin Forms

I am implementing a Xamarin app with FreshMVVM framework and I want to use a BasePage to share some code among Pages. The problem is that when I need to bind some Properties in the MainPage.xaml I have to specify the Source in this way to make it…
user2297037
  • 1,167
  • 2
  • 14
  • 34
2
votes
2 answers

Knockout Template: Own BindingContext, same Parents

I'm writing a bindingHandler and want to create a binding-context which has the same parents/parent-contexts like the current bindingContext. Read: no extra binding-context-hierarchy. Background: I write a dialog-binding-handler A dom-node has a…
David Rettenbacher
  • 5,088
  • 2
  • 36
  • 45
1
vote
0 answers

Not able to display details of RowRepeater selected first row in detail page

I have one sapui5 application and we have upgraded the application sapui5 version from 1.44 to 1.56. In this application we are using RowRepeater control. We have two views one is Master and other is detail view. Whenever I select a row in Master…
1
vote
2 answers

Add multiple bindingcontexts to xaml file

I try to realize my first MVVM-Project. First I created model called "person.cs". Then I created a modelview "AddPerson.cs", which should dynamically creates the data, which is stored in person.cs. In my view (completely created with xaml) I have a…
1
vote
1 answer

Binding data Xamarin Forms

I want to know why we can't put in a class C # with Xamarin.forms "BindingContext = this" but we can do it in a content page (class and .Xaml) ?
Aicha Maghrebi
  • 63
  • 2
  • 11
1
vote
2 answers

getContextByIndex doesn't return all the columns

I have following code oTableEntry = this.getView().byId("oTable"); var count = oTableEntry._getRowCount(); var oTData; for (var i = 0; i < count; i++) { oTData = oTableEntry.getContextByIndex(i).getObject(); oTData doesn't contain values for…
Dilshan
  • 3,231
  • 4
  • 39
  • 50
1
vote
0 answers

Xamarin.Forms Strange Behavior when Implementing BindingContextChanged Event

I have a list that has icon to most right of cell row when I implementing BindingContextChanged to control context action (enable and disable according to certain condition )
Mina Fawzy
  • 20,852
  • 17
  • 133
  • 156
1
vote
0 answers

Multiple bindingContext on same page

I use listview with headerTemplate. I need to create a bindableproperty to add a Text to my Template. so I create a bindable property in my headertemplate "MyMenuHeader": public static readonly BindableProperty TitleTextproperty…
1
vote
2 answers

binding text value with html element using knockout is not showing in the browser

I am new to Knockout js. Please help me understand where is the issue. I am in a very critical delivery schedule and not able to figure out where is the issue. following is the viewmodel self.profile({ profileicon: ko.observable(imageurl),…
1
vote
2 answers

Xamarin forms - Passing data between pages & views

I have a xamarin forms app. There are 2 classes with data, one of the pages is filling the data. The problem is: I'm creating new view, that should use data from both classes. The only way i'm familiar with is to set a class as a bindingContext to…
Eve
  • 101
  • 2
  • 13
1
2 3