Questions tagged as 'mvvm'

1
answer

Binding the Value of a ComboBox

My problem is that I am trying to bind between a ComboBox and a property type string in viewModel, but I can not do it <ComboBox HorizontalAlignment="Stretch" SelectedItem="{Binding Path=OResultado, Mode=TwoWay}">...
asked by 14.01.2016 / 01:39
2
answers

Problem with navigation using MVVM in Xamarin

I want to navigate using the MVVM pattern in Xamarin.Forms, for that I offer a command to a certain image as seen in the image ... the code of this view is linked to the MainViewModel and to a property called MenuSisquim located inside...
asked by 25.09.2018 / 02:48
2
answers

WPF reuse view from different modules

What is the best way to reuse an vista.xaml, which belongs to another class library (another module) in WPF using MVVM?     
asked by 13.04.2016 / 18:01
2
answers

What is the correct way to initialize a property in MVVM

I have a question, is it correct to initialize a property full in ViewModel as follows? public class MainViewModel : ViewModelBase { private ObservableCollection<Driver> _drivers = new ObservableCollection<Driver>...
asked by 03.02.2016 / 21:06
1
answer

How to make a grid select the first record if it depends on another grid

I have a model, of the form: public class A { public ObservableCollection B col1; } Public Class B { public int BA; public int BB; public ObservableCollection C; } public Class C { public int CA; public int CB; } The fir...
asked by 11.10.2017 / 17:56
2
answers

Capture the Checked of a CheckBox inside a Datagrid from the ViewModel

I have a requirement in WPF , I made a ViewModel called AsignaFacturasVM for my View, in which I have a Label that is linked to a property float called Accumulated Amount of my ViewModel and I also have a...
asked by 10.07.2018 / 23:31
1
answer

Right way to interact between ViewModels MVVM

I am building a WPF application with the MVVM design pattern. I am using DataTemplates to load user controls within a ContentControl: <DataTemplate DataType="{x:Type menu:MenuViewModel}"> <menu:MenuView/> </DataTemplate>...
asked by 08.02.2016 / 20:59
1
answer

Problem installing nuget package

I'm working with MVVMCross and Xamarin.Android. And it seems that for some function (to do a binding of Mvx.MvxImageView) I need to install the package MvvmCross.Plugin.DownloadCache. When trying to install it, it returns the following error:...
asked by 13.04.2018 / 17:24
1
answer

Show data Binding WPF C #

Good day, I have had problems to show the data in a grid using wpf the code does not throw me error and reviewing the step by step I see that the methods take the values registered in the DB but do not take them to the grid. I share code: 1....
asked by 05.09.2018 / 16:42
4
answers

How can I "bin" an ObservableCollection to several views and keep it synchronized between them? WPF

I need to bind a ObservableCollection to several views and that this list stays synchronized among all the views, in case of modifying the list (adding, removing or updating a value in said list) the change is replicated for all the views...
asked by 17.11.2016 / 16:27