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 8
8
9
9
<interactivity:Interaction.Behaviors>
10
10
<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}" />
14
14
</behaviors:FocusBehavior>
15
15
</interactivity:Interaction.Behaviors>
16
16
Original file line number Diff line number Diff line change 897
897
"Subcategory" : " Systems" ,
898
898
"About" : " Behavior to automatically set the focus on the first control which accepts it" ,
899
899
"CodeUrl" : " https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI/Behaviors/" ,
900
- "XamlCodeFile " : " FocusBehaviorXaml.bind" ,
900
+ "CodeFile " : " FocusBehaviorXaml.bind" ,
901
901
"Icon" : " /Assets/Helpers.png" ,
902
902
"DocumentationUrl" : " https://raw.githubusercontent.com/MicrosoftDocs/WindowsCommunityToolkitDocs/master/docs/behaviors/FocusBehavior.md"
903
903
},
Original file line number Diff line number Diff line change @@ -112,8 +112,6 @@ private void ApplyFocus()
112
112
}
113
113
}
114
114
115
- private void OnControlPropertyChanged ( DependencyObject sender , DependencyProperty dp ) => ApplyFocus ( ) ;
116
-
117
115
private void OnEngagementTimerTick ( object sender , object e )
118
116
{
119
117
ApplyFocus ( ) ;
You can’t perform that action at this time.
0 commit comments