or
| System.NullReferenceException |
| bei Telerik.Windows.Controls.GridView.GridViewDataControl.Move(FocusNavigationDirection navigationDirection) |
| bei Telerik.Windows.Controls.GridView.GridViewDataControl.ExecuteMoveCommands(FocusNavigationDirection direction) |
| bei Telerik.Windows.Controls.GridView.GridViewDataControl.MoveNext() |
| bei Telerik.Windows.Controls.GridView.GridViewDataControl.OnMoveNextCommand(Object sender, ExecutedRoutedEventArgs e) |
| bei System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e) |
Property ProductosTotal As New CollectionViewSourceProperty ProductosPedido As New ObservableCollection(Of Productos)'Called when initializing viewPrivate Sub LoadProductosTotal() Dim prods = operacionesProductos.GetAllProductos() If prods IsNot Nothing Then ProductosTotal = New CollectionViewSource ProductosTotal.Source = prods End If End Sub<!--Style--><Style x:Key="DraggableListBoxItem" TargetType="telerik:RadListBoxItem"> <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" /> </Style><!--SOURCE RADLISTBOX--><telerik:RadListBox Grid.Column="0" ItemContainerStyle="{StaticResource DraggableListBoxItem}" ItemsSource="{Binding ProductosTotal.View}" ItemTemplate="{StaticResource ListBoxItemTemplate}"> <telerik:RadListBox.GroupStyle > <GroupStyle> <GroupStyle.HeaderTemplate> <DataTemplate> <StackPanel Height="Auto" Background="{telerik:Windows8Resource ResourceKey=AccentBrush}" Margin="0 5 0 5"> <TextBlock Text="{Binding Name}" FontFamily="Segoe UI Light" FontWeight="Bold" FontSize="16" Margin="10 3 0 0" Foreground="{telerik:Windows8Resource ResourceKey=MainBrush}"/> </StackPanel> </DataTemplate> </GroupStyle.HeaderTemplate> </GroupStyle> </telerik:RadListBox.GroupStyle> <telerik:RadListBox.DragDropBehavior> <Behaviors:ListBoxDragDropBehaviorCopy /> </telerik:RadListBox.DragDropBehavior> <telerik:RadListBox.DragVisualProvider> <telerik:ScreenshotDragVisualProvider /> </telerik:RadListBox.DragVisualProvider> </telerik:RadListBox><!--DESTINATION RADLISTBOX--> <telerik:RadListBox Grid.Row="1" ItemsSource="{Binding ProductosPedido}" AllowDrop="True" ItemTemplate="{StaticResource ListBoxItemTemplate}"> <telerik:RadListBox.DragDropBehavior > <telerik:ListBoxDragDropBehavior /> </telerik:RadListBox.DragDropBehavior> </telerik:RadListBox>ListBoxDragDropBehavior to supress the remove operation because it threw an exception.[TestMethod]public void TestMethod(){ // find app window var cond = new PropertyCondition(AutomationElement.NameProperty, "MainWindow"); AutomationElement foundWindow = AutomationElement.RootElement.FindFirst(TreeScope.Children, cond); // find tab control cond = new PropertyCondition(AutomationElement.ControlTypeProperty, System.Windows.Automation.ControlType.Tab); AutomationElement foundTab = foundWindow.FindFirst(TreeScope.Subtree, cond); var tabCtl = (WpfTabList)UITestControlFactory.FromNativeElement(foundTab, "UIA"); foreach (var tab in tabCtl.Tabs) { var elements = ""; Mouse.Click(tab); // do something to controls, // for example collect their names foreach (var el in Walk(tab.NativeElement as AutomationElement)) { elements += string.Format("Name: '{0}', Type: '{1}'\n", el.Current.Name, el.Current.ControlType.ProgrammaticName); } MessageBox.Show(elements); }}// Recursively walk an automation treeprivate List<AutomationElement> Walk(AutomationElement current){ var res = new List<AutomationElement>(); if (current != null) { res.Add(current); res.AddRange(Walk(TreeWalker.RawViewWalker.GetFirstChild(current))); res.AddRange(Walk(TreeWalker.RawViewWalker.GetNextSibling(current))); } return res;}<tel:MapLine StrokeThickness="5" Stroke="Red" Point1="{Binding MyViewModel.Point1}" Point2="{Binding MyViewModel.Point2}" ToolTip="{Binding MyViewModel.ItemName}" /><tel:MapLine StrokeThickness="5" Point1="{Binding MyViewModel.Point1}" Point2="{Binding MyViewModel.Point2}"> <tel:MapLine.Stroke> <SolidColorBrush Color="Red" /> </tel:MapLine.Stroke> <tel:MapLine.ToolTip> <TextBlock Text="{Binding MyViewModel.ItemName}" /> </tel:MapLine.ToolTip></tel:MapLine><tel:MapRectangle Location="{Binding Location}" />