Hi, im looking for some tips and hints how i can build up my Application in a good way.
So here are some informations: I have at the moment the Mainwindow designed with a grid which holds 4 frames. its looking like this.
At the top is a menu which let you select the different Pages. I have for the main area about 8 pages for e.g. a s...
Hi all,
As my company migrates towards the .NET framework from VB6, it looks like we are going in the direction of WPF (my boss is in love with the Office-style Ribbon control). I've been working to mock one of our VB6 applications in WPF and decided to experiment with MVVM at the same time. I'm being discouraged from using an existin...
Hi,
I'm implementing data validation in WPF using the Prism MVVM framework. I'm using clean data Entities in the ViewModel which are being bound to the presentation layer.
<TextBox Text="{Binding User.Email, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" />
I've implemented a generic implementation of IDataErrorIn...
MVVM is a Microsoft design pattern that existed before ASP.Net MVC. Can anyone through light on differences between MVVM and the new MVC pattern?.
...
MVVM doesn't allow code behind and so event handling.
So what's the MVVM way to be notifyed that a cell been changed ?
...
I think I got some sort of knowledge flash and now I am totally confused. I looked at many mvvm implementations like Ocean,Stuff,BBQShack,MVVM demo,WAF,Chinch1,2 etc...
Everyone is doing MVVM differently somehow...
There is ONE scenario that drives me nuts. I am missing understanding and I hope someone can clear the clouds in my head.
...
In my application I want to show a login screen first, if the login is successful only then I want to show what is known as a Shell.
How would you structure a simple application that first authenticates the user via some login screen and then opens up the main window that acts as container for further module?
...
I've bound the data context of the following Window to the code behind to give me a MVVM style to demonstrate this behaviour:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="3...
Hello fellow StackOverflow users (or Stackoverflowers?):
I'm learning-by-coding WPF. I read several articles/saw several screencasts, and coming from a WEB dev background, I fired up VS2010 and started doing a sample application that would help me learn the basics.
I read some about MVVM too, and started using it. I set up my solution ...
I want to abstract data access from my model. I have classes that have collections of other objects and also primary item of object by id.
I need a static GetItemById call from the model for adding these items from the model abstracted from any data access.
How does one go about it?
FYI I'm currently building the model.
...
The following code is from the MVVM sample by Josh Smith:
/// <summary>
/// Raised when this workspace should be removed from the UI.
/// </summary>
public event EventHandler RequestClose;
void OnRequestClose()
{
//if (RequestClose != null)
// RequestClose(this, EventArgs.Empty);
EventHandler handler = this.RequestCl...
I'm developing a networked WPF application with the MVVM pattern and it seems that it's running and connecting to servers in the designer.
I know about the IsInDesignMode property, but I'm not sure how to access it in a ViewModel.
...
Which Silverlight MVVM Frameworks should I look at - taking into account these areas of functionality.
1) IoC - can I choose my own? I would like to avoid using MEF w/ Attributes.
2) Navigation
3) Callback simplification
4) "IMessageBox" type abstractions
5) Testability
6) Logging
Note: mitigating a conversion to full-blown WPF is n...
I'm giving a presentation on using MVVM in real world applications and I'm including a section on the religious wars design decisions involved when using MVVM as a pattern in your application. In an MVVM application there are two main ways (that I know of) to instantiate a new View/ViewModel pair:
View-First in which you create a view ...
I'm looking for some resources and/or examples of how to design and/or implement serialization for a .NET application, specifically an MVVM application. I've never really seen much attention given to this aspect of application design and development (that is, serializing application sessions to document files, in the way that Word or Exc...
Hey guys,
I am looking for an elegant solution for the following problem.
Let's assume we have a (View)Model with the following boolean properties:
Alpha
Beta
Gamma
Delta
Next I have 5 controls on the surface that shall only be visible when a condition based on those properties are met. Of course, as soon as one of those properties...
I am reading DataModel-View-ViewModel pattern: 2
I don't really understand the need to check if I am in the UI or Background thread. what if i skip the checks. Also, the code below ...
[Conditional("Debug")]
protected void VerifyCalledOnUIThread()
{
Debug.Assert(Dispatcher.CurrentDispatcher == this.Dispatcher,
"Call must b...
Hi all
I started implementing MVVM for one of my Silverlight applications.
(I'm not using any toolkit).
My page contains a section with two combo boxes. Selecting an item in one of these combos triggers a search that updates a grid visible below the combos.
Each combo's selected item is bound to a property in my view model. The setter...
When using Josh Smith's RelayCommand, most of the examples I've seen use lazy initialization such as:
public class ViewModel
{
private ICommand myCommand;
public ICommand MyCommand
{
get
{
if (myCommand == null)
{
myCommand = new RelayCommand(p => DoSomething() );
...
I've been using the following bit of code in a cookie cutter fashion, across dozens of classes
public event PropertyChangedEventHandler PropertyChanged;
protected void NotifyPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(proper...