'selectorArrow_Active' name cannot be found in the name scope of 'System.Windows.Controls.ControlTemplate'. at System.Windows.Media.Animation.Storyboard.ResolveTargetName(String targetName, INameScope nameScope, DependencyObject element) at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer) at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer) at System.Windows.Media.Animation.Storyboard.BeginCommon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer) at System.Windows.Media.Animation.BeginStoryboard.Begin(DependencyObject targetObject, INameScope nameScope, Int64 layer) at System.Windows.Media.Animation.BeginStoryboard.Invoke(FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer) at System.Windows.StyleHelper.InvokeEventTriggerActions(FrameworkElement fe, FrameworkContentElement fce, Style ownerStyle, FrameworkTemplate frameworkTemplate, Int32 childIndex, RoutedEvent Event) at System.Windows.StyleHelper.ExecuteEventTriggerActionsOnContainer(Object sender, RoutedEventArgs e) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) at Infragistics.Windows.DataPresenter.RecordSelector.OnActivated(RoutedEventArgs args) at Infragistics.Windows.DataPresenter.RecordSelector.RaiseActivated(RoutedEventArgs args) at Infragistics.Windows.DataPresenter.RecordSelector.OnLoaded(Object sender, RoutedEventArgs e) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) at MS.Internal.LoadedOrUnloadedOperation.DoWork() at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
I am getting above error on UI when I wrote below in my code ..
<Style TargetType="{x:Type igDP:RecordSelector}"> <Style.Triggers> <DataTrigger Binding="{Binding Path=DataItem.RequestStatus}" Value="Pending"> <DataTrigger.Setters> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:RecordSelector}"> <Image Source="/Taser.Shell;component/Resources/Pending.bmp"/> </ControlTemplate> </Setter.Value> </Setter> </DataTrigger.Setters> </DataTrigger> <DataTrigger Binding="{Binding Path=DataItem.RequestStatus}" Value="Approved"> <DataTrigger.Setters> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:RecordSelector}"> <Image Height="10" Width="10" Source="/Taser.Shell;component/Resources/Approved.bmp"/> </ControlTemplate> </Setter.Value> </Setter> </DataTrigger.Setters> </DataTrigger> <DataTrigger Binding="{Binding Path=DataItem.RequestStatus}" Value="Rejected"> <DataTrigger.Setters> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:RecordSelector}"> <Image Height="10" Width="10" Source="/Taser.Shell;component/Resources/Rejected.bmp"/> </ControlTemplate> </Setter.Value> </Setter> </DataTrigger.Setters> </DataTrigger> <DataTrigger Binding="{Binding Path=DataItem.RequestStatus}" Value="Cancelled"> <DataTrigger.Setters> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:RecordSelector}"> <Image Height="10" Width="10" Source="/Taser.Shell;component/Resources/Cencelled.bmp"/> </ControlTemplate> </Setter.Value> </Setter> </DataTrigger.Setters> </DataTrigger> </Style.Triggers> </Style>
NOTE :- This error occurs only once when I change the tab index in tabControl.
I dont know man . to note i am using 10.3 version of XamDataGrid.
But using t10.3 as well I am not able to reproduce the issue.
Note: I am not the only person in whole company who got this same error. their are many.
i would suggest you to please looking into the error please suggest me the which Event i can handle and control this error.
Thanks.
HI,
I tested the attached sample with 10.3.2337 and could not reproduce.
Can you look at my sample and modify it so that it replicates this issue,
or modify it so that it more closely mirrors your applications logic?
Sincerley, Matt Developer Support Engineer
It seems like there is an error on the generic control template of RecordSelector control when a trigger is fired. Is that any way for Infragistics to publish the default template of the RecordSelector so that we know how to write our own to replace it?
The default templates are installed in your installation directory.
On my machine the default styles are located in this directory: C:\Program Files (x86)\Infragistics\NetAdvantage 2012.2\WPF\DefaultStyles\DataPresenter
Sincerely,
Matt, Developer Support Engineer