locked
In sp1, Custom Type can't be edit in resource. RRS feed

  • Question

  • At first, define a custom type such as:
        public class MyButton : Button 
        { 
            public MyButton() 
            { 
            } 
     
            Test _test = new Test(); 
            [TypeConverter(typeof(ExpandableObjectConverter))] 
            public Test Test 
            { 
                get 
                { 
                    return _test; 
                } 
                set 
                { 
                    _test = value; 
                } 
            } 
     
             
        } 
        [TypeConverter(typeof(ExpandableObjectConverter))] 
        public class Test 
        { 
            int _number; 
            public int Number 
            { 
                get 
                { 
                    return _number; 
                } 
                set 
                { 
                    _number = value; 
                } 
            } 
        } 

    in sp1, after convert MyButton.Test to a new Resource. Then try to EditResource.
    But I found I can't edit the resource, but now the EditResourceDialog.EditorTemplate is showing Test.ToString()

    BTW:
    in 2.0 (not install sp1), it is OK!


    Could you tell me how I can go?

    THX!


    • Edited by Jackson Yin Wednesday, October 29, 2008 8:45 AM
    Wednesday, October 29, 2008 8:10 AM

Answers

All replies