Hello,
This is my first time writing you here...and i think that your help is outstanding.
I have simple question, its maybe something basic that i don't understand..
If i put in docking area simple rad pane, with command binding for open...Open button will always be disabled.
/////////////////////////////////////////////////////////////
<telerik:RadPane Header="Pane 1">
<telerik:RadPane.CommandBindings>
<CommandBinding Command="Open" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
</telerik:RadPane.CommandBindings>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<telerik:RadToolBar MaxHeight="40" Grid.Row="0">
<Button Command="telerik:RadDockingCommands.Close" Content="Close" MaxHeight="20" MaxWidth="40"/>
<Button Command="Open" Content="Open" MaxHeight="20" MaxWidth="40"/>
</telerik:RadToolBar>
</Grid>
</telerik:RadPane>
private void CommandBinding_Executed(object sender, ExecutedRoutedEventArgs e)
{
e.Handled = true;
}
private void CommandBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e)
{
e.CanExecute = true;
e.Handled = true;
}
////////////////////////////////////////
Thank you in advance
This is my first time writing you here...and i think that your help is outstanding.
I have simple question, its maybe something basic that i don't understand..
If i put in docking area simple rad pane, with command binding for open...Open button will always be disabled.
/////////////////////////////////////////////////////////////
<telerik:RadPane Header="Pane 1">
<telerik:RadPane.CommandBindings>
<CommandBinding Command="Open" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
</telerik:RadPane.CommandBindings>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<telerik:RadToolBar MaxHeight="40" Grid.Row="0">
<Button Command="telerik:RadDockingCommands.Close" Content="Close" MaxHeight="20" MaxWidth="40"/>
<Button Command="Open" Content="Open" MaxHeight="20" MaxWidth="40"/>
</telerik:RadToolBar>
</Grid>
</telerik:RadPane>
private void CommandBinding_Executed(object sender, ExecutedRoutedEventArgs e)
{
e.Handled = true;
}
private void CommandBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e)
{
e.CanExecute = true;
e.Handled = true;
}
////////////////////////////////////////
Thank you in advance