Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
656d81c
Implementation changes
praveenkumarkarunanithi Dec 20, 2024
9c23e06
Test case commit
praveenkumarkarunanithi Dec 20, 2024
d48fa4b
UI test images commit
praveenkumarkarunanithi Dec 20, 2024
0cf5fef
XML comment update
praveenkumarkarunanithi Dec 20, 2024
033cc39
Merge branch 'dotnet:main' into fix-22963
praveenkumarkarunanithi Dec 24, 2024
c746507
updating device test class with SearchButtonColor property.
praveenkumarkarunanithi Dec 24, 2024
837f227
removing conflicted line of code
praveenkumarkarunanithi Jan 2, 2025
6be7ae3
Merge branch 'dotnet:main' into fix-22963
praveenkumarkarunanithi Jan 2, 2025
4d1bbe3
re commit the fix line after resolving conflict.
praveenkumarkarunanithi Jan 2, 2025
2736158
Update PublicAPI.Unshipped.txt
praveenkumarkarunanithi Jan 2, 2025
e69d680
Update PublicAPI.Unshipped.txt
praveenkumarkarunanithi Jan 2, 2025
ad2b697
commit for UI test case images.
praveenkumarkarunanithi Jan 2, 2025
46cab6c
modified API name as per its functionality
praveenkumarkarunanithi Jan 9, 2025
13e917e
Update Issue22963.cs
praveenkumarkarunanithi Jan 9, 2025
98448cf
updatedtestcase Screenshot name
praveenkumarkarunanithi Jan 9, 2025
d083ab2
updated test case naming
praveenkumarkarunanithi Jan 9, 2025
bf162bf
Update SearchBar.cs
praveenkumarkarunanithi Jan 9, 2025
7914c1d
name update
praveenkumarkarunanithi Jan 9, 2025
c1af9e2
resolving conflicts
praveenkumarkarunanithi Jan 13, 2025
1aee8c0
Update PublicAPI.Unshipped.txt
praveenkumarkarunanithi Jan 13, 2025
a2edf7e
Merge branch 'dotnet:main' into fix-22963
praveenkumarkarunanithi Jan 13, 2025
280213b
resolved branch conflicts
praveenkumarkarunanithi Jan 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,6 @@ static readonly Microsoft.Maui.Controls.TitleBar.TitleProperty -> Microsoft.Maui
static readonly Microsoft.Maui.Controls.TitleBar.TrailingContentProperty -> Microsoft.Maui.Controls.BindableProperty!
static readonly Microsoft.Maui.Controls.Window.TitleBarProperty -> Microsoft.Maui.Controls.BindableProperty!
virtual Microsoft.Maui.Controls.Application.ActivateWindow(Microsoft.Maui.Controls.Window! window) -> void
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchButtonColorProperty -> Microsoft.Maui.Controls.BindableProperty
Original file line number Diff line number Diff line change
Expand Up @@ -340,3 +340,6 @@ virtual Microsoft.Maui.Controls.Handlers.Items2.ItemsViewController2<TItemsView>
virtual Microsoft.Maui.Controls.Handlers.Items2.ItemsViewDelegator2<TItemsView, TViewController>.GetVisibleItemsIndex() -> (bool VisibleItems, int First, int Center, int Last)
virtual Microsoft.Maui.Controls.Handlers.Items2.ItemsViewHandler2<TItemsView>.UpdateLayout() -> void
override Microsoft.Maui.Controls.Handlers.Compatibility.FrameRenderer.MovedToWindow() -> void
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchButtonColorProperty -> Microsoft.Maui.Controls.BindableProperty
Original file line number Diff line number Diff line change
Expand Up @@ -341,3 +341,6 @@ virtual Microsoft.Maui.Controls.Handlers.Items2.ItemsViewController2<TItemsView>
virtual Microsoft.Maui.Controls.Handlers.Items2.ItemsViewDelegator2<TItemsView, TViewController>.GetVisibleItemsIndex() -> (bool VisibleItems, int First, int Center, int Last)
virtual Microsoft.Maui.Controls.Handlers.Items2.ItemsViewHandler2<TItemsView>.UpdateLayout() -> void
override Microsoft.Maui.Controls.Handlers.Compatibility.FrameRenderer.MovedToWindow() -> void
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchButtonColorProperty -> Microsoft.Maui.Controls.BindableProperty
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,6 @@ static readonly Microsoft.Maui.Controls.TitleBar.TitleProperty -> Microsoft.Maui
static readonly Microsoft.Maui.Controls.TitleBar.TrailingContentProperty -> Microsoft.Maui.Controls.BindableProperty!
static readonly Microsoft.Maui.Controls.Window.TitleBarProperty -> Microsoft.Maui.Controls.BindableProperty!
virtual Microsoft.Maui.Controls.Application.ActivateWindow(Microsoft.Maui.Controls.Window! window) -> void
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchButtonColorProperty -> Microsoft.Maui.Controls.BindableProperty
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,6 @@ static readonly Microsoft.Maui.Controls.TitleBar.TitleProperty -> Microsoft.Maui
static readonly Microsoft.Maui.Controls.TitleBar.TrailingContentProperty -> Microsoft.Maui.Controls.BindableProperty!
static readonly Microsoft.Maui.Controls.Window.TitleBarProperty -> Microsoft.Maui.Controls.BindableProperty!
virtual Microsoft.Maui.Controls.Application.ActivateWindow(Microsoft.Maui.Controls.Window! window) -> void
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchButtonColorProperty -> Microsoft.Maui.Controls.BindableProperty
3 changes: 3 additions & 0 deletions src/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,6 @@ static readonly Microsoft.Maui.Controls.TitleBar.TitleProperty -> Microsoft.Maui
static readonly Microsoft.Maui.Controls.TitleBar.TrailingContentProperty -> Microsoft.Maui.Controls.BindableProperty!
static readonly Microsoft.Maui.Controls.Window.TitleBarProperty -> Microsoft.Maui.Controls.BindableProperty!
virtual Microsoft.Maui.Controls.Application.ActivateWindow(Microsoft.Maui.Controls.Window! window) -> void
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchButtonColorProperty -> Microsoft.Maui.Controls.BindableProperty
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,6 @@ static readonly Microsoft.Maui.Controls.TitleBar.TitleProperty -> Microsoft.Maui
static readonly Microsoft.Maui.Controls.TitleBar.TrailingContentProperty -> Microsoft.Maui.Controls.BindableProperty!
static readonly Microsoft.Maui.Controls.Window.TitleBarProperty -> Microsoft.Maui.Controls.BindableProperty!
virtual Microsoft.Maui.Controls.Application.ActivateWindow(Microsoft.Maui.Controls.Window! window) -> void
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchButtonColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchButtonColorProperty -> Microsoft.Maui.Controls.BindableProperty
11 changes: 11 additions & 0 deletions src/Controls/src/Core/SearchBar/SearchBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public partial class SearchBar : InputView, ITextAlignmentElement, ISearchBarCon
/// <summary>Bindable property for <see cref="CancelButtonColor"/>.</summary>
public static readonly BindableProperty CancelButtonColorProperty = BindableProperty.Create(nameof(CancelButtonColor), typeof(Color), typeof(SearchBar), default(Color));

/// <summary>Bindable property for <see cref="SearchButtonColor"/>.</summary>
public static readonly BindableProperty SearchButtonColorProperty = BindableProperty.Create(nameof(SearchButtonColor), typeof(Color), typeof(SearchBar), default(Color));

/// <include file="../../docs/Microsoft.Maui.Controls/SearchBar.xml" path="//Member[@MemberName='PlaceholderProperty']/Docs/*" />
public new static readonly BindableProperty PlaceholderProperty = InputView.PlaceholderProperty;

Expand Down Expand Up @@ -75,6 +78,14 @@ public Color CancelButtonColor
get { return (Color)GetValue(CancelButtonColorProperty); }
set { SetValue(CancelButtonColorProperty, value); }
}
/// <summary>
/// Gets or sets the color of the search button icon in the <see cref="SearchBar"/>.
/// </summary>
public Color SearchButtonColor
{
get { return (Color)GetValue(SearchButtonColorProperty); }
set { SetValue(SearchButtonColorProperty, value); }
}

/// <include file="../../docs/Microsoft.Maui.Controls/SearchBar.xml" path="//Member[@MemberName='HorizontalTextAlignment']/Docs/*" />
public TextAlignment HorizontalTextAlignment
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/Controls/tests/TestCases.HostApp/Issues/Issue22963.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
namespace Maui.Controls.Sample.Issues
{
[XamlCompilation(XamlCompilationOptions.Compile)]
[Issue(IssueTracker.Github, 22963, "Implementation of Customizable Search Button Color for SearchBar Across Platforms", PlatformAffected.All)]

public partial class Issue22963 : ContentPage
{
public Issue22963()
{
ConfigureSearchBar();
}

private void ConfigureSearchBar()
{
// Create the SearchBar
var searchBar = new SearchBar
{
Placeholder = "Search...",
SearchButtonColor = Colors.Magenta,
WidthRequest = 300,
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Start,
AutomationId = "SearchBar"
};

// Add the SearchBar to the layout
var layout = new Grid();
layout.Children.Add(searchBar);

// Set the layout as the Content of the page
Content = layout;
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests.Issues
{
internal class Issue22963 : _IssuesUITest
{
public Issue22963(TestDevice device) : base(device) { }

public override string Issue => "Implementation of Customizable Search Button Color for SearchBar Across Platforms";

[Test]
[Category(UITestCategories.SearchBar)]
public void SearchButtonColorInitializesCorrectly()
{
App.WaitForElement("SearchBar");
VerifyScreenshot();
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/Core/src/Core/ISearchBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public interface ISearchBar : IView, ITextInput, ITextAlignment
/// </summary>
Color CancelButtonColor { get; }

/// <summary>
/// Gets the color of the Search button.
/// </summary>
Color SearchButtonColor { get; }

/// <summary>
/// Notify when the user presses the Search button.
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions src/Core/src/Handlers/SearchBar/SearchBarHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ public static void MapCancelButtonColor(ISearchBarHandler handler, ISearchBar se
handler.PlatformView?.UpdateCancelButtonColor(searchBar);
}

internal static void MapSearchButtonColor(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView?.UpdateSearchButtonColor(searchBar);
}

public static void MapKeyboard(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.UpdateValue(nameof(ISearchBar.Text));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public static void MapVerticalTextAlignment(IViewHandler handler, ISearchBar sea
public static void MapCharacterSpacing(IViewHandler handler, ISearchBar searchBar) { }
public static void MapTextColor(IViewHandler handler, ISearchBar searchBar) { }
public static void MapCancelButtonColor(IViewHandler handler, ISearchBar searchBar) { }
internal static void MapSearchButtonColor(IViewHandler handler, ISearchBar searchBar) { }

/// <summary>
/// Maps the abstract <see cref="ITextInput.IsTextPredictionEnabled"/> property to the platform-specific implementations.
Expand Down
3 changes: 3 additions & 0 deletions src/Core/src/Handlers/SearchBar/SearchBarHandler.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ public static void MapKeyboard(ISearchBarHandler handler, ISearchBar searchBar)

[MissingMapper]
public static void MapCancelButtonColor(ISearchBarHandler handler, ISearchBar searchBar) { }

[MissingMapper]
internal static void MapSearchButtonColor(ISearchBarHandler handler, ISearchBar searchBar) { }

public static void MapCharacterSpacing(ISearchBarHandler handler, ISearchBar searchBar)
{
Expand Down
6 changes: 6 additions & 0 deletions src/Core/src/Handlers/SearchBar/SearchBarHandler.Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ public static void MapCancelButtonColor(ISearchBarHandler handler, ISearchBar se
handler.PlatformView?.UpdateCancelButtonColor(searchBar);
}

internal static void MapSearchButtonColor(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView?.UpdateSearchButtonColor(searchBar);
}

public static void MapKeyboard(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView?.UpdateKeyboard(searchBar);
Expand All @@ -121,6 +126,7 @@ void OnLoaded(object sender, UI.Xaml.RoutedEventArgs e)
PlatformView?.UpdateIsTextPredictionEnabled(VirtualView);
PlatformView?.UpdateIsSpellCheckEnabled(VirtualView);
PlatformView?.UpdateCancelButtonColor(VirtualView);
PlatformView?.UpdateSearchButtonColor(VirtualView);
PlatformView?.UpdateKeyboard(VirtualView);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Core/src/Handlers/SearchBar/SearchBarHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public partial class SearchBarHandler : ISearchBarHandler
[nameof(ISearchBar.Text)] = MapText,
[nameof(ISearchBar.TextColor)] = MapTextColor,
[nameof(ISearchBar.CancelButtonColor)] = MapCancelButtonColor,
[nameof(ISearchBar.SearchButtonColor)] = MapSearchButtonColor,
[nameof(ISearchBar.Keyboard)] = MapKeyboard
};

Expand Down
4 changes: 4 additions & 0 deletions src/Core/src/Handlers/SearchBar/SearchBarHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ public static void MapCancelButtonColor(ISearchBarHandler handler, ISearchBar se
handler.PlatformView?.UpdateCancelButton(searchBar);
}

internal static void MapSearchButtonColor(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView?.UpdateSearchButton(searchBar);
}
public static void MapKeyboard(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView?.UpdateKeyboard(searchBar);
Expand Down
21 changes: 21 additions & 0 deletions src/Core/src/Platform/Android/SearchViewExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,27 @@ public static void UpdateCancelButtonColor(this SearchView searchView, ISearchBa
}
}

internal static void UpdateSearchButtonColor(this SearchView searchView, ISearchBar searchBar)
{
if (searchView.Resources is null)
return;

var searchButtonIdentifier = Resource.Id.search_mag_icon;

if (searchButtonIdentifier > 0)
{
var image = searchView.FindViewById<ImageView>(searchButtonIdentifier);

if (image?.Drawable is not null)
{
if (searchBar.SearchButtonColor is not null)
image.Drawable.SetColorFilter(searchBar.SearchButtonColor, FilterMode.SrcIn);
else
image.Drawable.ClearColorFilter();
}
}
}

public static void UpdateIsTextPredictionEnabled(this SearchView searchView, ISearchBar searchBar, EditText? editText = null)
{
editText ??= searchView.GetFirstChildOfType<EditText>();
Expand Down
19 changes: 19 additions & 0 deletions src/Core/src/Platform/Windows/SearchBarExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,5 +187,24 @@ internal static void UpdateCancelButtonColor(this AutoSuggestBox platformControl

cancelButton.UpdateTextColor(searchBar.CancelButtonColor, CancelButtonColorKeys);
}

internal static void UpdateSearchButtonColor(this AutoSuggestBox platformControl, ISearchBar searchBar)
{
var brush = searchBar.SearchButtonColor?.ToPlatform();

if (platformControl.QueryIcon is SymbolIcon queryIcon)
{
if (brush is null)
{
queryIcon.ClearValue(SymbolIcon.ForegroundProperty);
}
else
{
queryIcon.Foreground = brush;
}
}

platformControl.RefreshThemeResources();
}
}
}
15 changes: 15 additions & 0 deletions src/Core/src/Platform/iOS/SearchBarExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,21 @@ public static void UpdateCancelButton(this UISearchBar uiSearchBar, ISearchBar s
}
}

internal static void UpdateSearchButton(this UISearchBar uiSearchBar, ISearchBar searchBar)
{
var textField = uiSearchBar.FindDescendantView<UITextField>();

if (textField?.LeftView is not UIImageView iconView || iconView.Image is null)
return;

if (searchBar.SearchButtonColor is not null)
{
iconView.Image = iconView.Image.ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate);
iconView.TintColor = searchBar.SearchButtonColor.ToPlatform();
}

}

public static void UpdateIsTextPredictionEnabled(this UISearchBar uiSearchBar, ISearchBar searchBar, UITextField? textField = null)
{
textField ??= uiSearchBar.GetSearchTextField();
Expand Down
1 change: 1 addition & 0 deletions src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ static Microsoft.Maui.Keyboard.Password.get -> Microsoft.Maui.Keyboard!
static Microsoft.Maui.Keyboard.Time.get -> Microsoft.Maui.Keyboard!
static Microsoft.Maui.ViewExtensions.DisconnectHandlers(this Microsoft.Maui.IView! view) -> void
override Microsoft.Maui.Handlers.BorderHandler.PlatformArrange(Microsoft.Maui.Graphics.Rect rect) -> void
Microsoft.Maui.ISearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color!
3 changes: 2 additions & 1 deletion src/Core/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ override Microsoft.Maui.Platform.MauiCALayer.Dispose(bool disposing) -> void
override Microsoft.Maui.Platform.MauiCALayer.RemoveFromSuperLayer() -> void
override Microsoft.Maui.Handlers.BorderHandler.PlatformArrange(Microsoft.Maui.Graphics.Rect rect) -> void
override Microsoft.Maui.Handlers.EditorHandler.NeedsContainer.get -> bool
override Microsoft.Maui.Handlers.WindowHandler.DisconnectHandler(UIKit.UIWindow! platformView) -> void
override Microsoft.Maui.Handlers.WindowHandler.DisconnectHandler(UIKit.UIWindow! platformView) -> void
Microsoft.Maui.ISearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color!
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ override Microsoft.Maui.Platform.MauiCALayer.RemoveFromSuperLayer() -> void
override Microsoft.Maui.Handlers.BorderHandler.PlatformArrange(Microsoft.Maui.Graphics.Rect rect) -> void
override Microsoft.Maui.Handlers.EditorHandler.NeedsContainer.get -> bool
override Microsoft.Maui.Handlers.WindowHandler.DisconnectHandler(UIKit.UIWindow! platformView) -> void
Microsoft.Maui.ISearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color!
1 change: 1 addition & 0 deletions src/Core/src/PublicAPI/net-tizen/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ static Microsoft.Maui.Keyboard.Time.get -> Microsoft.Maui.Keyboard!
static Microsoft.Maui.Platform.ElementExtensions.ToContainerView(this Microsoft.Maui.IElement? view, Microsoft.Maui.IMauiContext! context) -> Tizen.NUI.BaseComponents.View!
static Microsoft.Maui.ViewExtensions.DisconnectHandlers(this Microsoft.Maui.IView! view) -> void
override Microsoft.Maui.Handlers.BorderHandler.PlatformArrange(Microsoft.Maui.Graphics.Rect rect) -> void
Microsoft.Maui.ISearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color!
1 change: 1 addition & 0 deletions src/Core/src/PublicAPI/net-windows/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ static Microsoft.Maui.ViewExtensions.DisconnectHandlers(this Microsoft.Maui.IVie
*REMOVED*virtual Microsoft.Maui.Platform.NavigationRootManager.Connect(Microsoft.UI.Xaml.UIElement! platformView) -> void
virtual Microsoft.Maui.Platform.NavigationRootManager.Connect(Microsoft.UI.Xaml.UIElement? platformView) -> void
override Microsoft.Maui.Handlers.BorderHandler.PlatformArrange(Microsoft.Maui.Graphics.Rect rect) -> void
Microsoft.Maui.ISearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color!
1 change: 1 addition & 0 deletions src/Core/src/PublicAPI/net/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ static Microsoft.Maui.Keyboard.Password.get -> Microsoft.Maui.Keyboard!
static Microsoft.Maui.Keyboard.Time.get -> Microsoft.Maui.Keyboard!
static Microsoft.Maui.ViewExtensions.DisconnectHandlers(this Microsoft.Maui.IView! view) -> void
override Microsoft.Maui.Handlers.BorderHandler.PlatformArrange(Microsoft.Maui.Graphics.Rect rect) -> void
Microsoft.Maui.ISearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color!
1 change: 1 addition & 0 deletions src/Core/src/PublicAPI/netstandard/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ static Microsoft.Maui.Keyboard.Password.get -> Microsoft.Maui.Keyboard!
static Microsoft.Maui.Keyboard.Time.get -> Microsoft.Maui.Keyboard!
static Microsoft.Maui.ViewExtensions.DisconnectHandlers(this Microsoft.Maui.IView! view) -> void
override Microsoft.Maui.Handlers.BorderHandler.PlatformArrange(Microsoft.Maui.Graphics.Rect rect) -> void
Microsoft.Maui.ISearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color!
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ static Microsoft.Maui.Keyboard.Password.get -> Microsoft.Maui.Keyboard!
static Microsoft.Maui.Keyboard.Time.get -> Microsoft.Maui.Keyboard!
static Microsoft.Maui.ViewExtensions.DisconnectHandlers(this Microsoft.Maui.IView! view) -> void
override Microsoft.Maui.Handlers.BorderHandler.PlatformArrange(Microsoft.Maui.Graphics.Rect rect) -> void
Microsoft.Maui.ISearchBar.SearchButtonColor.get -> Microsoft.Maui.Graphics.Color!
2 changes: 2 additions & 0 deletions src/Core/tests/DeviceTests/Stubs/SearchBarStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ void OnTextChanged(string oldValue, string newValue) =>

public Color CancelButtonColor { get; set; }

public Color SearchButtonColor { get; set; }

public double CharacterSpacing { get; set; }

public Font Font { get; set; }
Expand Down
Loading