Interaction logic for SignWordPage.xaml
Inheritance: System.Windows.Controls.UserControl
        private void btnSignWord_Click(object sender, RoutedEventArgs e)
        {
            KinectTileButton button = (KinectTileButton)sender;

            if (signWordPage == null) {
                signWordPage = new SignWordPage((SystemStatusCollection)this.DataContext);
            }
            ((SystemStatusCollection)this.DataContext).CurrentSignWord = ((SignWord)button.DataContext);

            UIElementCollection children = ((Panel)this.Parent).Children;
            if (!children.Contains(signWordPage)) {
                children.Add(signWordPage);
            }
        }
Exemplo n.º 2
0
        private void btnSignWord_Click(object sender, RoutedEventArgs e)
        {
            KinectTileButton button = (KinectTileButton)sender;

            if (signWordPage == null)
            {
                signWordPage = new SignWordPage((SystemStatusCollection)this.DataContext);
            }
            ((SystemStatusCollection)this.DataContext).CurrentSignWord = ((SignWord)button.DataContext);

            UIElementCollection children = ((Panel)this.Parent).Children;

            if (!children.Contains(signWordPage))
            {
                children.Add(signWordPage);
            }
        }