Questions tagged [mvvm]
The Model-View-ViewModel design pattern, which separates presentation from data and logic.
179 questions
4
votes
1
answer
102
views
Style taking applying control's DataContext property as converter input
In my Avalonia app using the MVVM Community Toolkit, I want to have a number of buttons in multiple user controls in my application to have as their content a ...
5
votes
1
answer
79
views
QT 6 C++ Model View View Model Graphic Photo Size Reducer Tool
This is my first attempt at using the QT portable graphic system. I need to learn QT to pursue some of the positions I am interested in.
I realize the photo size reducer problem may be getting boring, ...
3
votes
0
answers
73
views
Trying to properly modelize app settings in a MAUI app following MVVM architecture
Context:
I am working on a relatively simple MAUI app, which includes a Setting page allowing to customize the UX/UI of the app.
I am trying to make the best use of the functionalities of MAUI, while ...
1
vote
0
answers
1k
views
MVVM using Python's tkinter
My task is to change the architecture of a previously written application to Model-View-ViewModel and use the Command pattern. It is written in Python 3.10.6 and uses the tkinter library for the GUI.
...
2
votes
0
answers
161
views
MVVM signing in using firebase
I'm new to MVVM architecture. I want to have authentication with email + password, google and Facebook. I'm not sure if there should be separate view models for each authentication way:
...
2
votes
1
answer
196
views
MVVM pattern in Swift
I've been coding for some time now and since I am working alone I'm not strict in my coding structure approach(bad idea) and was only focused on getting things done which resulted in MVC(MASSIVE-View-...
2
votes
0
answers
194
views
Angular: ViewModel for safe two-way binding & MVVM
Introduction: Any angular dev should know that Angular tends to provide multiple ways of doing things. When it comes to forms, I tend to prefer to rely on forms of the template-driven variety, and ...
2
votes
1
answer
74
views
Observe LiveData to indicate whether or not to display TextViews in MVVM
In the context of MVVM, is this an efficient way to communicate to the view that I should display some TextViews? Any advice on how I can improve it?
ViewModel code:
...
1
vote
0
answers
59
views
Observe task time and update accordingly
I am building TODO app using MVVM pattern. I have a recycler view that holds all the daily tasks.
My goal was to update the task to be "complete task" and change the row layout when it's ...
3
votes
0
answers
1k
views
Jetpack compose login screen + ViewModel
Im working on the login screen for my application. It has fields for users email and password. Also users can click on forgot password button to send an email with new passsword. It can validate these ...
2
votes
1
answer
282
views
API call to list top stories using dependency injection in iOS with MVVM
I'm currently trying to find out what's the best networking architecture for MVVM applications. I couldn't find many resources and decided to go with dependency injection based architecture as per the ...
2
votes
0
answers
200
views
Android architecture and dependency injection of domain layer usecases
I am implementing some of the architectural designs from Google I/O's app to my own app, but I have come across something in their app that has created some confusion for me.
They have a domain layer ...
1
vote
1
answer
113
views
ViewModel for meetings and rentals
I am bringing up to date an old Xamarin app. I am concerned mostly with any design patterns I should be using or anti-patterns I shouldn't be using. This is my first attempt creating a ...
2
votes
3
answers
271
views
Is this method for loading data in a C# application recommended?
Goal
I'd like to understand if this current method, of loading data and inserting data into a database I currently use is to be avoided?
Code
I drafted a simple application that loads data and inserts ...
4
votes
0
answers
102
views
License-holder editing application
I am building a WPF (Windows Presentation Foundation) application. And I'm trying to use the MVVM (Model–View–ViewModel) design pattern. It's fascinating and rewarding, even though it seems overly ...