This question is locked. New answers and comments are not allowed.
Hi,
i want to register my own EnumEditor, but somehow my ControlTemplate does not get applied to my Editor. That is my code:
Properties.RegisterPropertyEditor(typeof(Enum), typeof(MyEnumEditor));<Style TargetType="local:MyEnumEditor"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TextBlock HorizontalAlignment="Left" Foreground="Black" FontSize="16" Text="{Binding PropertyName, Mode=TwoWay}" Margin="0,0,0,2" /> <ComboBox Grid.Row="1" ItemsSource="{Binding PropertyValue, Mode=TwoWay}" /> </Grid> </ControlTemplate> </Setter.Value> </Setter></Style>and finally my EditorClass:
using Telerik.UI.Xaml.Controls.Data;namespace BizPerf.Dashboard{ public class MyEnumEditor:TypeEditor { public MyEnumEditor() { this.DefaultStyleKey = (object) typeof(MyEnumEditor); } }}Can you please tell me how I will get this fixed? Every other editor of mine works..
Thank you!