Open bondarenkod opened 1 year ago
Title image is not centered when navigation bar contains back button or/and toolbar buttons. I've fixed this issue, the nuget package is attached to this issue, feel free to use it or compile from the linked as repro sources.
NavigationPage.SetTitleIconImageSource(this, "icon_feed.png");
this.ToolbarItems.Add(new ToolbarItem() { Text = "one" }); this.ToolbarItems.Add(new ToolbarItem() { Text = "two" });
Check this commit https://github.com/bondarenkod/repro-xf-titleimage-not-centered/commit/e8b13d39ee721d12236691cb8b224dc581fe7f55 This is XF project adopted to use with VS2022 for Windows and the latest VS2022 for Mac. You need to run the .Xamarin.Forms.vs2022.iOS.slnf file and deploy the titleview.iOS project.
.Xamarin.Forms.vs2022.iOS.slnf
titleview.iOS
Check these changes https://github.com/bondarenkod/repro-xf-titleimage-not-centered/commit/e8b13d39ee721d12236691cb8b224dc581fe7f55
Compiled nuget based on the repro: Xamarin.Forms.5.0.0.2548.zip
Description
Title image is not centered when navigation bar contains back button or/and toolbar buttons. I've fixed this issue, the nuget package is attached to this issue, feel free to use it or compile from the linked as repro sources.
Steps to Reproduce
NavigationPage.SetTitleIconImageSource(this, "icon_feed.png");
this.ToolbarItems.Add(new ToolbarItem() { Text = "one" }); this.ToolbarItems.Add(new ToolbarItem() { Text = "two" });
Expected Behavior
Actual Behavior
Basic Information
Reproduction Link
Check this commit https://github.com/bondarenkod/repro-xf-titleimage-not-centered/commit/e8b13d39ee721d12236691cb8b224dc581fe7f55 This is XF project adopted to use with VS2022 for Windows and the latest VS2022 for Mac. You need to run the
.Xamarin.Forms.vs2022.iOS.slnf
file and deploy thetitleview.iOS
project.Workaround
Check these changes https://github.com/bondarenkod/repro-xf-titleimage-not-centered/commit/e8b13d39ee721d12236691cb8b224dc581fe7f55
Compiled nuget based on the repro: Xamarin.Forms.5.0.0.2548.zip