mvvm-light Questions
3
Solved
As there is no RelayCommandAsync (at least not that I know of), how to test this scenario. For example:
public RelayCommand LoadJobCommand
{
get
{
return this.loadJobCommand ?? (
this.loadJobC...
Mole asked 18/3, 2015 at 21:24
2
Solved
If anyone starts developing Windows 8 metro applications using MVVM Light please help me to create a Windows 8 (WinRT) project template. I get bored by using Microsoft ‘s Layoutaware page(Base clas...
Dunt asked 24/7, 2012 at 13:48
2
I am using MVVM Light. When I add more value converters in my resources my app crashes with exception:
An exception of type 'System.InvalidOperationException' occurred in Microsoft.Practices.Servi...
Butterandeggs asked 20/1, 2015 at 10:56
1
Solved
I have a WPF DataGrid for which I want to add a ContextMenu using MVVM. This DataGrid resides in a UserControl (I removed a bunch of stuff which I don't think have to do with the essence of the pro...
Speroni asked 15/1, 2015 at 12:38
1
I use MVVMLight and it comes with a ViewModelLocator.
My initial project posed the following problem. I have a MainView that is rendered upon stating up the app. Depending on buttons clicked it r...
Seaside asked 23/12, 2014 at 17:26
2
Solved
I'm trying to bind the DataSource of a MapTileSource to a property on my view model, but I am getting the error REGDB_E_CLASSNOTREG on the Maps:MapTileSource line (underlined in blue is VS editor)....
Systaltic asked 7/4, 2014 at 3:52
3
Solved
I am working on a windows phone 8.1 universal app and want to find the best way of handling page navigations without having large amounts of logic in the code behind. I want to keep the code behind...
Communication asked 15/10, 2014 at 10:23
2
Solved
When I update a ObservableCollection<string> and call RaisePropertyChanged(..) somehow its content is not shown within my Listbox in WPF. I have no idea what I am doing wrong.
The critical ...
Aigrette asked 26/12, 2014 at 16:54
3
Solved
I am not able to use EventToCommand in my Windows Phone 8.1 App.
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:cmd="clr-namespace:GalaSoft.MvvmLi...
Cancellation asked 29/4, 2014 at 9:26
2
Solved
I am using MVVM Light libraries only (from Nuget package) in my Windows Phone 8 project and I want to use EventToCommand in ToggleSwitch. I have these lines of codes:
<toolkit:ToggleSwitch x:Na...
Almena asked 11/12, 2014 at 18:44
5
Solved
My WPF Windows contains a TabControl which displays content on different tabs. A click on the button below executes a method via ICommand interface / Binding. The called method generates text which...
Brigandine asked 6/3, 2013 at 16:48
3
Solved
I'm building Windows Phone 8 app using MVVM Light. So far, so good.
However, when I used EventToCommand, I get multiple errors. One similar question is here EventToCommand not working when migrat...
Mattoid asked 23/10, 2013 at 18:56
6
Solved
I am using MVVM Light toolkit in my WPF application. I would like to know what is the best approach for opening a new window from an existing window. I have got this MainViewModel, which is respons...
Staircase asked 2/8, 2010 at 9:1
2
Solved
I updated Mvvm Light to version 5 and noticed that RelayCommand stopped working.
The problem seems to be that the CanExecute() is not being called to validate. It only validates one time, like wh...
Manno asked 10/10, 2014 at 19:31
2
Solved
I'm using VS2013 Express. I'm quite new in WPF and MVVM. I've downloaded mvvmlight using NuGet to my project. I'm tryinng to use GalaSoft_MvvmLight_Command:EventToCommand. As far as I know, I have ...
Pease asked 13/10, 2014 at 15:33
1
I'm developing a Windows 8.1 store app with C# and .NET Frameowork 4.5.1.
I'm trying to pass a PasswordBox as a parameter on a button Command. I've tested the following code on WPF and it works.
...
Fosque asked 6/10, 2014 at 17:32
2
Solved
I am facing some problems using GalaSoft's RelayCommand.
I have a NextCommand property that works, but only several times.
Afterwards, it stops working completely.
You can try this out with the...
Acidosis asked 16/9, 2014 at 11:59
5
Solved
I am using MVVM Light and have used the packaged messenger system to communicate between view models, however I have hit a bit of a dilemma! Basically when a user clicks on a customer record the co...
Olnee asked 26/9, 2013 at 13:33
2
Solved
I've just started learning the MVVM Light framework and I can't find any straightforward examples on how to use a RelayCommand. For purposes of learning, I'd just like to have a button in my view w...
Striped asked 19/7, 2011 at 21:56
2
Solved
I found a small example that uses MVVM Light to show a message to the user. How it uses MVVM Light, I guess, is that it respects the MVVM pattern.
The view code behind:
namespace DialogosPruebas
...
Dissolve asked 7/8, 2014 at 16:22
1
Solved
I'm aware this question has already been asked numerous times, and I've read many answers referring to it. Nevertheless, none of them fulfilled my requirements, and hence I need some advice.
The a...
Bennet asked 6/8, 2014 at 11:17
1
Solved
I am using MVVM Light in my application, with multiple assemblies in the solution.
How can I have a ViewModelLocator in each assembly without defining in App.xaml resources?
Typically ViewModelLo...
Khz asked 8/7, 2014 at 20:42
3
Solved
I am currently learning MVVM and i don't understand how RaisePropertyChanged is important
For example this function :
public City SelectedCity
{
get
{
return selectedcity;
}
set
{
RaisePrope...
Minimus asked 3/7, 2014 at 19:57
0
I'm trying to add a Blend behavior to a DatePicker control to bind an MVVM-Light RelayCommand to the DateChanged event like so:
<DatePicker Date="{Binding SelectedDate, Mode=TwoWay}">
<I...
Overslaugh asked 19/6, 2014 at 14:50
2
Solved
When I add the MVVM Light package via NuGet I get errors referencing the lines in the App.xaml file added during the install. These errors only appear in Windows Phone 8 projects. The exact same li...
Swizzle asked 13/5, 2013 at 2:38
© 2022 - 2024 — McMap. All rights reserved.