示例#1
0
        private void PlataformasGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = ItemsControl.ContainerFromElement((DataGrid)sender,
                                                                e.OriginalSource as DependencyObject) as DataGridRow;

            if (row == null)
            {
                return;
            }
            Plataforma rowPage = new Plataforma((String)(((DataRowView)row.Item).Row["Nome"]));

            this.NavigationService.Navigate(rowPage);
        }
示例#2
0
        private void InsertPlataforma_Click(object sender, RoutedEventArgs e)
        {
            Plataforma rowPage = new Plataforma("null");

            this.NavigationService.Navigate(rowPage);
        }