Edited Radwindow Template help with RelayCommand

2 posts, 0 answers
  1. DragonBall
    DragonBall avatar
    53 posts
    Member since:
    Jul 2008

    Posted 13 May 2010 Link to this post

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



  2. Pana
    Admin
    Pana avatar
    748 posts

    Posted 18 May 2010 Link to this post

    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.
  3. DevCraft banner
Back to Top