This example demonstrates use cases of the DXBinding, DXCommand, and DXEvent markup extensions.
-
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)'}"
- BasicExpressionsView.xaml (VB: BasicExpressionsView.xaml)
- RelativeSourcesView.xaml (VB: RelativeSourcesView.xaml)
- StaticPropertiesView.xaml (VB: StaticPropertiesView.xaml)
- BindingToMethodView.xaml (VB: BindingToMethodView.xaml)
- TwoWayView.xaml (VB: TwoWayView.xaml)
- CommandView.xaml (VB: CommandView.xaml)
- EventView.xaml (VB: EventView.xaml)
(you will be redirected to DevExpress.com to submit your response)