Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Expander > RadExpander.IsExpanded Binding

Not answered RadExpander.IsExpanded Binding

Feed from this thread
  • Martin Søberg avatar

    Posted on Feb 11, 2010 (permalink)


    I've just switched to telerik and are replacing my elements.

    My problem is that the normal expander works and the telerik doesnt..  I've placed them next to each other in the code, to validate this.

     

    <Expander IsExpanded="{Binding Path=IsExpanded}"></Expander> 
     
    <Telerik:RadExpander IsExpanded="{Binding Path=IsExpanded}" ></Telerik:RadExpander> 
     

    Bound to

    private bool _isExpanded = true;  
    public bool IsExpanded  
    {  
       get { return _isExpanded; }  
       set 
       {  
           _isExpanded = value;  
           //Some code  
       }  

    Is this the wrong way to do it?

    - Martin

    Reply

  • Martin Søberg avatar

    Posted on Feb 11, 2010 (permalink)



    Answer:

    <Expander IsExpanded="{Binding Path=IsExpanded}"  Margin="0" Padding="0"></Expander> 
    <Telerik:RadExpander IsExpanded="{Binding Path=IsExpanded, Mode=TwoWay}" ></Telerik:RadExpander> 

    a bit odd.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Expander > RadExpander.IsExpanded Binding
Related resources for "RadExpander.IsExpanded Binding"

WPF Expander Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]