Skip to main content

All Questions

Tagged with
0 votes
1 answer
40 views

XFC0045 Binding: Property "Title" not found on "EcoTracker.ViewModels.UserProfileViewModel"

I use the ViewModel to display user information and posts on the profile page, but I get an error when trying to get these posts from the UserPosts collection ContentPage.xaml: <ContentPage xmlns=&...
Данил Грицан's user avatar
1 vote
1 answer
58 views

Xamarin.Forms C#: How to put a value on Slider when the page is loaded

I have some pages in my application. From the "MainMenu Page" I can navigate to a "Configuration Page". At the first time,in "MainMenu" I start the parameter "...
emilio nuñez's user avatar
0 votes
3 answers
1k views

Create custom square CheckBox control in .net MAUI MVVM

This is the thing that drives me crazy! I just can't find a way to create custom control for CheckBox component. I need Android and iOS working component to look like this when IsChecked = false/true. ...
user10651574's user avatar
0 votes
2 answers
257 views

How to pass TimeSpan data using query property attributes from one XAML Page to the other XAML Page?

Maybe to some of you it might be elemental issue, but I am really at loss to resolve System.InvalidCastException: 'Invalid cast from 'System.String' to 'System.TimeSpan'. I have two XAML pages, and I ...
zorama's user avatar
  • 15
0 votes
2 answers
188 views

How to open picker in xamarin form on button click

I am using below code but it is not working for me public void OpenPiker(){ Picker picker = new Picker(); picker.ItemsSource = Mylist; picker.Focus(); }
Ahsan Ali's user avatar
0 votes
1 answer
664 views

Is it bad practice to access viewmodel from view's class?

I am developing an app with.NET MAUI. For the desktop app, I am using each segment of the app for different data and such. I either had to use prism region navigation or try to do it with the built-in ...
Fardin Farnezhad's user avatar
0 votes
1 answer
44 views

Xamarin iOS can't launch first view controller without a storyboard and using MVVMCross 7.0.0

After I updated mvvmcross to v7.0.0 in my xamarin ios app, I can't get it running. It just freezes in the splash screen and doesn't launch the first view controller. I checked AppDelegate and Setup ...
Projetinho's user avatar
0 votes
0 answers
35 views

Viewmodel methods calling 4 times when page opening xamarin froms

When I navgite to this DepoAktarımBarkodPage methods in viewmodel calling 4 times. It makes 4 times api call and this makes problem for us. public class DepoAktarımBarkodPageViewModel : ...
Mert Altiparmak's user avatar
0 votes
1 answer
184 views

View Page label not refreshing with MVVM command in xamarin

I have a page in an e-commerce app for the cart. I have my orders total price as a normal label on the xamarin view page outside of the data template in the xaml code as shown below. I have a button ...
SUI's user avatar
  • 5
0 votes
1 answer
133 views

How would i create a custom command for quantity control in mvvm form

I want to create a custom command control to handle the quantity control using an entry and 2 buttons I have an mvvm page with the label and button showing in the viewmodel data template my buttons ...
SUI's user avatar
  • 5
0 votes
1 answer
58 views

Xamarin forms: string binding isn't updating in. the view when property is set inside a timer method. why no work?

Trying to constantly update a string in a view. using MVVM so have set up my view model and set up a timer to constantly update the string with the current time. timer is in the constructor of the ...
keenan's user avatar
  • 3
0 votes
3 answers
1k views

How can I set the ViewModel property for a DataTemplate in a Binding Context within a ListView?

Setting ViewModel Property in DataTemplate Binding Context In my application I have a ListView bound to a ObservableCollection. I'm trying to set the DataTemplate of the list view to my xaml file ...
MegaMarsh's user avatar
0 votes
1 answer
98 views

How would I constantly update a string in xamarin Using MVVM

Making a clock that counts down to a persons death i have thread that checks the time and then figures out how many weeks are left then displays them. i thought id do this by using ViewModel....
keenan's user avatar
  • 3
2 votes
1 answer
576 views

How to make view model bindings work with custom Shell App Title View - Xamarin Forms

Context I'm trying to make a customizable, re-usable Title View template for my Xamarin Forms Shell app. By "Title View", I mean the title bar that appears at the top of a page. I've mostly ...
ktom's user avatar
  • 155
0 votes
0 answers
973 views

.Net maui control template border has buttons inside it but the do not execute the command

how are you ? I'm developing an application in .NET MAUI (I'm kind of new to net maui), and I'm creating a custom control, which consists of the following: <?xml version="1.0" encoding=&...
Alejo Moya's user avatar

15 30 50 per page
1
2 3 4 5
57