Questions tagged [mvvmcross]
MvvmCross is an open source, convention over configuration, MVVM framework for the Xamarin platform and Windows UWP, WPF, Windows Phone 8.1 (non-Silverlight), Windows 8.1 (modern Apps) and Windows Console Apps.
3,722
questions
0
votes
0
answers
25
views
How to make multiple levels of nested Views in MvvmCross WPF?
I'm trying to create a template for WPF MvvmCross that will have 3 levels of nesting for View. The first View is always unchanged; at this level there should be a menu with buttons. Also at the first ...
0
votes
0
answers
34
views
Set ICommand through MVXValueConverter in Xamarin iOS-Android using MVVMCross
In my App, I am using an MVXValueConverter in Android and iOS for creating a single text with Multiple colors.
Now I want to get some Action into my View Model when I click on specific text from whole ...
1
vote
1
answer
127
views
Pass ICommand Action through MVXValueConverter in MVVVMCross with Binding in iOS-Android
I am creating a Cross Platform application in Xamarin MVVMCross in which I am using an Attributed Text for showing a clickable link on some part of a text.
I have created my custom class with ...
1
vote
1
answer
53
views
Update the Alpha of TextView in MVVMCross in C#
I am having an MVVMCross app in which I want to update the Alpha value when user selects some value more than expected one.
I have textview and below is the code.
<TextView
style="@...
0
votes
0
answers
27
views
MVVMCross Xamarin Forms - How to close the Hamburger menu upon click
I am using MVVMCross Xamarin Forms MasterDetailPage and show the Hamburger menu . On click of any menu item, how to close the hamburger menu to its original position in left pane so that the main ...
0
votes
0
answers
21
views
MVVMCross Xamarin.Forms - How to load Themes Dynamically
I have a MVVMCross Xamarin Forms Application. I have my themes in separate files i.e. "BlueTheme.xaml", "LightTheme.xaml", 'DarkTheme.Xaml".
I have a settings page where user ...
0
votes
0
answers
78
views
Buttons Appear Disabled in MvxListView Item Template with MvvmCross in Xamarin Android
I'm working on an Android application using MvvmCross, and I'm facing an issue where buttons inside a MvxListView item template appear disabled (greyed out) and do not respond to clicks.
Here's the ...
0
votes
1
answer
24
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 ...
0
votes
0
answers
43
views
How to disable button if textbox is empty in WPF [duplicate]
I'm using wpf.MVVMC to create a wpf page, it contains a textbox and a button. If the textbox is empty, the next button should be disabled. But it didn't work.
xaml:
<TextBox Name="ServerName&...
0
votes
0
answers
49
views
Xamarin Forms MvxListView is populating with data, but the Binding at the MvxTextCell Is not showing Text
Prefacing this by saying I am by no means a Xamarin dev, and am just trying to add to an existing project.
I have a List View that is adding getting data added to it via an entry and button, and it is ...
0
votes
3
answers
80
views
How to to handle temporary files cleanup in MvvmCross/WPF application
My MvvmCross based desktop application (Windows/WPF + MacOS/Cocoa) creates some temporary files during its normal operation.
The files are created within the async command and deleted before the ...
0
votes
2
answers
85
views
SaveStateToBundle and ReloadFromBundle from MvxViewModel not called
We have this Xamarin Forms Application. We are using MVVMCross for DependencyInjection , Navigation and more.
We now have the problem, that we can't work out, when the SaveStateToBundle and ...
0
votes
1
answer
49
views
How to get Double tap event using MvxListView in MVVMCROSS android mvvmview model
We are using below for listview we need to catch Double tap event of list in MVVM viewmodel
<MvxListView
android:layout_width="fill_parent"
android:layout_height="...
0
votes
0
answers
25
views
I have opened a Window from another Window but Buttons does not work on new?
I have open a window and from that one i wish to open a diaglog windows that returns a object to the old window, but the buttons on the dialog does not react when they are pressed.
Her I make the call ...
0
votes
1
answer
63
views
MvvmCross Navigation to open a New Windows and let the original be open
I wish to open a new window and not a view inside another window. I have a notify icon with a menu from the menu I want to open a new windows from my MainViewModel. Can that be done? It comes up with ...
0
votes
1
answer
187
views
How to change Logger Configuration at Runtime using MvvmCross and Serilog on Android
I configured ILogger using Xamarin.Forms with MvvmCross like so:
public class Setup : MvxFormsAndroidSetup<App, UI.App>
{
...
protected override ILoggerProvider CreateLogProvider()
{...
0
votes
1
answer
311
views
Can not install MvvmCross 9.0.9 (.NET6) creating a new android project in VS2022
I'm trying to install MvvmCross 9.0.9 for a new beginner project, reading the steps for TipCalc tutorial and used the newest version of it (https://github.com/MvvmCross/MvvmCross-Samples/tree/master/...
1
vote
3
answers
165
views
webview implementation using MvvmCross android native XAMARIN
We are using mvvmcross for Xamarin android native but unable to use webview to render html page, please help if anyone tried ...regular xamarin android can do but since we use mvvmcross then that ...
0
votes
0
answers
37
views
MvvmCross Button methodbinding inside an itemscontrol (with parameter) not working [duplicate]
I am new to WPF and using Mvvm frameworks. I am currently using MvvmCross.
What I am trying to do is the following:
I have a list of objects which have properties. I want to show these objects in an ...
0
votes
1
answer
66
views
mvvm - navigate to same View from multiple ViewModels in mvvmcross
I'm currently using fragments with 1-View-to-1-ViewModel mapping. However, I have a special case where a View A (as fragment) is bound to ViewModel A, with a ViewModel B that extends ViewModel A. ...
1
vote
1
answer
56
views
Linker preventing MvvmCross MvxApplication Initialize being called
I have updated my Target Android Api to Android 12 (API 31) so our app can be accepted in the PlayStore. This meant that the Android X packages had to be updated as well.
However, our MvxApplication ...
0
votes
1
answer
286
views
Port Xamarin Android project to .net6.0-android
I have a Xamarin Android Project that I want to migrate to .net6.0-android so I can use the new versions of MvvmCross. I have tried the upgrade-assistant. It claims to only upgrade Xamarin forms ...
0
votes
1
answer
82
views
MvvmCross 4.4.0, MvxAndroidBindingContextHelpers.Current() is Null when targeting API Level 31 and running on Android 12
Our Xamarin Android app relies heavily on some older components in MvvmCross 4.4.0 and so has not been updated to modern versions.
We used the guide found here to modernise just enough to get over the ...
0
votes
1
answer
70
views
How to hide MvxListView local:MvxItemTemplate linear layout in MVVMCross Xamarin Android
We are trying use MVX binding for visibility in view model for template linear layout but it won't work in our case as visibility works in main.axml but not works template, please us if anything we ...
1
vote
1
answer
419
views
Creating dynamic data entry form from the list of fields chosen by User at run time
I have a WPF application where I have view which lets User choose list of fields at run-time and I am storing in a Text file and I am trying to create a Data entry form based on the list of fields ...
1
vote
0
answers
2k
views
Dependency Injection in WPF on .NET Core 6
I'm trying to implement dependency injection and EF 6 in a WPF on .NET Core 6 project. Part of my code on App.xaml.cs is:
public partial class App : MvxApplication
{
public static IHost? AppHost { ...
1
vote
0
answers
51
views
MvvmCross 6.4.2 for iOS seems to mistake my page child view for a MvxPageViewController
Please let me re-stress, I am on MvvmCross 6.4.2. I'm currently upgrading a very old project.
I'm getting the error "Trying to show a page without a PageViewController, this is not possible!"...
0
votes
2
answers
97
views
How to load plugins when updating to MvvmCross 6.4.2 from 5.6.2
I've been tasked with maintaining a Xamarin native project using MvvmCross 5.6.2. Not knowing exactly how to approach this, I've decided to update to one major version at a time (6 first, then 7 and 8)...
0
votes
1
answer
40
views
'MvvmCross/MvvmCross.h' file not found
I got error "MvvmCross/MvvmCross.h file not found" as below screenshot when building in XCode.
The project is buildable in Visual Studio Code for Mac. But when building this in XCode, I got ...
0
votes
1
answer
162
views
How to write this code in ViewModel and bind with XAML design page. Xamarin C#
I'm trying to implement this code in ViewModel, and Design part in the XAML page.
Below you can find my code. Now it's working in Code behind C# page. But i'm trying to move this code in ViewModel ...
0
votes
1
answer
83
views
Serial port in MVVMCross (.NET Standard Library)
I'm developing a WPF application for implementing a serial interface. I am implementing MVVM structure using MVVMCross framework. MVVMCross uses two projects in a solution, one is the core application ...
0
votes
1
answer
100
views
How to close a navigated child view from the main view in MVVMCross?
I'am pretty new in MVVMCross and I am using MVVMCross 8.0.2 for a WPF application. Basically what I'am trying to do is to have main view that have mode selections for the application. When i change ...
0
votes
1
answer
182
views
How to handle event of MainWindow in one of the ViewModel which belongs to a View, but not MainWindow
I wanted to handle MainWindow's Closing event in one of my ViewModel. This ViewModel belongs to a View which is displayed on top of the MainWindow. I wanted to save values of some properties present ...
1
vote
0
answers
103
views
MvvmCross Dependency Injection Cannot Resolve the Type with .net core ILogger
I am using MvvmCross 7.0.0 version to building an WPF application, which I need to use a class library (.net standard 2.0) for dependency injection for my WPF application.
In the .core project App ...
1
vote
0
answers
58
views
Xamarin Forms MVVMCross how to pass parameter when closing the viewmodel
I have a Xamarin Forms using MVVMCross. One of my view models loads a new ViewModel like this:
public class ViewModelMainForm: BaseViewModel, IMvxViewModel<string>
{
..... some code ...
0
votes
0
answers
155
views
Cannot reassign variable inside observer viewmodel
So I created MVVM app in kotlin to fetch movies from TMDB api, using injections and coroutines.
My problem is that I cannot copy the list of returned movies into a new list I created or reassign any ...
0
votes
0
answers
65
views
How does this For To loop work in this context
This line of code was written by another dev:
bindingSet.Bind(_imageViewLoader).For(i => i.ImageUrl).To(vm => vm.ImageTextImagePath);
Some data (this is not an image) also resids within the ...
0
votes
2
answers
244
views
Does mvvmcross have a built-in message for viewmodel to tell view when ViewAppearing/Disappearing happen?
I have logic to be executed in a Xamarin.Forms ContentView (not a Page), when it appears and disappears. This is an mvvmcross content view:
public partial class MyContentView : MvxContentView
I would ...
1
vote
0
answers
84
views
Recycle Fragment Views when using ViewPager (Mvvmcross)
I am using a ViewPager in an Mvvmcross Android App. The Fragments inside the ViewPager are all of the same kind. Is there a possibility to use some view recycling to avoid inflating a new view when ...
1
vote
1
answer
227
views
How to pass data from MainActivity to ViewModel in Xamarin MVVMCross?
I want to pass data from searchView query to my ViewModel, but I can't find way to do that. I want to pass searchText to variable in ViewModel. Any suggestion would be great, thanks! ;)
MainActivity
...
0
votes
1
answer
112
views
adding dynamic icon/image using MVXImageView to item in MvxListView using MVVMCross Xamarin Android
We have implemented solution using below plugins but thats not working
MvvmCross.Plugin.DownloadCache
MvvmCross.Plugin.File
also later we tried some sample that implemented above 2 plugins that works ...
1
vote
1
answer
149
views
MvxRecyclerView NotSupportedException
I want to implement list of different types using MvxRecyclerView and ItemTemplateSelector but I get not supported exception when I only try to show activity with MvxRecyclerView.
System....
0
votes
1
answer
265
views
testing navigation from one view model to other viewmodel
I am trying to create test which be able to check navigation between two viewmodels.
Some code from ResultViewModel
private IMvxCommand homeCommand;
public IMvxCommand HomeCommand => ...
0
votes
1
answer
431
views
Good way to make Userdialog.Instance.Progress wait for method to execute C# Xamarin
I'm trying to show a progress dialog showing the percent done with the method to wait everything + an await Task.Delay(20); And an await for the method I want to execute. Now I notice that with that ...
1
vote
0
answers
145
views
Top tab bar for Xamarin.iOS+MVVMCross
What is the most effective way to implement a top bar like this for Xamarin iOS + MVVMCross? I've successfully done it for Android using MvxTabLayoutPresentation, but for iOS I get a bottom tab bar ...
0
votes
1
answer
80
views
MVVM Cross version 8 displaying the view
I'm new to using MVVM Cross and I'm trying to get the basics. My confusion comes in with seeing my view. I have a main view that is a menu bar with a few menu items with a different color background....
1
vote
0
answers
119
views
Android Tablet + Master Detail view + Xamarin: menu disappears only on very right side click insead of anywhere on dimmed area
There is a Xamarin.Forms App, which has Master (=menu) / Detail views implemented. If you click on hamburger menu, menu (=Master) appears, background (=current Detail view) is dimmed. If you click ...
1
vote
0
answers
29
views
Expand sections in MvxExpandableTableViewSource at the beggining
TableView with MvxExpandableTableViewSource as source has all sections collapsed at the beginning. Is it possible to expand them or just some of them programmatically at the beginning?
1
vote
1
answer
163
views
MvvmCross: Mvx.IoCProvider.Resolve<IMvxAndroidCurrentTopActivity>() return Activity null
In my DialogService, after switching to version 8.0 of MvvmCross, Mvx.IoCProvider.Resolve() returns me an Activity null.
What am I wrong and what changes compared to version 7.0. ??
0
votes
1
answer
181
views
MvvmCross Dialog Presentation for iOS
I have an app that I have written that is running fine on Android Platform. I am currently porting it over to iOS and it seems that a basic function is missing in iOS or I don't know how to make it ...