I plan on writing a WPF app following the MVVM pattern for the first time but something is not quite clear to me. Let's say that the view has a "Save" button and when that is hit I need to save the current state of my data (the model). This will be done by sending a SOAP message to a SOAP service.
Where in my MVVM setup do these SOAP ...
i took a look at some questions here at stack overflow like this & mix10 building your own mvvm framework
i wonder if as a beginner its better to start from scratch (but i heard from the vid, its not recommended) or use a framework
also which is more suited as a beginner framework to learn? i find that after reading quite a few article...
Hi guys:
I have this View:
<Grid Margin="10,0,10,10">
<StackPanel>
<wpftoolkit:Accordion
Margin="4"
HorizontalAlignment="Stretch"
Name="accordionCB"
ItemsSource="{Binding Path=ContentBlockCategories}"
SelectionMode="ZeroOrMore">
<wpftoolkit:Accordion.ItemTemplate>
<DataTemplate>
...
i am starting to learn MVVM, and i decided to choose Caliburn Micro to try it out. i am just at the building part (or before that even). i am opening the project. 1st i got an error saying i need to install some silverlight stuff. installed them. now i just get
One or more projects in the solution were not loaded correctly.
// output ...
i am using a webbrowser control and interaction-triggers , and there is some events which don't work like ScriptNotify and LoadCompleted is this an limitation or there is something i should do
Thanks
...
First, I apologize for my low level English writing.
I use Entity Framework and data-binding in WPF MVVM project.
I would like to know what is the best way to do data binding to added calculated property of EntityObject which is generated with Entity Framework.
For example:
partial class Person
{
partial string Name....
i think this sounds like a stupid question. i am starting with caliburn micro: customizing the bootstraper. i have .NET Framework 4 installed, VS2010. but when i try to add a using, there is intellisense that tells me i have System.ComponentModel.Design but no Composition or any of
using System.ComponentModel.Composition;
using System.C...
I have a silverlight datagrid to which I am binding an observable collection from the viewmodel. There is a detail view page which will display different properties of the object in the collection when user selects a row of the datagrid. My requirement is when user updates any properties in the detail view; the data should be updated in ...
I'm currently trying to create a small application using the MVVM pattern. However I don't really know how to correctly wrap up aggregated Model classes in my ViewModel. From what little I know about MVVM, you're not supposed to expose Models in your ViewModel as properties or else you could directly bind to the Model from your View. So ...
I've worked with PRISM on one major project before so I'm pretty familiar with the concepts involved but I'm about to embark on a self managed project and was wondering if anyone has any pearls of wisdom about how to go about implementing an appropriate architecture for a straight forward LOB/Forms over data app. I'll want to leverage as...
Can We use Nettiers in WPF?
or does codesmith have any template for code generation for WPF and MVVM design pattern?
i was using NetTiers And CodeSmith For Windows And Asp.net APplications.
Does it available on WPF applications?
please help me
...
Something that continues to confuse me about MVVM - if I use the view-first approach to constructing my objects (this appears to be the most common approach, at least after much reading and searching), how do I get contextual information into the viewmodel?
I've seen many answers to similar questions say "use the DI container to inject ...
Hi!
I have a typical MVVM scenario: I have an ItemsControl bound to an ObservableCollection of StepsViewModels. I define a DataTemplate so that StepViewModels are rendered as StepViews. The same happens in the StepView: I have an ItemsControl to an ObservableCollection of ParameterViewModels with a DataTemplate to render them as Paramete...
A few weeks ago, I came across this article in MSDN magazine which talks about MVVM in general. One of the things that stood out to me was the DynamicViewModel class. It addresses the code-duplication problem common to applications using the MVVM pattern.
So I wonder, has anyone else tried using it? What do you think of it? See, as...
I have a Page within a WPF navigation-style application that displays search results. The page contains several data-bound controls. The page itself works fine; it performs the search and returns results. The data-bound CheckBox controls work properly.
But if I click a result link and then click the back button to return to the results ...
Hello,
I have an wpf mvvm application. I try to write checkbox list control.
I can bind the checkbox list elements.
Added to this issue, I want to get sum of the selected checkbox list elements values.
I added DependencyProperty and bind it to view model property.
But, they dont fire each other.
CheckBoxList User Control Xaml
<ListB...
Hi.
I am gathering data in a separate Task and I want to data bind the result to a GUI component using an ObservableCollection<>. So my code goes something like this:
private ObservableCollection<MyItem> _items;
public ObservableCollection<MyItem> Items
{
get { return _items; }
set
{
if (_items.Equals(value))
{
retur...
I have the Xaml which should basically bind a set of ContextualButtons for a selected tab's viewmodel to the ItemsSource property of the ToolBar. For some reason, this binding is not actually occuring unless I use Snoop to inspect the element manually...It seems that the act of snooping the element is somehow requerying the binding some...
Hi,
suppose the following classes:
public class Model
{
public ObservableCollection<A> Items { get; set; }
}
public class A
{
ObservableCollection<B> Data { get; set; }
//... some more properties
}
public class B
{
//..properties
}
The model is bound to a RibbonMenu and should also be used in a context menu. The co...
I wanted to do a quick user control for my app, but to keep things in a MVVM style I thought I'd set the DataContext of the XAML to the code behind in my UserControl.
i.e.
DataContext="{Binding RelativeSource={RelativeSource Self}}"
This allows me to bind the XAML to properties in my code behind.
Everything went well until I came to...