Interaction logic for SignWordPage.xaml
상속: 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);
            }
        }
예제 #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);
            }
        }