Skip to content

DevExpress-Examples/wpf-mvvm-framework-dxbinding-dxcommand-dxevent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF MVVM Framework - DXBinding, DXCommand, and DXEvent Extensions

This example demonstrates use cases of the DXBinding, DXCommand, and DXEvent markup extensions.

image

  • The DXBinding allows you to use expressions inside binding paths.

    Text="{DXBinding 'StringValue+DoubleValue.ToString()', Mode=OneWay}"
    
  • With the DXCommand, you can bind a command property and define methods to call right in xaml.

    Command="{DXCommand Execute='$MessageBox.Show(@e(message).Text, @e(title).Text)',
                        CanExecute='@e(isEnabled).IsChecked'}"
  • The DXEvent allows you to bind an event to methods.

    Click="{DXEvent '$MessageBox.Show($string.Format(@r(clickBindingStringFormat), @r(clickBinding)), Title)'}"

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example demonstrates use cases of the DXBinding, DXCommand, and DXEvent markup extensions.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •