-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Implemented material3 support for Editor #33478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jfversluis
merged 6 commits into
dotnet:inflight/current
from
SyedAbdulAzeemSF4852:material3-editor
Feb 28, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
02fc3e3
Implemented Material 3 support for Editor
SyedAbdulAzeemSF4852 132c0d9
Remove custom measurement override from MauiMaterialEditText
SyedAbdulAzeemSF4852 2299a6f
Added TODO comment and refactored class and file names
SyedAbdulAzeemSF4852 6e07d1a
Added UI test with baseline snapshots
SyedAbdulAzeemSF4852 6bffdce
Merge branch 'inflight/current' into material3-editor
jfversluis 58c892e
Merge branch 'inflight/current' into material3-editor
jfversluis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+34.4 KB
...android-notch-36/Material3Editor_VerifyEditorCharacterSpacingWhenFontFamily.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32 KB
...droid-notch-36/Material3Editor_VerifyEditorCharacterSpacingWhenMaxLengthSet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.3 KB
...ts/android-notch-36/Material3Editor_VerifyEditorControlWhenFlowDirectionSet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.6 KB
...android-notch-36/Material3Editor_VerifyEditorControlWhenPlaceholderColorSet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.1 KB
.../android-notch-36/Material3Editor_VerifyEditorControlWhenPlaceholderTextSet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.3 KB
.../Material3Editor_VerifyEditorHorizontalTextAlignmentBasedOnCharacterSpacing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.3 KB
...rial3Editor_VerifyEditorHorizontalTextAlignmentWhenVerticalTextAlignmentSet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.1 KB
...ndroid-notch-36/Material3Editor_VerifyEditorPlaceholderWhenFlowDirectionSet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.2 KB
...ndroid-notch-36/Material3Editor_VerifyEditorPlaceholderWithCharacterSpacing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+36.4 KB
.../android-notch-36/Material3Editor_VerifyEditorPlaceholderWithFontAttributes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.5 KB
...hots/android-notch-36/Material3Editor_VerifyEditorPlaceholderWithFontFamily.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.2 KB
...pshots/android-notch-36/Material3Editor_VerifyEditorPlaceholderWithFontSize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.1 KB
...oid-notch-36/Material3Editor_VerifyEditorPlaceholderWithHorizontalAlignment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.8 KB
...napshots/android-notch-36/Material3Editor_VerifyEditorPlaceholderWithShadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.1 KB
...droid-notch-36/Material3Editor_VerifyEditorPlaceholderWithVerticalAlignment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.3 KB
...s/android-notch-36/Material3Editor_VerifyEditorTextWhenAlingnedHorizontally.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.3 KB
...ots/android-notch-36/Material3Editor_VerifyEditorTextWhenAlingnedVertically.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.3 KB
...roid-notch-36/Material3Editor_VerifyEditorTextWhenCharacterSpacingSetValues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.1 KB
...hots/android-notch-36/Material3Editor_VerifyEditorTextWhenFontAttributesSet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.4 KB
...ots/android-notch-36/Material3Editor_VerifyEditorTextWhenFontFamilySetValue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.9 KB
...s/android-notch-36/Material3Editor_VerifyEditorTextWhenFontSizeSetCorrectly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.5 KB
.../android-notch-36/Material3Editor_VerifyEditorTextWhenTextColorSetCorrectly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.3 KB
...36/Material3Editor_VerifyEditorVerticalTextAlignmentBasedOnCharacterSpacing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.2 KB
...id.Tests/snapshots/android-notch-36/Material3Editor_VerifyEditor_WithShadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.8 KB
...ndroid-notch-36/Material3Editor_VerifyzEditorPlaceholderWithAutoSizeDiabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+71 KB
...id-notch-36/Material3Editor_VerifyzEditorPlaceholderWithAutoSizeTextChanges.png
Oops, something went wrong.
Binary file added
BIN
+40.9 KB
...hots/android-notch-36/Material3Editor_VerifyzEditorTextWhenAutoSizeDisabled.png
Oops, something went wrong.
Binary file added
BIN
+72.1 KB
...ndroid-notch-36/Material3Editor_VerifyzEditorTextWhenAutoSizeTextChangesSet.png
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
...ls/tests/TestCases.HostApp/FeatureMatrix/EditorMaterial3/Material3_EditorControlPage.xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
| xmlns:local="clr-namespace:Maui.Controls.Sample" | ||
| x:DataType="local:EditorViewModel" | ||
| x:Class="Maui.Controls.Sample.Material3_EditorControlMainPage"> | ||
| <VerticalStackLayout Padding="20" | ||
| Spacing="8"> | ||
| <Label Text="Editor Control" | ||
| FontSize="20" | ||
| Margin="0,0,0,50" | ||
| HorizontalOptions="Center"/> | ||
|
|
||
| <Grid x:Name="EditorGrid" | ||
| VerticalOptions="Start"> | ||
| <Editor x:Name="EditorControl" | ||
| Text="{Binding Text}" | ||
| Placeholder="{Binding Placeholder}" | ||
| PlaceholderColor="{Binding PlaceholderColor}" | ||
| TextColor="{Binding TextColor}" | ||
| HorizontalTextAlignment="{Binding HorizontalTextAlignment}" | ||
| VerticalTextAlignment="{Binding VerticalTextAlignment}" | ||
| FontSize="{Binding FontSize}" | ||
| CharacterSpacing="{Binding CharacterSpacing}" | ||
| IsReadOnly="{Binding IsReadOnly}" | ||
| IsTextPredictionEnabled="{Binding IsTextPredictionEnabled}" | ||
| IsSpellCheckEnabled="{Binding IsSpellCheckEnabled}" | ||
| Shadow="{Binding EditorShadow}" | ||
| MaxLength="{Binding MaxLength}" | ||
| SelectionLength="{Binding SelectionLength}" | ||
| CursorPosition="{Binding CursorPosition, Mode=TwoWay}" | ||
| Keyboard="{Binding Keyboard}" | ||
| FontFamily="{Binding FontFamily}" | ||
| IsVisible="{Binding IsVisible}" | ||
| IsEnabled="{Binding IsEnabled}" | ||
| FlowDirection="{Binding FlowDirection}" | ||
| HeightRequest="{Binding HeightRequest}" | ||
| FontAttributes="{Binding FontAttributes}" | ||
| TextTransform="{Binding TextTransform}" | ||
| AutoSize="{Binding AutoSizeOption}" | ||
| TextChanged="EditorControl_TextChanged" | ||
| Completed="EditorControl_Completed" | ||
| Focused="EditorControl_Focused" | ||
| Unfocused="EditorControl_Unfocused" | ||
| AutomationId="TestEditor"/> | ||
| </Grid> | ||
|
|
||
| <Grid HeightRequest="130"/> | ||
|
|
||
| <Button Text="Options" | ||
| FontSize="11" | ||
| Clicked="NavigateToOptionsPage_Clicked" | ||
| AutomationId="OptionsButton" | ||
| Margin="0,10,0,0"/> | ||
|
|
||
| <Grid ColumnSpacing="10" | ||
| Margin="0,10,0,10"> | ||
| <Grid.RowDefinitions> | ||
| <RowDefinition Height="Auto"/> | ||
| <RowDefinition Height="Auto"/> | ||
| </Grid.RowDefinitions> | ||
| <Grid.ColumnDefinitions> | ||
| <ColumnDefinition Width="*"/> | ||
| <ColumnDefinition Width="*"/> | ||
| </Grid.ColumnDefinitions> | ||
| <Label Text="Selection Length:" | ||
| FontSize="11" | ||
| Grid.Row="0" | ||
| Grid.Column="0"/> | ||
| <Label Text="Cursor position:" | ||
| FontSize="11" | ||
| Grid.Row="0" | ||
| Grid.Column="1"/> | ||
| <Entry x:Name="SelectionLengthEntry" | ||
| Text="{Binding SelectionLength}" | ||
| AutomationId="SelectionLengthEntry" | ||
| TextChanged="SelectionLength_Clicked" | ||
| Grid.Row="1" | ||
| Grid.Column="0"/> | ||
| <Entry x:Name="CursorPositionEntry" | ||
| Text="{Binding CursorPosition}" | ||
| AutomationId="CursorPositionEntry" | ||
| Grid.Row="1" | ||
| Grid.Column="1"/> | ||
| </Grid> | ||
|
|
||
| <Button Text="Update Cursor Selection" | ||
| FontSize="11" | ||
| Clicked="OnUpdateCursorAndSelectionClicked" | ||
| AutomationId="UpdateCursorAndSelectionButton"/> | ||
|
|
||
| <Label Text="Events:" | ||
| FontSize="11"/> | ||
| <Label x:Name="TextChangedLabel" | ||
| Text="{Binding TextChangedText}" | ||
| AutomationId="TextChangedLabel" | ||
| FontSize="11"/> | ||
| <Label x:Name="CompletedLabel" | ||
| Text="{Binding CompletedText}" | ||
| AutomationId="CompletedLabel" | ||
| FontSize="11"/> | ||
| <Label x:Name="FocusedLabel" | ||
| Text="{Binding FocusedText}" | ||
| AutomationId="FocusedLabel" | ||
| FontSize="11"/> | ||
| <Label x:Name="UnfocusedLabel" | ||
| Text="{Binding UnfocusedText}" | ||
| AutomationId="UnfocusedLabel" | ||
| FontSize="11"/> | ||
| </VerticalStackLayout> | ||
| </ContentPage> |
189 changes: 189 additions & 0 deletions
189
...tests/TestCases.HostApp/FeatureMatrix/EditorMaterial3/Material3_EditorControlPage.xaml.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,189 @@ | ||
| using System.ComponentModel; | ||
| using Microsoft.Maui.Controls; | ||
|
|
||
| namespace Maui.Controls.Sample; | ||
|
|
||
| public class Material3_EditorControlPage : NavigationPage | ||
| { | ||
| EditorViewModel _viewModel; | ||
|
|
||
| public Material3_EditorControlPage() | ||
| { | ||
| _viewModel = new EditorViewModel(); | ||
| PushAsync(new Material3_EditorControlMainPage(_viewModel)); | ||
| } | ||
| } | ||
|
|
||
| public partial class Material3_EditorControlMainPage : ContentPage | ||
| { | ||
| EditorViewModel _viewModel; | ||
| Editor _editorControl; | ||
|
|
||
| public Material3_EditorControlMainPage(EditorViewModel viewModel) | ||
| { | ||
| InitializeComponent(); | ||
| _viewModel = viewModel; | ||
| BindingContext = _viewModel; | ||
| _editorControl = EditorControl; | ||
| _editorControl.PropertyChanged += UpdateEditorControl; | ||
| } | ||
|
|
||
| async void NavigateToOptionsPage_Clicked(object sender, EventArgs e) | ||
| { | ||
| BindingContext = _viewModel = new EditorViewModel(); | ||
| _viewModel.Text = "Test Editor"; | ||
| _viewModel.Placeholder = "Enter text here"; | ||
| _viewModel.VerticalTextAlignment = TextAlignment.End; | ||
| _viewModel.CursorPosition = 0; | ||
| _viewModel.SelectionLength = 0; | ||
| _viewModel.HeightRequest = -1; | ||
| ReInitializeEditor(); | ||
| await Navigation.PushAsync(new EditorOptionsPage(_viewModel)); | ||
| } | ||
|
|
||
| void ReInitializeEditor() | ||
| { | ||
| _editorControl.TextChanged -= EditorControl_TextChanged; | ||
| _editorControl.Completed -= EditorControl_Completed; | ||
| _editorControl.Focused -= EditorControl_Focused; | ||
| _editorControl.Unfocused -= EditorControl_Unfocused; | ||
| _editorControl.PropertyChanged -= UpdateEditorControl; | ||
|
|
||
| EditorGrid.Children.Clear(); | ||
|
|
||
| var editor = new Editor | ||
| { | ||
| AutomationId = "TestEditor", | ||
| }; | ||
|
|
||
| editor.SetBinding(Editor.TextProperty, nameof(EditorViewModel.Text)); | ||
| editor.SetBinding(Editor.PlaceholderProperty, nameof(EditorViewModel.Placeholder)); | ||
| editor.SetBinding(Editor.PlaceholderColorProperty, nameof(EditorViewModel.PlaceholderColor)); | ||
| editor.SetBinding(Editor.TextColorProperty, nameof(EditorViewModel.TextColor)); | ||
| editor.SetBinding(Editor.HorizontalTextAlignmentProperty, nameof(EditorViewModel.HorizontalTextAlignment)); | ||
| editor.SetBinding(Editor.VerticalTextAlignmentProperty, nameof(EditorViewModel.VerticalTextAlignment)); | ||
| editor.SetBinding(Editor.FontSizeProperty, nameof(EditorViewModel.FontSize)); | ||
| editor.SetBinding(Editor.CharacterSpacingProperty, nameof(EditorViewModel.CharacterSpacing)); | ||
| editor.SetBinding(Editor.IsReadOnlyProperty, nameof(EditorViewModel.IsReadOnly)); | ||
| editor.SetBinding(Editor.IsTextPredictionEnabledProperty, nameof(EditorViewModel.IsTextPredictionEnabled)); | ||
| editor.SetBinding(Editor.IsSpellCheckEnabledProperty, nameof(EditorViewModel.IsSpellCheckEnabled)); | ||
| editor.SetBinding(Editor.ShadowProperty, nameof(EditorViewModel.EditorShadow)); | ||
| editor.SetBinding(Editor.MaxLengthProperty, nameof(EditorViewModel.MaxLength)); | ||
| editor.SetBinding(Editor.SelectionLengthProperty, nameof(EditorViewModel.SelectionLength)); | ||
| editor.SetBinding(Editor.CursorPositionProperty, nameof(EditorViewModel.CursorPosition), BindingMode.TwoWay); | ||
| editor.SetBinding(Editor.KeyboardProperty, nameof(EditorViewModel.Keyboard)); | ||
| editor.SetBinding(Editor.FontFamilyProperty, nameof(EditorViewModel.FontFamily)); | ||
| editor.SetBinding(Editor.IsVisibleProperty, nameof(EditorViewModel.IsVisible)); | ||
| editor.SetBinding(Editor.IsEnabledProperty, nameof(EditorViewModel.IsEnabled)); | ||
| editor.SetBinding(Editor.FlowDirectionProperty, nameof(EditorViewModel.FlowDirection)); | ||
| editor.SetBinding(Editor.HeightRequestProperty, nameof(EditorViewModel.HeightRequest)); | ||
| editor.SetBinding(Editor.FontAttributesProperty, nameof(EditorViewModel.FontAttributes)); | ||
| editor.SetBinding(Editor.TextTransformProperty, nameof(EditorViewModel.TextTransform)); | ||
| editor.SetBinding(Editor.AutoSizeProperty, nameof(EditorViewModel.AutoSizeOption)); | ||
|
|
||
| editor.PropertyChanged += UpdateEditorControl; | ||
|
|
||
| _editorControl = editor; | ||
| EditorGrid.Children.Add(editor); | ||
|
|
||
| editor.TextChanged += EditorControl_TextChanged; | ||
| editor.Completed += EditorControl_Completed; | ||
| editor.Focused += EditorControl_Focused; | ||
| editor.Unfocused += EditorControl_Unfocused; | ||
| } | ||
|
|
||
| void CursorPositionButton_Clicked(object sender, EventArgs e) | ||
| { | ||
| if (int.TryParse(CursorPositionEntry.Text, out int cursorPosition)) | ||
| { | ||
| _viewModel.CursorPosition = cursorPosition; | ||
| } | ||
| } | ||
|
|
||
| void SelectionLength_Clicked(object sender, EventArgs e) | ||
| { | ||
| if (int.TryParse(SelectionLengthEntry.Text, out int selectionLength)) | ||
| { | ||
| _viewModel.SelectionLength = selectionLength; | ||
| } | ||
| } | ||
|
|
||
| void OnUpdateCursorAndSelectionClicked(object sender, EventArgs e) | ||
| { | ||
| if (int.TryParse(CursorPositionEntry.Text, out int cursorPosition)) | ||
| { | ||
| _editorControl.Focus(); | ||
| _editorControl.CursorPosition = cursorPosition; | ||
|
|
||
| if (BindingContext is EditorViewModel vm) | ||
| { | ||
| vm.CursorPosition = cursorPosition; | ||
| } | ||
| } | ||
|
|
||
| if (int.TryParse(SelectionLengthEntry.Text, out int selectionLength)) | ||
| { | ||
| _editorControl.Focus(); | ||
| _editorControl.SelectionLength = selectionLength; | ||
|
|
||
| if (BindingContext is EditorViewModel vm) | ||
| { | ||
| vm.SelectionLength = selectionLength; | ||
| } | ||
| } | ||
| CursorPositionEntry.Text = _editorControl.CursorPosition.ToString(); | ||
| SelectionLengthEntry.Text = _editorControl.SelectionLength.ToString(); | ||
| } | ||
|
|
||
| void UpdateEditorControl(object sender, PropertyChangedEventArgs args) | ||
| { | ||
| if (args.PropertyName == Editor.CursorPositionProperty.PropertyName) | ||
| { | ||
| CursorPositionEntry.Text = _editorControl.CursorPosition.ToString(); | ||
| } | ||
| else if (args.PropertyName == Editor.SelectionLengthProperty.PropertyName) | ||
| { | ||
| SelectionLengthEntry.Text = _editorControl.SelectionLength.ToString(); | ||
| } | ||
| } | ||
|
|
||
| void EditorControl_TextChanged(object sender, TextChangedEventArgs e) | ||
| { | ||
| string eventInfo = $"TextChanged: Old='{e.OldTextValue}', New='{e.NewTextValue}'"; | ||
|
|
||
| if (BindingContext is EditorViewModel vm) | ||
| { | ||
| vm.TextChangedText = eventInfo; | ||
| } | ||
| } | ||
|
|
||
| void EditorControl_Completed(object sender, EventArgs e) | ||
| { | ||
| string eventInfo = $"Completed: Event Triggered"; | ||
|
|
||
| if (BindingContext is EditorViewModel vm) | ||
| { | ||
| vm.CompletedText = eventInfo; | ||
| } | ||
| } | ||
|
|
||
| void EditorControl_Focused(object sender, FocusEventArgs e) | ||
| { | ||
| string eventInfo = $"Focused: Event Triggered"; | ||
|
|
||
| if (BindingContext is EditorViewModel vm) | ||
| { | ||
| vm.FocusedText = eventInfo; | ||
| } | ||
| } | ||
|
|
||
| private void EditorControl_Unfocused(object sender, FocusEventArgs e) | ||
| { | ||
| string eventInfo = $"Unfocused: Event Triggered"; | ||
|
|
||
| if (BindingContext is EditorViewModel vm) | ||
| { | ||
| vm.UnfocusedText = eventInfo; | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.