Skip to main content

All Questions

Tagged with
2 votes
2 answers
3k views

How do I ensure Xamarin/MAUI ViewModel data has loaded before the UI attempts to consume it?

In my application, I request a collection of vehicles back from a REST API and store them to a property. This is done using an async task. My page consumes this with a picker which binds to this ...
Lazy Turtle's user avatar
0 votes
2 answers
563 views

Binding MicroCharts in Xamarin

I tried to make a chart with MicroChart, by LearnTechnologies youtube tutorial (https://www.youtube.com/watch?v=O6xhZkJa7H4&t=1s), but for me it's not working. I tried to do it completely based on ...
Krink's user avatar
  • 25
0 votes
1 answer
132 views

Problem with binding base64 to ffimageloading:CachedImage

I have a problem with creating stacklayout, which contains image created from base64string, downloaded from database. Example of image declare: In ViewModel: public string ImageString {get; set;} = &...
slodki1997's user avatar
0 votes
2 answers
713 views

In Xamarin.Forms, how to Bind to list of custom class, for ListView and print custom class properties?

In .xaml file I am trying to bind to a listed custom class as ObeservableCollection object. I can successfully update my variables and get the ObservableCollection updated. I can check it rendering it ...
Michele Rava's user avatar
0 votes
2 answers
355 views

Decompose huge legacy ViewModels/Views and implement immutability

In our app there are some pretty horrible ViewModels and Fragments that now we need to refactor. They are huge and should be decomposed of course. But proper way of decomposition isn't apparent to me( ...
stone-w4tch3r's user avatar
3 votes
0 answers
485 views

Xamarin.iOS: Binding project doesn't find types

I followed the instructions to create a new binding project: Create the iOS binding project. Added a "Native Reference" via Visual Studio. Created APIDefinition.cs using Objective Sharpy. ...
Saqib's user avatar
  • 7,432
0 votes
1 answer
158 views

Pull SQL varbinary(max) to Xamarin image

I have a Xamarin application that reads images from a SQL Server database, the column that holds the image data index is 4. I have created a class that contain a member called image, which is an Image ...
Abed ElHameed Jaber's user avatar
0 votes
1 answer
254 views

Binding MenuItem in ListView xamarin

i have 2 questions How can i bind a command from MenuItem using Mvvm? <StackLayout> <Label Text="{Binding TestText}"/> <SearchBar TextColor="Black" ...
Widualk Claudiu's user avatar
3 votes
2 answers
133 views

Xamarin: ImageButton not invoking command from style setter

I am trying to create a custom navigation/"back" button in my mobile app. I want to bind the command as a setter property in a custom style and then apply that style to the ImageButton ...
DancingBaptist's user avatar
1 vote
1 answer
428 views

How do I bind a switch to a property in Xamarin in an Android app in a content view?

I'm creating my first Android App in VS 2022 with Xamarin and now I have to bind a switch to a label to show the user what on/off means. Multiple times so I made a content view: <ContentView xmlns=&...
Kappe619's user avatar
0 votes
1 answer
272 views

How to get JSON from api in listview labels in Xamarin C#

I have the following code that retrieves json from an api. This works because when I put a breakpoint on it, it neatly shows the json from the url. The json looks like this when I put a breakpoint on ...
xalom's user avatar
  • 41
0 votes
0 answers
575 views

Can't build Xamarin.iOS Binding Project with Swift framework

I encounter a problem building a Xamarin.iOS Binding library project. So for context, I have to integrate a Swift framework (built with SDK iphoneos14.5) into a Xamarin project. The framework was ...
Luc Moussiegt's user avatar
0 votes
1 answer
50 views

Binding doesn't refresh the content of the lable

I have a little project with a simulator. In the end the winner should stand in the label. The backcode works fine but the binding doesn't refresh after I set "Winner" to the new string. I ...
Tobination's user avatar
0 votes
1 answer
149 views

How to implement Binding for ImageButtons so that the image is only displayed once the image is loaded?

I have two ImageButtons which should switch their images when clicked. <ImageButton Grid.Column="15" Grid.Row="20" Clicked="Clicked" Source=&...
Luca Hafer's user avatar
0 votes
1 answer
269 views

Xamarin How to bind a class property (from another project) to the Picker.ItemDisplayBinding property

I am trying to populate and display a List"magasin" inside a picker. The magasin class come from another project, added to the dependencies of my main project. I am able to populate the ...
Maxime V's user avatar

15 30 50 per page
1
2 3 4 5
14