Model View ViewModel (MVVM) is an architectural design pattern that separates the page (the View) from the data (the Model) by way of its presentation logic (its ViewModel).
0
votes
1answer
6 views
How to add rdlc file to ReportViewer in WPF projects
I've added a reportviewer in a wpf app via the xaml designer of my main window and I'd like to add an existing rdlc file to it. I've had a very long google session and I've been unable to find a ...
1
vote
2answers
26 views
mvvm confusion with canexecute and binding commands
I'm having a seriously hard time wrapping my head around the logic in the tutorials and posts about this subject. I'm trying to implement it in a wpf application I'm writing.
Basically, I'm using a ...
0
votes
0answers
10 views
Attaching mouse events on ListBoxItem with Binding on ItemTemplate
I have my WPF UserControl which is composed from several stuff and a ListBox.
The ListBox have a binding on the ItemsSource and the ItemTemplate properties.
The ItemTemplate is bind to my custom ...
0
votes
0answers
7 views
C# MVVM cross Windows Phone 8 onNavigateTo and Init
i've got a question. I got a project in C# , Windows Phone 8 MVVM cross.
I got a ViewModel and View off course. In the ViewModel I have an Init method to getting parameter from another ViewModel. In ...
2
votes
2answers
50 views
Saving a WPF canvas as an image following MVVM Pattern
I have a canvas, e.g. similar to this solution or many others using the ItemsControl.
Now I want a button which should be bound to an ICommand. This command should call a method of ViewModel class ...
1
vote
2answers
47 views
Text box value is not updated in ViewModel when changing in the view in WPF
When I change the text box value, it is not updated in the view model.
This is my text box xaml in the view
<TextBox Height="23" HorizontalAlignment="Left" Margin="153,65,0,0" Name="textBox2" ...
0
votes
1answer
36 views
In Knockout.js, is it wise to put events in the viewmodel? [on hold]
In Knockout/Model-view-viewmodel (MVVM), the vm contains data for the view and related functions. Is it wise to place events in the viewmodel too?
2
votes
0answers
38 views
Listview with scrolling background image
I am trying to create a ListView that looks like items sitting on a shelf. I am able to get the shelf background on the list view like so:
<ListView.Background>
<ImageBrush ...
0
votes
1answer
20 views
Kendo Window Declared in HTML How to Open?
I have a Kendo grid that I have created using the HTML-based declarative syntax
<div id="grid-view"
data-role="grid"
data-height="700"
data-selectable="single"
...
0
votes
0answers
13 views
MVVM Light IoC not Binding? What am I missing?
I have a windows 7 phone application that I am working on. I made a couple service classes with interfaces but every-time I try to navigate too these views they now crash.
I setup my project to load ...
0
votes
1answer
18 views
Steps to add a xaml file into a VS2010 project
I am new to MVVM therefore I understand this is a beginner question but I have not found the answer so far.
But in the View project of a MVVM style, what are the steps to add a XAML file to the ...
0
votes
1answer
35 views
Binding to “global” ViewModel
I would like to have a an object that is seen from multiple views.
Each view has a Viewmodel.
Is it possible to have a "global" viewmodel with and object that I cand binding from all views of the ...
1
vote
1answer
25 views
Binding datagrid in datagrid
Why i cant bind datagrid property selected item ?
i have property in my ViewModel
protected TheFile curentFile ;
public TheFile CurentFile
{
get { return curentFile; }
set ...
6
votes
1answer
76 views
WPF ComboBox: Wrong Item is displayed
This is the initial situation:
XAML:
<ComboBox Grid.Row="0"
Grid.Column="1"
Margin="0,3"
HorizontalAlignment="Stretch"
DisplayMemberPath="DisplayText"
...
1
vote
2answers
35 views
MVVM: Make Binding update ViewModel only when data is VALID
I have a ViewModel that implements the IDataErrorInfo interface. It just has a property: MyNumber.
In my view have a TextBox in which the user can type any number, but only numbers from 0 to 9 are ...
0
votes
3answers
52 views
MVVM sharing code Win8 and WP8 and file access
I am working on small project, where I would like to learn about code sharing methods.
This solution include both Win8 and WP8 projects.
I need to load data from XML files which are stored in the ...
0
votes
0answers
37 views
WPF datagrid show data of all columns in one row
In datagrid I want to show list which is grouped, there is a style for datagrid row to show expander which shows basic information and then user has to expand to see more data (in terms of another ...
2
votes
4answers
58 views
What is the real purpose of ViewModel in MVVM?
I had a talk with teamlead about this topic and from his point of view we can just use bindings and commandings omitting ViewModel, because we can test UI behaviour without VM using Automation or our ...
0
votes
1answer
50 views
Add programmaticly UIElement to the View in a asynchromous way
It's been few days now that I'm stick in the same problem so I finally comes up to ask the community.
I will try to make it as clear as possible.
I'm actually trying to add in a asynchronous way ...
0
votes
0answers
7 views
MVVMLight Message Bus single sync/async
The MVVMLight for the Silverlight application has a Message Bus. The View Models can send messages between each other so all of them can be decoupled. My question is, is Sending message an sync or ...
0
votes
1answer
9 views
Catel MVVM EventToCommand for WinRT
I am developing Windows store App using catel mvvm but couldn't find EventToCommand functionality for WinRT. Does anyone has any idea where can I find it?
1
vote
1answer
45 views
MVVM Treeview Click Node
I am using an existed MVVM project and I did fine until now. I have a treeView code and I want
to release the node when it pressed. in other words, today if I click on any node, Its not selectable ...
0
votes
0answers
11 views
How to store Windows Live ID User Information from LiveAuthenticate?
I'm trying to create a windows 8 desktop app which uses the Live Authenticate ability so that users can login with their Live ID.
I set up the Live Authenticate in a separate Class using this code:
...
1
vote
0answers
49 views
Close child window from parent viewmodel wpf mvvm
Close child window after clicking ok/cancel.
I am invoking the child window from parent mvm model
//parent view model var optionSetViewModel = new OptionSetViewModel();
var ...
0
votes
1answer
36 views
EF5 SaveChanges with MVVM
I'm writing a first MVVM application in WPF using EF5 with a "Database First" approach.
My model in the MVVM is what EF5 has generated for me (I did need to customize the T4 template to include ...
0
votes
1answer
40 views
Data is not displayed on the View
I have made a wpf application for implementing the MVVM architecture. I can see the forma but the data is not loaded in the form please help is needed. I am using Visual studio 2012.
Below is the ...
0
votes
1answer
14 views
'System.InvalidOperationException' occurred in Microsoft.Practices.Prism.dll, while navigate to request
I get 'System.InvalidOperationException' occurred in Microsoft.Practices.Prism.dll
while i perform request to navigate. I navigate to a popup region. as first time when i invoke the command, view is ...
0
votes
0answers
20 views
Lightbox in WPF with dynamic image source
Currently I am working on wpf application. I need Lightbox effect. I referred this link - c-wpf-display-images-like-a-lightbox-in-jquery and implemented in my project but it works only for static ...
1
vote
1answer
54 views
How to defer the resolving of classes?
This is my scenario:
I have an application like this:
I Use Ninject as my DI Container and I am working with WPF
1-There is ClassB which is injected into ClassA Which is Injected into ...
1
vote
1answer
47 views
How to bind Windows Form Control to a “Grid” Panel using MVVM in WPF
I am attempting to use MVVM to Bind a Windows Form Control to a panel in WPF. My overall objective is to be able to dynamically change which specific Windows Form Control I will use as I plan on ...