About 201,000 results
Open links in new tab
  1. Can you implement Model-View-ViewModel using Powershell and

    Sep 8, 2010 · # Create a ViewModel from your data (I'm hardcoding the data): $data = new-object psobject -property @{ Name = "John Brown" Age = 15 HairColor = "Black" } # Create a View bound to that data ... boots { stackpanel -Margin 5 { textbox -text { binding -path "Name" $data } textbox -text { binding -path "Age" $data } textbox -text { binding -path ...

  2. Model-View-ViewModel - .NET | Microsoft Learn

    Sep 10, 2024 · The view model implements properties and commands to which the view can data bind to, and notifies the view of any state changes through change notification events. The properties and commands that the view model provides define the functionality to be offered by the UI, but the view determines how that functionality is to be displayed.

  3. How to show a View from a ViewModel and also set the data context

    Easy enough, we instantiate the view and either pass it the view model (assuming the view sets its data context in its constructor) or set it manually. The view could also have declared the view model in XAML if we so desired.

  4. What is the preferred way to connect viewmodels to their views?

    Jan 19, 2014 · There are two different approaches, and not one "right way". The approach that a ViewModelLocator or similar helps with is a "View-First" approach to developing MVVM. By this, it means you start with your View in the designer, and then build the ViewModel to match.

  5. Windows data binding and MVVM - Windows apps | Microsoft Learn

    Jun 29, 2023 · Model-View-ViewModel (MVVM) is a UI architectural design pattern for decoupling UI and non-UI code. With MVVM, you define your UI declaratively in XAML and use data binding markup to link it to other layers containing data and commands.

  6. r/PowerShell on Reddit: WPF Datagrid File Progress ViewModel

    May 8, 2021 · So I created a DataGridTemplateColumn comprised of Hyperlink and TextBlock tags, and I found this solution to be much more straightforward to handle in PowerShell than creating a hyperlink event binding during the ObservableCollection CollectionChanged event or …

  7. Introducing the brand-new MvvmGen Library - Thomas …

    May 12, 2021 · In the nights of the past weeks, I built a brand-new MVVM library that you can use in your XAML-based .NET applications. The library is called MvvmGen. It uses Roslyn-powered C# Source Generators to create all the ViewModel-specific boilerplate for you, and it is built with .NET Standard 2.

  8. MVVM – Model-View-ViewModel - Meziantou's blog

    Feb 18, 2011 · The Model View ViewModel (MVVM) is an architectural model from Microsoft used in WPF applications. Mostly based on the Model-View-Controller (MVC) model, MVVM is for Windows Presentation Foundation (WPF) and Silverlight in which there is a user experience (UX) that has requirements different from the more "traditional" development.

  9. Model View View-Model (MVVM) in Silverlight - Mark Heath

    I watched an excellent screencast by Jason Dolinger recently, showing how to implement the Model View View-Model pattern in WPF. A lot of the documentation on the MVVM pattern seems unnecessarily complicated, but Jason's demonstration explains it very clearly.

  10. PowerShell Gallery | classes/ViewModel.Class.ps1 1.22

    # Get the data context of the sender. This is the root element of the property path. # Fetch the path worker of our path. # Give the data context to the worker. # Get the resolved ScriptBlock …

  11. Some results have been removed
Refresh