Questions tagged [mvvm]

-3 votes
0 replies
How can I bind double-click on item ListView (mvvm, no code behind)? [closed]
I have following code: <GridView> <GridViewColumn DisplayMemberBinding="{Binding Author, Mode=TwoWay}"...
asked 1 month ago
-2 votes
0 replies
What is the most correct way to fully adapt this code to the MVVM pattern?
I have a DataGrid with a DataGridComboBoxColumn. Each ComboBox should have the same drop-down: the new values entered in the ComboBox (the ComboB...
asked 1 month ago
0 votes
1 replies
Using of graphql service within desktop application that “follows” MVVM and DDD
We have a WPF desktop application that uses MVVM pattern and DDD (well, let's say that at least my model classes that store data named by entitie...
0 votes
0 replies
OnScrollChanged event for my ScrollViewer in MVVM WPF
I wish to use an attached property to handle the ScrollChanged event of my ScrollViewer. At the minute the event and logic are handled in the UI...
asked 1 month ago
0 votes
0 replies
Request authorization on SKCloudeServiceController in a mvvm coordinator environment
I've built really simple apps before using the Model-View-ViewModel and the Coordinator pattern and I'm totally on board with the inversion of co...
asked 1 month ago
0 votes
1 replies
How to change background via data binding in Android layout xml?
I want to use the folloeing code to change the background of ConstraintLayout. <?xml version="1.0" encoding="utf-8"?> <layout xmlns:too...
0 votes
1 replies
Binding of DispatcherTimer don't shov it's value on View
In the UserInteractiton class I created an instance of the TestTimer class, in which the timer is located. I run it and I want to display the val...
asked 1 month ago
0 votes
0 replies
WPF DataGrid - Dynamic Two Way Binding to T instances in ObservableCollection<T>
Suppose I have a model (leaving out the full implementations of INotifyPropertyChanged for brevity): public class MyModel : INotifyPropertyChan...
asked 1 month ago
1 votes
1 replies
Signature for KeyDown on a ComboBox
I have a WPF desktop app in Visual Studio 2015 with Blend Extensions. I want to add a EventTrigger in a ComboBox for the KeyDown event but when I...
asked 1 month ago
0 votes
2 replies
How do I prevent blocking the UI due to fast-changing properties during IO operations?
I'm working on an application that at some point deletes a folder. To display a progress to the user, I utilize a ProgressBar in the View. Theref...
asked 1 month ago
0 votes
2 replies
Is there an event that fires when an element becomes inactive
I have a WPF-MVVM application witch communicates with a plc. While a button is pressed a bool variable in the plc shoud stay true and if its rele...
asked 1 month ago
-1 votes
0 replies
Why can't refresh that listbox in WPF?
I am writing code that updates the information of inverters every timetick. It updates well when using the DockPanel alone, but does not update t...
asked 1 month ago
0 votes
1 replies
How to implement ViewModel if I am using Razor Pages with no Controller
Or am I required to use a controller? I have a Movies Class, a Genres Class, and a Media class that I will need to combine in a Model View so tha...
asked 1 month ago
0 votes
1 replies
MVVM Execute method every x seconds/minutes with on window countdown [duplicate]
This question already has an answer here: WPF Timer Like C# Timer 3 answers...
asked 1 month ago
0 votes
0 replies
MVVM Indexed Binding
I am using WPF MVVM architecture and my ViewModel has an ObservableCollection of object. My Main ViewModel will look like below and it is bindin...
asked 1 month ago
-1 votes
1 replies
How to suspend process and start again?
I want to start a process but stop it at a particular point and then if all criteria is met restart that process. I can see how this question is...
asked 1 month ago
0 votes
1 replies
How to use a MutableLiveData Object in my xml?
I have an object that will fill some fields in my xml, but a mutablelivedata return a T value and I can't use the T properties. What I need to do...
asked 1 month ago
0 votes
1 replies
How to show even/odd seconds with DispatcherTimer
I have two text blocks, which show timer's value using DispatcherTimer. I need to update their values each 2 second and one block must show only...
asked 1 month ago
0 votes
2 replies
Opening CommonOpenFileDialog using WPF PRISM MVVM
I have been reading about the best way to open dialogs using PRISM and opening them the MVVM way, however what I have found so far seems to only...
asked 1 month ago
0 votes
2 replies
How to get View to update when the ViewModel gets changed
I'm building a WPF application to manage a student database stored in a SharePoint list. I'm new to using MVVM and have gone through a couple tut...
asked 1 month ago
3 votes
0 replies
WPF navigation and ViewModel instantiation with an MVVM Viewmodel first architecture
I have started a WPF application, and desire to follow an MVVM ViewModel first approach. For navigation, I have seen many options: using a Con...
asked 1 month ago
0 votes
0 replies
Cannot have a custom (MVVM) control used from another Control [duplicate]
This question already has an answer here: XAML binding not working on dependency property?...
asked 1 month ago
0 votes
1 replies
View is not getting refreshed in bindable layout xamarin forms
i am creating a horizontal list of categories by using a bindable layout in a stack view like in image shown below, so when i clicked on one of m...
asked 1 month ago
0 votes
0 replies
How do I create a custom four button control with useful bindings?
I am trying to make a clicker game in WPF based on CivClicker Mostly just a clone right now but... I hope to expand on the concept in the future...
asked 1 month ago
0 votes
0 replies
How to correctly use a RatingBarBindingAdapter?
I'm trying to find an example of using this. I've tried several variations of things and I keep getting data binding errors. My xml: <and...
asked 1 month ago