public ICommand ClosePaneCommand
{
get
{
return new RelayCommand(ClosePaneExecute);
}
}
0
Nasko
Telerik team
answered on 25 Mar 2015, 02:17 PM
Hello Ram,
When RadPane is closed (by clicking the close button for example) actually its IsHidden property is set to "True", in order to made it visible again when needed. So, you could close a pane pragmatically in code behind by just setting the IsHidden property to "True". However, if you'd like to close it permanently you could use the RemoveFromParent method. For your concrete scenario with the Button you need to pass the Pane you need to close as a CommandParameter.