Extending JustCode functions

2 posts, 0 answers
  1. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 18 May 2015 Link to this post


    I don't know if JustCode permits to define some custom login to perform on method/properties... since I've started using Catel Framework I was wonderin if It's possible to have when I've an auto property defined as


    public bool IsActive { get; set; }

    to be refactored as


    public string IsActive
                get { return GetValue<string>(IsActiveProperty); }
                set { SetValue(IsActiveProperty, value); }
            public static readonly PropertyData NameProperty = RegisterProperty("IsActive", typeof(bool));

    with the justcode suggestion Fix-> Convert the property with backing fields (adding a menu voice)

     Is this possible? (I mean not just this code but something defined custom)



  2. Svetlozar
    Svetlozar avatar
    260 posts

    Posted 21 May 2015 Link to this post


    Thank you for the great question!

    Currently you can not apply custom template to an existing refactoring, but it is an interesting idea that we might implement eventually.

    What you can do is to implement your own extension that adds your refactoring to JustCode. You can start with our github examples and take a look at CallOnPropertyChangedFromSetterCommand

    Let us know if you have questions, we will be glad to help.

    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. DevCraft R3 2016 release webinar banner
Back to Top