mvvm Questions

10

Solved

How can I do this in XAML: PSEUDO-CODE: <TextBox Text="{Binding Password}" Type="Password"/> so that the user sees stars or dots when he is typing in the password. I've tried various exa...
Eartha asked 13/7, 2009 at 13:58

3

I feel like this is a question that would have already been asked somewhere, but I can't find much on it. When using a variable for the purpose of updating the UI, when/why would we use @State with...
Piemonte asked 18/11, 2022 at 2:36

4

Solved

I went through the "Build mobile and desktop apps with .NET MAUI" path on Microsoft Learn. Now that I have a simple working MAUI app, I'm trying to make it MVVM using CommunityToolkit.MVV...
Millham asked 30/5, 2022 at 4:7

10

Solved

I'm trying a demo on vuejs. Now I want the html title to bind a vm field. The below is what I tried: index.html <!DOCTYPE html> <html id="html"> <head> <title>{{ hello }...
Lugworm asked 14/4, 2016 at 2:33

2

Solved

I am and android developer and I have worked on all of these three architecture patterns in my applications. Also I have gone through several post's on stackoverflow about the difference of each. M...

4

Solved

I have the following grid <DataGrid x:Name="TablesDataGrid" Grid.Column="0" Grid.Row="1" ItemsSource="{Binding FilteredModels.View}" AlternationCount="2" AutoGenerateColumns="False" C...
Rosebud asked 25/11, 2013 at 22:22

6

Solved

I am using MutableLiveData within my application for event based communication. I have single activity two fragments architecture. With the help of ViewModel, I'm consuming the LiveData events in...
Erinaceous asked 14/2, 2019 at 10:59

1

I want to inject View Model in Service , how can it possible. I recently started using DI in my project through Dagger Hilt. I'm having no problems when injecting viewModel instances into Activity/...
Ectoblast asked 21/1, 2022 at 9:47

6

Solved

I have a WPF application that uses MVVM data bindings. I am adding items to an ObservableCollection<...> and quite many of them indeed. Now I am wondering that every time I add one to the co...
Taxiway asked 13/5, 2012 at 14:27

3

how we can initialize the viewModel in a service. in a fragment, we do that with Kotlin delegate "by activityViewModels". or we can do it with the ViewModelProvider().get. but as far as I...
Ordonez asked 11/7, 2020 at 11:9

2

Solved

I have a DataGrid, with columns XAML as such: <DataGridTextColumn Header="Time" Binding="{Binding Date, StringFormat='yyyy-MM-dd HH:mm:ss'}" SortMemberPath="Date" SortDirection="Descending" Wid...
Felt asked 11/3, 2015 at 11:14

4

Solved

I understand that ViewModel shouldn't have any knowledge of View, but how can I call MediaElement.Play() method from ViewModel, other than having a reference to View (or directly to MediaElement) i...
Anachronistic asked 17/5, 2012 at 7:46

4

Solved

In my view models, I wanted to use the source generators in CommunityToolkit.Mvvm but for some reason I can't seem to use [ICommand] attribute with my action methods. The error I get is: Cannot ap...
Canonist asked 10/6, 2022 at 17:38

3

Solved

I wonder if anyone can help. I have been banging my head against this problem for half a day now, I must be doing something wrong. I have a custom control with a number of dependency properties. [...
Delphadelphi asked 23/5, 2011 at 16:37

4

Solved

C# 6.0 introduces the ability to define get-only properties: public ICommand AddCommand { get; } Now when defining another property like the following, ReSharper suggests Auto-property can be ma...
Alsatia asked 10/8, 2015 at 20:55

3

I'm a stickler for good Visual Studio Solution and Project structures. I'm about to start a WPF proof of concept piece of work. Can anyone recommend some WPF Project structures they have used and...
Aestivate asked 6/8, 2010 at 10:47

15

Solved

The goal is to display the information that the application is working. So I'm looking for an intelligent implementation sample of a loading spinner using WPF / MVVM.
Wollis asked 15/6, 2011 at 15:1

6

Solved

How to raise / handle the SelectionChanged event of WPF's ComboBox using the MVVM pattern? Explain in detail please I am new to WPF. What I want, is to do some operations when the ComboBox item se...
Intubate asked 29/12, 2011 at 9:53

4

Solved

For those doing pure MVVM, how do you handle a ComboBox SelectionChanged event without reverting to code behind? I tried e.g. AttachedBehaviors but Event="SelectedChanged" is not supported: <C...
Wench asked 4/6, 2009 at 13:15

2

Solved

I am having problems to translate UIKit architecture patterns to SwiftUI. My current pattern is mostly MVVM with Coordinators/Routers. The MVVM part seems quite easy and natural with the addition o...
Philadelphia asked 13/4, 2020 at 12:41

2

Solved

I am trying to bind the ItemSelected of a ListView to a View Model, but am experiencing some issues (due to my own misunderstands around how it all works). I have view: <?xml version="1.0&q...
Margheritamargi asked 31/12, 2022 at 13:50

3

Solved

I have a PlayerV.xaml View with a Slider inside: <Slider Value="{Binding CurrentProgress}"/> and have a button: <Button Content="next song" Command="{Binding playNext}"/> Button w...
Argali asked 5/8, 2014 at 12:20

3

Solved

You hear a lot of people talking about repositories and datasources when talking about design patterns like MVVM or MVI. I've been creating repositories for things like Retrofit and API calls, and ...
Plumy asked 9/3, 2021 at 22:30

4

Solved

Hello everyone and thanks in advance for your time. I'm currently learning MVVM using WPF for a small Biz App that I'm writing. I have read a lot of articles about the MVVM pattern and found that ...
Posset asked 24/1, 2014 at 19:10

36

Solved

I am trying to write a sample app using Android architecture components and but even after trying for days I could not get it to work. It gives me the above exception. Lifecycle owner:- public cl...
Corinnacorinne asked 9/7, 2017 at 15:30

© 2022 - 2024 — McMap. All rights reserved.