viewmodel Questions
7
Solved
I've been reading some explanations about the difference between User and Custom Controls, for example this:
http://www.wpftutorial.net/CustomVsUserControl.html
I want to create, for example, a s...
Discussion asked 28/6, 2012 at 15:16
4
Solved
I have a custom usercontrol (ChartControl) that I use within my WPF app (MainApp) and which I render as follows:
<ContentControl Grid.Row="1" Content="{Binding ChartControl, Mode=OneWay}" />...
4
Solved
I'm playing with new MVVM framework - Vue.js (http://vuejs.org/).
It was really nice in simple examples and demos but now I'm trying to create big SPA with multiple views and I'm realizing that t...
Semeiology asked 16/3, 2014 at 16:16
4
Solved
I'm working on a WPF application, and I'm structuring it using the MVVM pattern. Initially I had an idea that the ViewModels should be reusable, but now I'm not too sure anymore.
Should I be abl...
Gallows asked 15/3, 2010 at 12:30
7
Solved
i am trying to develop a Silverlight application for a school project.
But I’m having problems with Visual Studio not loading the break point, making it very hard to debug a Silverlight applicatio...
Unpleasantness asked 29/12, 2010 at 18:57
4
Solved
In my MVC application I have a View Model that looks similar to this:
public class ComplexViewModel
{
public ComplexDetailsViewModel Details1 { get; set; }
public ComplexDetailsViewModel Details...
Casebook asked 14/12, 2011 at 22:43
3
Solved
My question is very simple. I want to know where to put my ViewModels in an MVC application.
Currently the project I'm working on only has ViewModels and they are stored in the Models folder. In t...
5
Solved
I'm using ASP.NET MVC 4 and I built these ViewModels :
public class NotificationViewModel
{
public string GroupDesc { get; set; }
public bool AM { get; set; }
public bool PM { get; set; }
...
Implode asked 28/3, 2014 at 13:52
2
Solved
I'm fairly new to MVC4, EF5 and ASP.Net, and I don't seem to be able to find a good answer anywhere.
Basically, Should everything be done through the viewmodel or is it Ok to also incorporate view...
Galimatias asked 8/12, 2012 at 16:18
3
Solved
I have an [HttpPost] action method signature like this:
[HttpPost]
public ActionResult Edit(ExistingPostViewModel model)
{
// Save the edited Post.
}
Now, in the past (when i didn't use ViewMod...
Whichever asked 5/5, 2011 at 5:4
1
Solved
So here's my situation.
Let's say I have a view called TheView.cshtml. TheView.cshtml has a ViewModel called TheViewModel.cs. In TheViewModel.cs, resides a List of an object (TheObject) called TheO...
Bybee asked 30/3, 2016 at 18:54
2
Solved
When debugging with Chrome, I can see CoverPrices has 9 elements. The foreach loop actually works well and the table looks correct with the first span being bound to Item1 correctly.
However, the ...
Incorporating asked 13/3, 2013 at 10:32
2
Solved
I'd like to be able to map a domain model to a view model by newing up a view model and passing in the contributing domain model as a parameter (like the code below). My motivation is to keep from ...
Hoist asked 18/5, 2010 at 17:39
3
Solved
i'm migrating one of my older jquery plugins from DOM jungle to this fancy mvvm framework knockout.
Which technique would i use to properly display a popup container? I ahve to populate it 'by ca...
Sievers asked 24/2, 2013 at 16:0
3
Solved
I used to receive empty string when there was no value:
[HttpPost]
public ActionResult Add(string text)
{
// text is "" when there's no value provided by user
}
But now I'm passing a model
[Ht...
Merta asked 4/9, 2010 at 9:51
5
Solved
In Short: How do I successfully edit a DB entry without needing to include every single field for the Model inside of the Edit View?
UPDATE
So I have an item in the DB (an Article). I want to edit...
Brow asked 7/6, 2012 at 16:19
2
I have a ViewModel on top of a WPF TreeView control. I want the ViewModel to be able to set and read the SelectedItem from the TreeView. However, the SelectedItem property of the TreeView is not bi...
Loan asked 12/11, 2009 at 16:29
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
Let's say I have complex view model with a lot of data such as lists of countries, products, categories etc. for which I need to fetch from the database every time I create the ViewModel.
The mai...
Implicative asked 20/7, 2015 at 12:13
3
Solved
3
Solved
How do you deal with avoiding ViewBag due to its risk of error with being dynamic but also avoid having to populate a new ViewModel and pass it back to the view each time. For instance, I don't wan...
Scolex asked 22/3, 2013 at 20:53
2
Solved
New to Caliburn and WPF MVVM, so I may be overlooking something pretty simple and I couldn't find anything searching the web.
Set up a simple wpf project with Caliburn.Micro. Set window title in ...
2
Solved
My complex type wouldn't pass from Show to Init method even with configured MvxJsonNavigationSerializer as specified here Custom types in Navigation parameters in v3
public class A
{
public strin...
Forty asked 27/9, 2013 at 18:59
2
Solved
At first I'm absolutely new on web development. I'm trying to develop a Web application which consists of a single page (I started with an empty project trying to follow the mvc pattern).
To popul...
Tubulate asked 25/3, 2015 at 13:33
4
Solved
To understand what I mean, the best example to consider is a simple "MyBlog" on ASP.NET MVC. I have database from tables Author, Post and Comment. If I need to pass some Post into view and display ...
Grooms asked 1/2, 2015 at 20:40
© 2022 - 2024 — McMap. All rights reserved.