Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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.SearchIconColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchIconColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchIconColorProperty -> Microsoft.Maui.Controls.BindableProperty
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,7 @@ 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.SearchIconColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchIconColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchIconColorProperty -> Microsoft.Maui.Controls.BindableProperty
~Microsoft.Maui.Controls.Internals.TypedBindingBase.UpdateSourceEventName.set -> void
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.SearchIconColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchIconColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchIconColorProperty -> 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.SearchIconColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchIconColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchIconColorProperty -> 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.SearchIconColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchIconColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchIconColorProperty -> 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.SearchIconColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchIconColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchIconColorProperty -> 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.SearchIconColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Controls.SearchBar.SearchIconColor.set -> void
~static readonly Microsoft.Maui.Controls.SearchBar.SearchIconColorProperty -> 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 @@ -28,6 +28,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="SearchIconColor"/>.</summary>
public static readonly BindableProperty SearchIconColorProperty = BindableProperty.Create(nameof(SearchIconColor), 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 @@ -77,6 +80,14 @@ public Color CancelButtonColor
get { return (Color)GetValue(CancelButtonColorProperty); }
set { SetValue(CancelButtonColorProperty, value); }
}
/// <summary>
/// Gets or sets the color of the search icon in the <see cref="SearchBar"/>.
/// </summary>
public Color SearchIconColor
{
get { return (Color)GetValue(SearchIconColorProperty); }
set { SetValue(SearchIconColorProperty, 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.
33 changes: 33 additions & 0 deletions src/Controls/tests/TestCases.HostApp/Issues/Issue22963.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
namespace Maui.Controls.Sample.Issues
{
[XamlCompilation(XamlCompilationOptions.Compile)]
[Issue(IssueTracker.Github, 22963, "Implementation of Customizable Search Icon 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...",
SearchIconColor = 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 Icon Color for SearchBar Across Platforms";

[Test]
[Category(UITestCategories.SearchBar)]
public void SearchIconColorInitializesCorrectly()
{
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 icon.
/// </summary>
Color SearchIconColor { 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 MapSearchIconColor(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView?.UpdateSearchIconColor(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 MapSearchIconColor(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 @@ -86,6 +86,9 @@ public static void MapKeyboard(ISearchBarHandler handler, ISearchBar searchBar)
[MissingMapper]
public static void MapCancelButtonColor(ISearchBarHandler handler, ISearchBar searchBar) { }

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

public static void MapCharacterSpacing(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView.Entry.UpdateCharacterSpacing(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 MapSearchIconColor(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView?.UpdateSearchIconColor(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?.UpdateSearchIconColor(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.SearchIconColor)] = MapSearchIconColor,
[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 MapSearchIconColor(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView?.UpdateSearchIcon(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 UpdateSearchIconColor(this SearchView searchView, ISearchBar searchBar)
{
if (searchView.Resources is null)
return;

var searchIconIdentifier = Resource.Id.search_mag_icon;

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

if (image?.Drawable is not null)
{
if (searchBar.SearchIconColor is not null)
image.Drawable.SetColorFilter(searchBar.SearchIconColor, 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 UpdateSearchIconColor(this AutoSuggestBox platformControl, ISearchBar searchBar)
{
var brush = searchBar.SearchIconColor?.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 UpdateSearchIcon(this UISearchBar uiSearchBar, ISearchBar searchBar)
{
var textField = uiSearchBar.FindDescendantView<UITextField>();

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

if (searchBar.SearchIconColor is not null)
{
iconView.Image = iconView.Image.ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate);
iconView.TintColor = searchBar.SearchIconColor.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.SearchIconColor.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 @@ -86,4 +86,5 @@ 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
*REMOVED*override Microsoft.Maui.Handlers.ScrollViewHandler.NeedsContainer.get -> bool
*REMOVED*override Microsoft.Maui.Handlers.ScrollViewHandler.NeedsContainer.get -> bool
Microsoft.Maui.ISearchBar.SearchIconColor.get -> Microsoft.Maui.Graphics.Color!
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ 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
*REMOVED*override Microsoft.Maui.Handlers.ScrollViewHandler.NeedsContainer.get -> bool
*REMOVED*override Microsoft.Maui.Handlers.ScrollViewHandler.NeedsContainer.get -> bool
Microsoft.Maui.ISearchBar.SearchIconColor.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.SearchIconColor.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.SearchIconColor.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.SearchIconColor.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.SearchIconColor.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.SearchIconColor.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 SearchIconColor { get; set; }

public double CharacterSpacing { get; set; }

public Font Font { get; set; }
Expand Down