mvvm-light Questions
13
Solved
I have a ViewModel defined like this:
public class LocationTreeViewModel<TTree> :
ObservableCollection<TTree>, INotifyPropertyChanged
TTree : TreeBase<TTree>
I want to refer...
Lamonicalamont asked 4/4, 2012 at 5:0
7
Solved
I got a WPF application that shows a button bound to a command like that:
<Button Command="{Binding Path=TestrunStartCommand}" Content="GO!">
The command is defined like that:
public ICom...
Verditer asked 23/1, 2013 at 12:4
3
Solved
I am Using MVVM with WPF. i am halted in a way, i want your views about this. i am firing Mouse Events using MouseBehaviour.cs class , Is there any other way to handle Mouse Events in MVVM WPF
usi...
Boaz asked 17/6, 2014 at 10:2
14
I'd like to handle the Closing event (when a user clicks the upper right 'X' button) of my window in order to eventually display a confirm message or/and cancel the closing.
I know how to do this ...
Inwardly asked 10/9, 2010 at 9:18
2
Solved
I am working on a project in WPF using the MVVM Light framework. I have a DataGrid that is bound to an ObservableCollection<Worker>. As of now, when I add a new item, the DataGrid doesn't upd...
Souvaine asked 19/6, 2013 at 5:55
3
Solved
I am using MVVM light with WPF. I want to set button background color based on some specific condition through ViewModel. Kindly suggest some way to get it. Thanks
Hamlen asked 7/9, 2011 at 6:39
7
Solved
I am using MVVM-Light RelayCommand
private ICommand myRevertCmd;
public ICommand Revert
{
get
{
if (myRevertCmd == null)
{
myRevertCmd = new RelayCommand(RevertExecute, CanRevertExecute);
}...
Subalternate asked 17/5, 2011 at 9:4
2
When starting a new mvvm-wpf-application, I usually include mvvm-light right at the start. That works fine, until my application grows.
Some where along the line the ViewModelLocator becomes huge ...
Trafalgar asked 12/2, 2017 at 9:14
2
Solved
For a new project I want to try out the new .net core 3.0 WPF project and I want to use it in combination with MvvmLight. However in .net core and in combination with Visual Studio Code you don't g...
Overcome asked 25/6, 2019 at 14:40
4
Solved
So far as I understand, SimpleIoc uses GetInstance method to retrieve an instance of a class that is registered. If the instance doesnt exist, it will create it. However, this instance is cached an...
Ascomycete asked 18/2, 2012 at 15:2
1
Here is the basic pattern of using MVVM Light's Set method:
public class MyViewModel : ViewModelBase
{
private string _text;
public Text
{
get{ return _text; }
set{ Set(()=>Text, ref _tex...
Bondy asked 16/6, 2015 at 20:5
2
Adding MVVM Light reference to a WPF projects adds a large number of system assemblies to the list of dependencies in the accompanying MSI Setup project. These assemblies (50+ in number) are then c...
Trunk asked 31/7, 2016 at 9:18
2
I am working on a WPF application. I have implemented error handling and implemented error mail sending feature for this application. So admin will get the error message if any error happened in th...
Akim asked 7/1, 2014 at 5:10
1
Solved
I've build this example to show my issue.
I need to create a hierarchy to be shown in a treeview, treeview to be bound to the view model.
In the good old days of VB6 I would have used DoEvents to u...
Adherence asked 10/11, 2019 at 21:32
2
Solved
Could somebody be kind enough to give me an example of how to Send and Register custom objects between classes using MVVM Light's Messenger or point me to a tutorial that covers this (preferably a ...
Shalon asked 7/6, 2013 at 22:33
4
I'm trying to adjust my WP8 project from self made MVVM implementation to MVVM Light.
The application compiles without errors, but when I open my MainPage.xaml in Expression Blend, I will get this...
Prepossession asked 11/7, 2013 at 12:58
3
So I've been doing quite a bit of digging and I haven't been able to find any real definitive answer to this anywhere.
I'm writing an application using MVVM Light and WPF. I have a service that i...
Prepuce asked 27/3, 2019 at 3:42
5
Solved
I've been programming my Windows 8 apps and Windows phone apps using MVVM. I'm about to be exposed to MVVM Light and I was just wondering what the difference between them are? I imagine MVVM light ...
Liggitt asked 20/3, 2013 at 15:41
2
Solved
I am wondering why MVVM light is missing command with async execution? I believe there are many cases where this could be useful, so let me name one.
Let's say that our UI contains one container th...
Infest asked 30/12, 2014 at 3:26
3
Solved
I'm learning WPF with MVVM Light and i've an issue with my Portable Class Library.
I follow this tutorial: http://www.codeproject.com/Articles/536494/Portable-MVVM-Light-Move-Your-View-Models
I cr...
Finnegan asked 14/4, 2014 at 19:7
2
How can you create a binding between a ViewModel and a View?
In the past there was a Locater created in App.xaml and then on the view you had this:
DataContext="{Binding MainViewModel, Source={St...
Licastro asked 22/9, 2018 at 13:34
4
Solved
Please help - I'm getting lost!
I'm writing a small desktop application which has some controls and some screen. This should later be integrated with a small web site, also having some screens. Th...
Sid asked 29/5, 2012 at 12:24
1
I am puzzled by a (I thought) simple thing to implement; make a UI element visible depending on a binding to a view model. I use the mvvmlight framework. When the binding (boolean) is set to true t...
Limey asked 17/8, 2018 at 20:41
3
I have a view that has a group of images I get from a web service
I receive them in a list of this class:
public class ImageModel
{
public int Id { get; set; }
public string Name { get; set; ...
Donnettedonni asked 4/12, 2017 at 14:50
1
Solved
Starting with WPF and I like the MVVM pattern where I have a ViewModel locator as I'm quite used to IoC usage. However most blogs/articles say that a Usercontrol should not have a ViewModel. ...
Focus asked 15/4, 2018 at 15:26
1 Next >
© 2022 - 2024 — McMap. All rights reserved.