Xceed DataGrid for WPF v7.2 Documentation
StatsEditorControl Class
Members  Example 


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace : StatsEditorControl Class
Represents a control that allows you to view, add, edit and remove the statistics displayed in a StatRow.
Syntax
'Declaration
 
<TemplatePartAttribute(Name="PART_CurrentStats", Type=System.Windows.Controls.Primitives.Selector)>
<StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
<XmlLangPropertyAttribute("Language")>
<UsableDuringInitializationAttribute(True)>
<RuntimeNamePropertyAttribute("Name")>
<UidPropertyAttribute("Uid")>
<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
Public NotInheritable Class StatsEditorControl 
   Inherits StatsEditorControlBase
'Usage
 
Dim instance As StatsEditorControl
[TemplatePart(Name="PART_CurrentStats", Type=System.Windows.Controls.Primitives.Selector)]
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public sealed class StatsEditorControl : StatsEditorControlBase 
Remarks

When autogenerating cells via the StatRow.AutoCreateCells property, the resulting cells will not be displayed in the StatsEditorControl. It is recommanded to not use both together, as they each serve a completely different purpose.

The StatsEditorControl is disabled by default. To activate it, simply set the AllowStatsEditor to true on your view (only available in table views).

Example
The following example demonstrates how to activate the StatsEditorControl.
<xcdg:DataGridControl>
   <xcdg:DataGridControl.View>
      <xcdg:TableflowView AllowStatsEditor="True" />
   </xcdg:DataGridControl.View>
</xcdg:DataGridControl>
Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     Xceed.Wpf.DataGrid.StatsEditorControlBase
                        Xceed.Wpf.DataGrid.StatsEditorControl

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StatsEditorControl Members
Xceed.Wpf.DataGrid Namespace