mvvm-light Questions

1

Solved

I have a splash screen for a WPF (using .net 4.5 and mvvmlight) that must perform various load operations in an async manner, showing progress and occasionally asking for user input. When asking f...
Sapp asked 23/6, 2016 at 12:7

1

Solved

On a Windows 8.1 Metro app, I'm trying bind a collection of shapes from my view model into MainPage.xaml. Each shape will have a Left, Top and also a PathData which will be a RectangleGeometry that...
Icao asked 14/6, 2016 at 18:36

1

Solved

Update Uploaded sample project: https://github.com/subt13/BugSamples I have reproduced an error that has been occurring in a Windows 10 UAP application that utilizes the MVVMLight framework. I ...

3

I have a Timer and three buttons to control it: Start, Stop, and Pause. Each button is bound to a RelayCommand. I have a TimerState property of type enum TimerState. (This is useful for setting var...
Evolutionary asked 6/8, 2014 at 17:18

8

Solved

I have added CollectionChanged eventhandler(onCollectionChanged) to one of the ObservableCollection property. I have found out that onCollectionChanged method gets invoked only in case of add item...
Pict asked 3/1, 2011 at 21:5

3

Solved

I am working on a Silverlight application using V3 SP1 of MVVM Light Toolkit. My application is fully French/English. All UI elements (buttons, labels, etc.) and all the data (models). I need dyna...
Arte asked 20/5, 2011 at 15:30

2

Solved

Background Hi all SO viewers. I am normally an Android developer, but now I'm developing a cross platform application targeting WPF and Android. That being said, there's practically no info on how...
Horseback asked 15/2, 2016 at 21:33

4

Solved

I could not understand BorderThickness="{TemplateBinding BorderThickness}. Here the code: <ControlTemplate TargetType="{x:Type wpftoolkit:DataGridCell}"> <Border Padding="{TemplateBindin...
Venerate asked 15/5, 2012 at 9:8

1

Solved

I need to create an instance of a ViewModel with a specific parameter passed to the ViewModel when created. At the same time this ViewModel instance should be registered in SimpleIOC i thought thi...
Iveson asked 23/2, 2016 at 19:44

5

Solved

I'm developing a UWP App, with Mvvm Light and Behaviours SDK. I defined a multi selectable ListView: <ListView x:Name="MembersToInviteList" IsMultiSelectCheckBoxEnabled="True" SelectionMode=...
Expressly asked 16/1, 2016 at 0:57

2

Solved

It seems that snippets of MVVM Light are not installed when we use Nuget to install MVVM Light Toolkit. Where can I find them ?
Desist asked 29/3, 2013 at 18:11

4

Solved

I'm implementing an RelayCommand with an execute and an canExecute part. The RelayCommand works when it is without the canExecute part, however when I add the canExecute part, the command locks the...
Bondage asked 14/10, 2013 at 16:1

2

Solved

I have ICollectionView looks like public ICollectionView UsersCollectionView { get { var view = CollectionViewSource.GetDefaultView(this); view.GroupDescriptions.Add(new PropertyGroupDescript...
Aureomycin asked 16/9, 2015 at 18:5

2

Solved

We have a working project in Windows 8.1 which is made compatible to Win 10. Now the requirement is to convert this project to UWP. In the earlier project, we have used PRISM as the framework for M...
Schiller asked 23/9, 2015 at 7:43

0

I find out that the EventToCommand for the Loaded-event is not working as expected if the Window.SizeToContent attribute is set to WidthAndHeight. The Loaded-event seems to be fired correctly, but...
Boldfaced asked 17/9, 2015 at 9:48

1

I m hitting the following error on my new windows 10 universal app C#/XAML: An exception of type 'System.InvalidCastException' occurred in GalaSoft.MvvmLight.Platform.dll but was not handled in us...
Fascinating asked 21/8, 2015 at 5:27

5

Solved

My generic question is as the title states, is it best to load data during ViewModel construction or afterward through some Loaded event handling? I'm guessing the answer is after construction via...
Dock asked 28/3, 2010 at 3:53

3

Solved

I'm using the excellent MVVM Light Toolkit. My ViewModel exposes: public const string CourtCodesTypeCourtPropertyName = "CourtCodesTypeCourt"; private List<CourtType> _courtCodesTypes = new ...
Thankful asked 25/8, 2010 at 4:51

1

Solved

I have a working solution for WP8.0. But I needed to upgrade to get access to WNS. I have succeeded in adding WNS to the upgrade solution in the main menu works. But after Upgrading to wp8.1(silver...
Larousse asked 21/7, 2015 at 17:38

2

Solved

Is it correct to store all my ViewModels in SimpleIoc? For instance I am having three pages MainPage, Photos, Directories (therefore three ViewModels -> MainVM, PhotosVM, DirectoriesVM). Should I s...
Glue asked 2/1, 2013 at 22:34

1

I have a Windows Phone 8.1 MVVM Light project and I am struggling to keep it Blendable. As I see it I have a few options. I can load different view models depending on whether ViewModelBase.IsInDe...
Fricke asked 9/6, 2015 at 10:54

1

I have cloned a solution, it contains multiple projects based on GalaSoft MvvmLight library, also it has two Portable Projects. I have installed all required nuget packages and references but I am ...
Sekofski asked 21/5, 2015 at 17:59

2

Solved

Currently in my application, I have a RelayCommand which calls an action which starts a Timer. I have a separate command which the calls the Dispose() method to get rid of/release the timer. This a...
Pemberton asked 18/5, 2015 at 12:27

2

Solved

I want to invoke a command on TextChange event of new windows phone 8.1 AutoCompleteBox Control. I am using MVVM Light.

5

I am trying to figure out a way for my ViewModel to handle saving or restore the page's state when the page is navigated From or To. The first thing I tried was to add an EventToCommand behavior t...
Cide asked 27/7, 2010 at 21:43

© 2022 - 2024 — McMap. All rights reserved.