viewmodel Questions
2
Solved
I have a viewmodel which needs data from two models person and address:
Models:
public class Person
{
public int Id { get; set; }
public string Name { get; set; }
public int Age { get; set; }
...
Morton asked 17/4, 2013 at 22:44
4
Solved
Currently in my application and using the unit of work pattern and generic repository, all my controllers contain all of the business logic. I'm in the process of putting everything over to use Vie...
Detrital asked 12/9, 2011 at 16:50
2
Solved
A common senario: A model with a collection of item models.
E.g a House with a collection of People.
How to structure this correctly for MVVM - particulary with regard to updating the Model and Vi...
Lesbos asked 5/4, 2013 at 9:12
2
Solved
I'm using asp.net mvc with entity framework and starting to learn DDD. I'm working on project that contains surveys. Here's my domain model:
public class Survey
{
public int? SurveyID { get; set;...
Stott asked 20/3, 2013 at 18:28
2
Solved
Cannot get my brain around how to implement knockout for the following ASP.NET MVC 4 nested view model :
public class MyProfile
{
public string Name { get; set; }
public IList<VM1> List1 ...
Impediment asked 4/3, 2013 at 23:47
1
Solved
Having these ASP.NET MVC view models:
public class User
{
public string Name { get; set; }
public LabeledEmail LabeledEmail { get; set; }
}
public class LabeledEmail
{
public IList<Contac...
Overcloud asked 7/3, 2013 at 14:39
1
Solved
With the following ASP.NET models
public class User
{
public string Name { get; set; }
public LEmail LEmail { get; set; }
}
public class LEmail
{
public IList<CLabel> Labels;
public I...
Harbaugh asked 6/3, 2013 at 22:55
1
I am looking for a way in my view models to shorten property names in the querystring for a search form. For example, the verbose property name could be query but you see q in the querystring.
Cur...
Shipp asked 22/2, 2013 at 19:17
4
Solved
I am wondering is it good practice to try to make a view that takes in a generic view model?
I am wondering this because someone mentioned that he was anticipating to have to do lots of duplicate ...
Demp asked 17/6, 2011 at 16:41
4
Solved
In my ASP.NET MVC app, I have an interface which acts as the template for several different view models:
public interface IMyViewModel
{
Client Client1 { get; set; }
Client Client2 { get; set; }...
Imponderable asked 25/8, 2010 at 9:53
1
Solved
I have a nested view model structure:
public class PersonViewModel
{
public int Height { get; set; }
public List<LegViewModel> Legs {get;set;}
}
public class LegViewModel
{
public int Le...
Potentate asked 29/1, 2013 at 20:15
1
Solved
I have multiple instances of a viewmodel:
<views:MyView x:Name="view1" mefed:ViewModelLocator.NonSharedViewModel="MyViewModel" />
<views:MyView x:Name="view2" mefed:ViewModelLocator.NonSh...
2
Solved
My WPF application follows the MVVM pattern. There are three views:
MainWindow
LoginView
ProjectsView
LoginView and ProjectsView are user controls imported by the MainWindow. Both views have ...
Adolfoadolph asked 16/1, 2013 at 11:13
2
Solved
I’m taking the first steps into the MvvmCross framework and I’m trying to decide the best approach in terms of project and classes structure.
My biggest concern now is to decide how should I organ...
Claud asked 14/1, 2013 at 0:20
3
Solved
I am creating view models for each screen in my ASP.NET MVC application. I put all of the logic for creating a view model in a builder class. Usually, there is special logic for converting the data...
Counterstatement asked 16/1, 2012 at 16:34
2
Solved
In my WPF (4.0) application I'm using Viewmodel-first pattern. Hence, my viewmodels are created first, then the views - using data templates. A working demo can be found here.
Now, from within the...
2
Solved
Apologies if this has been asked before; there are a million ways to phrase it so searching for an answer has proved difficult.
I have a viewmodel with the following properties:
public class Assi...
Euphrates asked 26/7, 2012 at 20:50
1
Solved
I currently have a ViewModel setup as such:
public class OurViewModel
{
public OurViewModel() { }
[Required]
public int LeadID { get; set; }
[Required]
public int Rate { get; set; }
[Requi...
Amphipod asked 26/12, 2012 at 16:0
4
Solved
I'm getting totally lost and confused on how to use the new strongly typed Html.DropDownListFor helper on ASP.NET MVC 2.0 R2
In the View I'm writting:
<%= Html.DropDownListFor(m => m.Parent...
Izabel asked 21/2, 2010 at 16:36
2
Solved
I am using entity framework in my latest ASP.NET MVC 3 project. As it is DB first, the entity framework generates Database models. In my service (business) layer I Scaffold (MvcScaffolding) t...
Bullington asked 20/11, 2012 at 9:0
1
Solved
Little problem with my Android application and I don't know how to solve it with MVVM Cross.
Here is my Model
public class Article
{
string Label{ get; set; }
string Remark { get; set; }
}
...
Granjon asked 1/10, 2012 at 22:35
3
Solved
I have a question: Where is the best place to create the ViewModel in MVVM and how?
1) Create once in App.xaml.cs as static field and then use it through App?
2) Alway create new ViewModel ...
Dessertspoon asked 19/9, 2012 at 18:45
1
Solved
I have a view AttributeView that contains all sorts of attributes. There's also a button that when pressed, it should set the default values to the attributes. I also have a ViewModelBase class tha...
1
Solved
1
Solved
I have a ViewModel that contains two objects:
public class LookUpViewModel
{
public Searchable Searchable { get; set; }
public AddToSearchable AddToSearchable { get; set; }
}
The two containe...
Thrive asked 22/8, 2012 at 17:58
© 2022 - 2024 — McMap. All rights reserved.