File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 617
617
TextElement.FontSize=" 13"
618
618
TextOptions.TextFormattingMode=" Ideal"
619
619
TextOptions.TextRenderingMode=" Auto"
620
- FocusManager.IsFocusScope=" True "
620
+ FocusManager.IsFocusScope=" False "
621
621
Foreground =" {DynamicResource MaterialDesignBody}"
622
622
FontFamily =" {StaticResource MaterialDesignFont}"
623
- Focusable =" False "
623
+ Focusable =" True "
624
624
IsTabStop =" False"
625
625
Opacity =" 0"
626
626
RenderTransformOrigin =" .5,.5"
Original file line number Diff line number Diff line change @@ -68,6 +68,15 @@ public override object ProvideValue(IServiceProvider serviceProvider)
68
68
multiplier = itemsControl . Items . IndexOf ( element ) ;
69
69
}
70
70
71
+ if ( multiplier == - 1 ) //still not found, repeat now using datacontext
72
+ {
73
+ var frameworkElement = element as FrameworkElement ;
74
+ if ( frameworkElement != null )
75
+ {
76
+ multiplier = itemsControl . Items . IndexOf ( frameworkElement . DataContext ) ;
77
+ }
78
+ }
79
+
71
80
return multiplier > - 1 ? new TimeSpan ( Unit . Ticks * multiplier ) : TimeSpan . Zero ;
72
81
}
73
82
}
You can’t perform that action at this time.
0 commit comments