Skip to content

Commit 15aac10

Browse files
rename the UpdateFocusState into SetFocusVisualState
1 parent 4dbfa14 commit 15aac10

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

maui/src/SegmentedControl/Interface/ISegmentInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ internal interface ISegmentItemInfo : ISegmentInfo
134134
/// <summary>
135135
/// Update the keyboard focused view for the segmentedControl.
136136
/// </summary>
137-
void UpdateFocusState(bool state);
137+
void SetFocusVisualState(bool state);
138138
#endif
139139

140140
/// <summary>

maui/src/SegmentedControl/SfSegmentedControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ void ISegmentItemInfo.ClearFocusedView()
11901190
}
11911191

11921192
#if WINDOWS
1193-
void ISegmentItemInfo.UpdateFocusState(bool state)
1193+
void ISegmentItemInfo.SetFocusVisualState(bool state)
11941194
{
11951195
if (this.Handler != null && this.Handler.PlatformView != null && this.Handler.PlatformView is Microsoft.UI.Xaml.UIElement nativeView)
11961196
{

maui/src/SegmentedControl/Views/SegmentLayout.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ internal void ProcessOnKeyDown(KeyEventArgs e)
199199
#if WINDOWS
200200
if (e.Key == KeyboardKey.Left || e.Key == KeyboardKey.Right)
201201
{
202-
_itemInfo?.UpdateFocusState(false);
202+
_itemInfo?.SetFocusVisualState(false);
203203
}
204204
#endif
205205

@@ -209,7 +209,7 @@ internal void ProcessOnKeyDown(KeyEventArgs e)
209209
_focusedIndex = -1;
210210
_itemInfo?.ClearFocusedView();
211211
#if WINDOWS
212-
_itemInfo?.UpdateFocusState(true);
212+
_itemInfo?.SetFocusVisualState(true);
213213
#endif
214214
return;
215215
}

0 commit comments

Comments
 (0)