Category "mvvm"

WebView2 and MVVM in WPF - PostWebMessage

I have created a web application using angular and now I want to load it in a WPF application using WebView2 (not electron). That all works well. However, I als

How to post JSON Object direct using Retrofit in android Kotlin (Using MVVM Pattern)

I am using retrofit for posting data to server as below @POST("web_php/app_user_login") suspend fun loginApi(@Body body: RequestBodies.LoginRequestBody):

How to get selected value on SelectionChanged event of ComboBox in ViewModel (WPF-MVVM)?

I am new in WPF Application with pattern MVVM and I have a particular situation that I do not know how to solve it. I builted a system to switch environments (P

Does mvvmicro/AutoFindviews supports AndoridX libraries?

Currently I am trying to update Android support libraries to AndoridX in our project which is built on Xamarin.Android. But when I use androidx widgets in layou

Combining Two Flows and add them to temporary list of StateFlow(Hot Flows)

I m getting data from two End points using flows and assigning those two list to temporary list in ViewModel. For this purpose, I'm using combine function and r

WPF : How to bind a string to Dynamic resource for a label content

I am new to WPf and MVVM. I have Dynamic language change functionality in my wpf application. For this functionality I have 2 Resource dictionary for each langu

Do not want to show all datatypes in listview, is there a chance to hide some datatypes?

I want to show just tree dataypes in my list view.(GeometryNode, ToolNode and StockNode). But my item source has 5 dataypes. How can I filter this datatypes? My

WPF Binding in textblock does not work but in its tooltip does

I have a weird issue. In my application (witten with C# .net framework 4.8 with Microsoft's MVVM toolkit) I have a ListView bound to a BindingList<VisualMach

WPF Textbox Validation Error binded to Variable

In a .xaml file, I have a number of Textbox objects that are linked to data paths as such: <TextBox Text="{Binding Path=Var1}"> These variables (like Var

Injecting a single dependency to a view model

I want the LoginViewModel to have a single dependency of LoginViewModelService. 
LoginViewModelService in itself cannot have an implementation. Its method

Data retrieving from Database Crashes when in MVVM with the Error Could not Connect To Firestore

I am trying to call data from Firebase and map it to data class while using MVVM but Its showing me errors saying failed to Connect The code of Repository Imple

'No connection string named 'IICMDATAEntities' could be found in the application config file.' EF6 - Revit Add-in

am build file .dll Revit Add-in has Entity Framework 6 and my errors enter image description here Help me

Usecase inside a custom view

First of all, sorry for my english, this is google translator. I am learning mvvm, maybe I have some misconception but I think I can understand it well. My goal

How can I change IsInDesignMode to use it in Microsoft.Toolkit.MVVM?

This time I must be migrate MVVMLight and replace it with Microsoft.Toolkit.MVVM. In the documentation is written there's no direct replacement for IsInDesignMo

Getting index of selected item in a ListView while WPF MVVM pattern is used

I want to get selected Item from ListView. My view is: <ListView Name="StudentGrid" Grid.Row="1" Margin="1,1,1,1" ItemsSource="{Binding studentList}" Selecte

Change to array triggers change in other object

I am currently working on a chess game and I want to implement a Redo button. The way i am doing this is, that the I have a list of GameStateContainer class whi

MVVM Bindings doesnt update with PropertyChanged

All my bindings are not updated and I don't understand why My Model is: Public Class TestModel Implements INotifyPropertyChanged Public Event PropertyC

MVVM in TableView Cell

hope you're well, i am working on an app which uses TableView for showing feeds to user using ViewModel and my ViewModel contains a variable which contains data

QT QML + C++ MVVM

As far as I know in QT QML is not possible to instantiate a C++ class in QML Component, unless it is a QQuickItem. I would not like to put all ViewModels on Vie

Can't see anything on the Xamarin ListView (DataBinding - MVVM)

I tried to use some DataBindings on the listview but nothing is listed. Model.cs public class Post { // Columns inside of the Database table [PrimaryKe