viewmodel Questions
2
Solved
My program is composed of a TreeView and two contentPresenters at ground level. The mainWindow, TreeView, and each contentPresenter all have their own viewModels.
I would like to call a function i...
3
We currently use DTO for Web API request and response
and use ViewModel to pass data to the View in MVC
Currently, we have:
DTO as a separate project
ViewModel is inside the UI project ...
Latimer asked 29/5, 2018 at 5:30
1
I have written this simple example to test paging library and observe changes to PagedList using LiveData but it notifies the observer only once, when the LiveData<PagedList<Integer>> o...
Davie asked 25/4, 2018 at 10:17
2
Solved
Scenario
I have a quizz generator, which generates a sequence of quizzes of different classes. The sequence is of unlimited length.
There is a view model for the quizz generator. There is a view ...
Twittery asked 18/4, 2018 at 8:16
1
I'm studying google's architecture components to implement ViewModel and LiveData to my app, and the official documentation says that:
Note: Since the ViewModel outlives specific activity and fr...
Marymarya asked 19/9, 2017 at 12:24
2
Solved
I'm using ViewModel from Android Architecture Components in my app. In the ViewModel, I'm using RxJava2 subscription and I keep Disposable object after I subscribe. Before, when I did this in Activ...
Anastomose asked 1/4, 2018 at 19:14
2
Solved
I am struggling to create a DateTime object from (year, month, day) which is being returned from the database. I am rather new to AutoMapper so a nudge in the right direction would be great.
Here ...
Whoosh asked 27/4, 2015 at 11:42
1
Solved
Guess I'm missing something obvious here but... I'm storing data in uiModel in the DiaryViewModel class, and since I use architecture components I'm expecting the data to be retained through screen...
Cog asked 8/1, 2018 at 13:1
1
Solved
i'm studying the Android Architecture Components and i'm a little bit confused. In the sample they use a repository and state that changes within the datasource of the repository are observed by th...
Denouement asked 18/12, 2017 at 10:40
2
Solved
I'm a bit confused about how data binding should work when using the new Architecture Components.
let's say I have a simple Activity with a list, a ProgressBar and a TextView. the Activity should ...
Brittbritta asked 28/11, 2017 at 18:57
3
Solved
I am using jquery datepicker on my view model
Here is my view:
@Html.TextBoxFor(o => o.JobStartDate, new { id = "dt1", @class = "input-block-level" })
@Html.ValidationMessage("JobStartDate")
...
Belier asked 4/12, 2014 at 2:52
5
Solved
Looks like others have had this problem but I can't seem to find a solution.
I have 2 Models: Person & BillingInfo:
public class Person
{
public string Name { get; set;}
public BillingInfo ...
Kuhlmann asked 13/10, 2010 at 21:20
3
Solved
I have got two models, seen below, and am trying to insert one of each to the database from one view. I have created a view model in an attempt to do this.
public class Blog
{
public int BlogID {...
Hackberry asked 5/11, 2011 at 13:31
6
Solved
With a view model containing the field:
public bool? IsDefault { get; set; }
I get an error when trying to map in the view:
<%= Html.CheckBoxFor(model => model.IsDefault) %>
Cannot i...
Olivaolivaceous asked 14/6, 2010 at 8:52
5
Solved
I have the following code in my code behind:
public partial class MainWindow
{
private Track _movieSkipSliderTrack;
private Slider sMovieSkipSlider = null;
private Label lbTimeTooltip = null;
...
1
Solved
I have two select controls.
One is dependent on the other. For a simple example, let's assume the first displays a list of cities, while the other displays a list of streets in each city.
When th...
Duelist asked 30/10, 2017 at 14:57
3
Solved
I have my view models :
public class POReceiptViewModel
{
public virtual int PONumber { get; set; }
public virtual string VendorCode { get; set; }
public virtual IList<POReceiptItemViewMode...
Sirajuddaula asked 10/3, 2012 at 13:4
1
I have several Read-Only Properties in my View Model that are referenced by the View and some of them are dependent on one/more other Read-Only Properties (in the same View Model) which are ultimat...
Protractor asked 20/9, 2017 at 6:23
1
Solved
I'm experimenting with the Architecture Components from Google. Specifically I want to implement a ViewModelProvider.Factory to create a ViewModel that takes constructor parameters, like so:
class...
Antefix asked 4/8, 2017 at 20:6
2
Solved
We've using Caliburn.Micro on a new Silverlight project and everythings working great. The inbuilt conventions bind buttons click events to the viewModel, but I'm not sure what the best way to hand...
Allowedly asked 28/10, 2010 at 8:53
3
I'm trying to work on a simple application.
I have three SQL tables brought in through Entity Framework and had the models created automatically.
I want to be able to scaffold out the Create/Detail...
Bebel asked 23/4, 2015 at 16:9
1
Solved
I'm having trouble getting the ViewModel component to work with Proguard. I already had to add the following to prevent a crash due to NoSuchMethodException: init()
-keep class com....SlideshowVie...
6
Solved
I've been puzzled by this for a while. I am writing quite a large RibbonWindow WPF application using the MVVM pattern. The screen has a RibbonBar menu along the top and the rest of it displays the ...
Lucky asked 6/5, 2011 at 20:56
4
Solved
Given the following scenario:
ViewModelA launches ViewModelB (via a common Controller, of course, that uses Ioc and DI to resolve the types needed).
ViewModelB needs to set a property value in Vi...
Atombomb asked 26/1, 2011 at 16:31
5
Solved
I have a WPF application which follows the MVVM pattern. The application defines two views and view models so far:
LoginView(Model)
ProjectsView(Model)
Both view models need to access several p...
Presidium asked 16/1, 2013 at 15:18
© 2022 - 2024 — McMap. All rights reserved.