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
0
votes
1 answer

How can I inform an owning object of changes to a child's properties in a MAUI application?

Background I've got some binding issues that I can not for the life of me resolve. I've spent nearly 3 days working on this, but I'm officially lost so I'm hoping someone can point me in the right direction. This is part of a MAUI project that I…
0
votes
0 answers

Use BindableProperty on a self contained component

I'm trying to set some BindablePropertys on a self contained component, ie a component with it's own view model. To have access to BindablePropertys, I declare the properties and their accessors: public ICommand ItemSelectedCommand { get =>…
sinsedrix
  • 4,336
  • 4
  • 29
  • 53
0
votes
1 answer

how can I assign real/fake object to binding context for Xunit test (Model Binding)?

this is the method i want to test public class DataRequestQueryBinder : IModelBinder { public Task BindModelAsync(ModelBindingContext bindingContext) { var jsonString =…
0
votes
2 answers

How to create viewmodels instance when app start time in xamarin forms MVVM

My aim is to access bindable property across the the App. But My current framework ViewModel Instance create multiple time My Requirement : I have the cart count in the bottomTray(CheckuoutViewModel) i want to increase the cart count any where in…
0
votes
1 answer

ViewModel Command call from ListView.ItemTemplate in Xamarin.Forms

Here I am using MVVM architecture for developing applications. I have an image inside the listview and the listview binding with a list (ViewAcceptedList). Here I am using TapGestureRecognizer for the image. Inside the image I need to call a command…
0
votes
1 answer

Xamarin Forms: How can i correctly bind data from two view models to a single view?

This is the short code for testing purpose. The problem is that the UI is not displaying the Text from the Label which is binded with ViewModelB. In debugging when I hover the mouse in xaml over the Text from the Label I see the right binding data…
Dragos
  • 3
  • 1
0
votes
1 answer

How to Refresh the Bindings on HomePageViewModel when some data has been changed in Navigated Page2

I have some property which I am using from Page2 in HomePageViewModel, When I navigate to Page2 I have changed that property and on coming back by doing NavigiationPop. HomePage is not re-loaded/ refreshed at all as I have set the BindingContext in…
hemant
  • 321
  • 2
  • 5
0
votes
2 answers

Tap on a image inside the ListView, we should get a property value of specific Row

I have a listView, it contains an image with a list of items. When I tap on the image, I should get ProfileID of that row.
0
votes
1 answer

PropertyChange of sub-ViewModel does not update UI in Xamarin

I have a page with a Telerik TabView. This contains two tabs. Each tab contains a view specified as ContentView in separate files. Each view has its own ViewModel, which are referenced in the ViewModel of the page. In UI I use the sub-ViewModels as…
das.flaigsi
  • 89
  • 1
  • 7
0
votes
1 answer

Can I populate a Label within my CollectionView with a value outside the ItemsSource List that populates the view?

I have a Label within my CollectionView that I need to populate with a value outside the ItemsSource List that populates the view. The following code is an example of what I am trying to accomplish but it seems that the CollectionView is limiting…
0
votes
1 answer

Xamarin Forms - Update multiple views/pages when one property changes

I created a Xamarin forms application based on the tabbed page structure. There are around 5 tabs. 1 tabs has an entry. When I fill the entry, I want the other 4 tabs to show the entry in a label. How can I achieve this? People usually say that you…
M Yil
  • 877
  • 1
  • 14
  • 35
0
votes
2 answers

Xamarin forms - Pass argument to the bindingcontext viewmodel specified in a xaml file

I have a xaml file with with an entry. I am binding the specific entry to a specific viewmodel. But the viewmodel expects a Navigator. How can I pass the navigator from the xaml file to the viewmodel?
M Yil
  • 877
  • 1
  • 14
  • 35
0
votes
1 answer

How can I set the BindingContext of each view in a CarouselView?

I'm trying to let each view in a CarouselView have the same BindingContext object as the parent ContentPage. I've tried the following which doesn't seem to work. MainPage.xaml is the page that is initialized at runtime. It holds a CarouselView with…
supernova
  • 88
  • 7
0
votes
1 answer

How can we assign Application.Current to BindingContext

Iam very much new to xamarin and wondering about how BindingContext is used. I was going through a tutorial wherein they used BindingContext = Application.Current according to the docs Application.Current should return Application. so how can this…
0
votes
0 answers

NativeScript passing context from app.js directly

I have nativescript app where in app.js is set: application.run({ moduleName: "app-root/app-root", context: { param1: "A", param2: "B", param3: "C", param4: "D" } }); This fires up app-root (Side…
Maka
  • 371
  • 3
  • 14