Questions tagged as 'mvvm'

2
answers

Modify DataContext of a View from ViewModel WPF

Good afternoon, classmates. I would like to know how I can modify the DataContext of a view with its ViewModel, from another ViewModel or from the same ViewModel. public partial class Window2 : UserControl { public Window2() {...
asked by 05.09.2018 / 19:09
0
answers

Problem with InvalidOperationException

I am creating an application, this is being developed with WPF, the functionality of that app is to create a database in SQL Server through the code, since I made their respective properties in the Model and ModelView it is also worth mentioning...
asked by 03.09.2018 / 02:18
1
answer

The best way to bin the ownership of a ViewModel in post

Good morning, The idea is the following: I have a project in ASP.NET 4.6.2 following the MVVM pattern, I have my ViewModel class that represents the page and one of the properties of that ViewModel is an object that has another object as its...
asked by 01.12.2017 / 04:15
0
answers

Update Class values that have Bindig to TextBox in WPF

How about, I found a problem, I have textbox that have binding , but I realized that the value in the class is not updated until I click on the textbox , I mean that I shows the desired value but if I do not click on the te...
asked by 04.08.2017 / 20:52
1
answer

Passing data from a DataGridView to Other in WPF

How about, I'm with an application and I want to pass the data from one DataGridView to another when I press a button and I also want to add a character of "+" or "-" when I press a button, I'm using the MVVM model in the project. I appreciat...
asked by 27.07.2017 / 19:58
0
answers

Update ComboBox when changing the values of another ComboBox

such, I have a problem when I want to change the values of a combobox when other combos are changed and a button is clicked, and check and the sp that the information brings me is running well, but it is not it is reflected in the combo. I hope...
asked by 05.07.2017 / 01:52
2
answers

Close parent window from PopUp in WPF

How about, in my application I have a Cancel button, when you click on it, a Pop Up window appears that asks if you want to cancel or not, when you click on it, you must close the Pop Up window and the window in the one that was and send me to t...
asked by 12.07.2017 / 17:34
2
answers

How to take the index, of the rows visible in a WPF DataGrid?

I'm working with WPF, and I can not find a way to take the index of the visible rows of a datagrid. I'm working with MVVM ... thank you very much to anyone who can give me a hand!     
asked by 02.02.2017 / 21:48