Quantcast
Channel: Ribbon for WPF - Recent Posts
Viewing all articles
Browse latest Browse all 1458

Re: QAT buttons do not work properly after updating to version 2013.1.0583

$
0
0

Thanks it works. Here is the code in case anyone else needs to the do the similar thing:

 

    EventManager.RegisterClassHandler(typeof(MainWindow), CloneService.CloneCreatedEvent, new EventHandler<DependencyObjectItemRoutedEventArgs>(OnCloneCreatedEvent));
...
...


private static void OnCloneCreatedEvent(object sender, DependencyObjectItemRoutedEventArgs e)
{
    ((ActiproSoftware.Windows.Controls.Ribbon.Controls.Button)e.Item).DataContext = ((ActiproSoftware.Windows.Controls.Ribbon.Controls.Button)e.Source).DataContext;

}

Viewing all articles
Browse latest Browse all 1458