This is a migrated thread and some comments may be shown as answers.

Edited Radwindow Template help with RelayCommand

1 Answer 69 Views
Window
This is a migrated thread and some comments may be shown as answers.
DragonBall
Top achievements
Rank 1
DragonBall asked on 14 May 2010, 04:21 AM
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

 <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() 
        { 
 
        } 
    } 
 



1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 18 May 2010, 12:45 PM
Hi DragonBall,

Does the Visual State of the buttons in the header change on MouseOver? We have that property IsHeaderHitTestVisible or something like that which is by default false and does not allow stuff in the header to get mouse events. It doesn't work in the last release but we have already fixed it and will be released in one of our internal builds.

If the buttons does not react on mouse over then I will be able to provide you workaround for the issue which will allow you to enable the buttons by setting IsHeaderHitTestVisible to True. In that case I will need to know which Silverlight version are you using (3 or 4) and which Telerik theme.

Regards,
Panayot
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
DragonBall
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or