File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Microsoft.Toolkit.Uwp.SampleApp/SamplePages
Microsoft.Toolkit.Uwp.UI/Behaviors Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 88
99 <interactivity:Interaction.Behaviors>
1010 <behaviors:FocusBehavior>
11- <behaviors:FocusTarget Control="{Binding ElementName= disabledItem}" />
12- <behaviors:FocusTarget Control="{Binding ElementName= emptyList}" />
13- <behaviors:FocusTarget Control="{Binding ElementName= enabledItem}" />
11+ <behaviors:FocusTarget Control="{x:Bind disabledItem}" />
12+ <behaviors:FocusTarget Control="{x:Bind emptyList}" />
13+ <behaviors:FocusTarget Control="{x:Bind enabledItem}" />
1414 </behaviors:FocusBehavior>
1515 </interactivity:Interaction.Behaviors>
1616
Original file line number Diff line number Diff line change 897897 "Subcategory" : " Systems" ,
898898 "About" : " Behavior to automatically set the focus on the first control which accepts it" ,
899899 "CodeUrl" : " https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI/Behaviors/" ,
900- "XamlCodeFile " : " FocusBehaviorXaml.bind" ,
900+ "CodeFile " : " FocusBehaviorXaml.bind" ,
901901 "Icon" : " /Assets/Helpers.png" ,
902902 "DocumentationUrl" : " https://raw.githubusercontent.com/MicrosoftDocs/WindowsCommunityToolkitDocs/master/docs/behaviors/FocusBehavior.md"
903903 },
Original file line number Diff line number Diff line change @@ -112,8 +112,6 @@ private void ApplyFocus()
112112 }
113113 }
114114
115- private void OnControlPropertyChanged ( DependencyObject sender , DependencyProperty dp ) => ApplyFocus ( ) ;
116-
117115 private void OnEngagementTimerTick ( object sender , object e )
118116 {
119117 ApplyFocus ( ) ;
You can’t perform that action at this time.
0 commit comments