My own Enum Editor

Thread is closed for posting
3 posts, 0 answers
  1. Ulrich Reinhardt
    Ulrich Reinhardt avatar
    5 posts
    Member since:
    Apr 2010

    Posted 01 Sep 2015 Link to this post


    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">
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        <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}" />

    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!

  2. Tsvyatko
    Tsvyatko avatar
    863 posts

    Posted 04 Sep 2015 Link to this post

    Hi Ulrich,

    Thank for contacting us! I can confirm that this is an issue of the control. We have logged it in our system and it will be resolved for the next official release due end of the month.

    Please, excuse us for the inconvenience caused!

    P.S. I have updated your telerik points!

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. spaze
    spaze avatar
    1 posts
    Member since:
    Dec 2016

    Posted 20 Dec 2016 Link to this post

    superb post admin, keep up the good work
Back to Top