<Page
…
xmlns:ig="http://schemas.infragistics.com/xaml"
…>
<Page.Resources>
<ResourceDictionary>
<DataTemplate x:Key="SpinIntEditor">
<igEditors:XamNumericEditor Value="{Binding Path=Value}" ValueType="{x:Type sys:Int32}"
SpinButtonDisplayMode="Always" Theme="IGTheme" />
</DataTemplate>
<DataTemplate x:Key="SliderIntEditor">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" MinWidth="20" Margin="2"
Text="{Binding Path=Value, Converter={StaticResource IntDoubleConv}, Mode=OneWay}" />
<Slider Grid.Column="1" Minimum="0" Maximum="5" TickFrequency="1" IsSnapToTickEnabled="True"
Value="{Binding Path=Value, Converter={StaticResource IntDoubleConv}}" />
</Grid>
</DataTemplate>
<local:CustomDataTemplateSelector x:Key="CustomSelector" />
</ResourceDictionary>
</Page.Resources>
<Grid>
<ig:XamPropertyGrid>
<ig:XamPropertyGrid.EditorDefinitions>
<ig:PropertyGridEditorDefinition
TargetType="{x:Type sys:Int32}"
EditTemplate="{StaticResource SpinIntEditor}"
TemplateSelector="{StaticResource CustomSelector}">
</ig:PropertyGridEditorDefinition>
</ig:XamPropertyGrid.EditorDefinitions>
</ig:XamPropertyGrid>
</Grid>
</Page>