I edited The Template of the Radwindow and built my own Button instead of the RadButton in the header template and put some command on it, the problem is its not firing The relayCommand
my vIew model
<Border x:Name="PART_HeaderButtonsBorder" Grid.Column="1"> |
<StackPanel x:Name="HeaderButtons" Grid.Column="1" Margin="0 0 3 0" Orientation="Horizontal"> |
<Button Content="New1" Command="{Binding NewCommand}"/> |
</StackPanel> |
</Border> |
my vIew model
namespace Project.My.Tasks.ViewModels |
{ |
[Export] |
public class WindoTabViewModel : ViewModelBase |
{ |
public WindoTabViewModel() |
{ |
} |
private RelayCommand _newCommand; |
public RelayCommand NewCommand |
{ |
get { return _newCommand ?? (_newCommand = new RelayCommand(OnTab)); } |
} |
public void OnTab() |
{ |
} |
} |
} |