This example shows how to customize the standard smart tag of a report control. You need to override the diagram item's SmartTagTemplate
property for this task.
It also shows how to create a smart tag for a custom control. For this, set the SmartTagTemplate
property and override the custom diagram item's GetSmartTagViewModel
method.
- BindingModeToPropertyTemplateConverter.cs (VB: BindingModeToPropertyTemplateConverter.vb)
- MainWindow.xaml (VB: MainWindow.xaml)
- MainWindow.xaml.cs (VB: MainWindow.xaml.vb)
- XRProgressBar.cs (VB: XRProgressBarDiagramItem.vb)
- XRProgressBarDiagramItem.cs (VB: XRProgressBarDiagramItem.vb)
- XRProgressBarSmartTagViewModel.cs (VB: XRProgressBarSmartTagViewModel.vb)
- XtraReport1.cs (VB: XtraReport1.vb)