Questions tagged as 'mvvm'

1
answer

ComboBox in WPF - How to populate using MVVM

I am having doubts on how popular a ComboBox in WPF using the MVVM standard. Here in Stackoverflow there is a similar question to mine, but it was not answered ( # ). I searched and saw that people mixed the Persistence layer a bit with View...
asked by 07.10.2015 / 05:13
1
answer

JavaFX: pros and cons of MVC, MVP, MVVM, etc.

What standard model-vision (MV) use with JavaFX thinking about scalability and good manutibility? On Google you find people recommending MVC, MVP , MVVM ... maybe there are others. Some say JavaFX is meant to be used with MVC . Others...
asked by 01.06.2018 / 19:06
1
answer

Where to connect to the database?

In the MVVM standard where should I connect to the database, in the View, Model, or ViewModel?     
asked by 20.05.2015 / 18:07
2
answers

Navigation with Xamarin Forms default MVVM

I recently started studying Xamarin Forms. I have a question that can be clarified here: how to navigate between pages using MVVM? Should your navigation be on vm or view ? Example <?xml version="1.0" encoding="utf-8" ?> <Cont...
asked by 21.02.2017 / 10:17
1
answer

Why is it not recommended to use the event in C # project with WPF and MVVM?

I'm very new to WPF I'm doing a project using MVVM and Entity Framework and it was suggested not having any Click tails event for a button in the code behind a window, for what reason? What is the alternative to replace the below event without b...
asked by 04.09.2017 / 23:15
3
answers

Is there any way to dynamically add attribute to instantiated object in C #?

Well, in C # we put attributes as follows: [Required("Este campo é obrigatório")] public string Nome {get; set;} What I would like to know is whether there is a way to dynamically add attributes to instantiated objects. Like the following h...
asked by 26.05.2018 / 17:04
1
answer

WPF using MVVM - Whose responsibility is it to open a new window?

In MVVM we have Views, ViewModels and Models. All the business logic of my application is in models, where I use viewModels to manage them, as well as binds and commands that are sent from Views. But now I have a problem, I need to open a new...
asked by 06.02.2017 / 17:18
1
answer

Upper Bar Adjust Burger Menu

I made an app with a Login screen to a MainView which is a MasterDetail and a Detail. It is working properly but the upper screen is bigger than normal, according to image; How do I set it to be the correct size? HomeHereistheXAMLcodeforMai...
asked by 07.11.2017 / 01:45
1
answer

I would like a brief explanation of how to fill a combobox in MVVM pattern

I would like a brief explanation of how to populate a combobox in MVVM pattern. The three parts, Model, View and ViewModel populated with the Database table. Model: class Racas : INotifyPropertyChanged { private int _cd_Raca; privat...
asked by 19.05.2015 / 05:17
1
answer

Structure of assemblies in a project using the MVVM pattern

I'm having difficulty organizing a project solution using the MVVM pattern. I do not use any MVVM framework. I currently have the following structure: Solution | --- AppView (Projeto principal onde estão as views e que é iniciado pe...
asked by 22.02.2014 / 15:49