Xamarin.Plugins icon indicating copy to clipboard operation
Xamarin.Plugins copied to clipboard

IconToolbarItem default color is black

Open BenDevelopment opened this issue 8 years ago • 2 comments

Hello, At first, thank you for your work. I'm using IconToolbarItem in my application. It works well but the icon color is black by default. How can I tell Iconize to set the IconToolbarItem color to the inherited theme color? I dont' want to specify a particular color, I wan't to reproduce the same behavior than the default xamarin ToolbarItem witch is black on UWP, white on Android, and blue on IOS.

Thank you!

BenDevelopment avatar Feb 08 '17 13:02 BenDevelopment

I assume you use Xamarin.Forms.

Have you tried to define a global style for every IconToolbarItem in App.xaml? Something like this

<OnPlatform x:Key="IconToolbarItemColor"
            x:TypeArguments="Color"
            Android="White"
            WinPhone="Black"
            iOS="Blue" />
<Style TargetType="iconize:IconToolbarItem">
        <Setter Property="IconColor" Value="{DynamicResource IconToolbarItemColor}" />
</Style>

Besides that.. does IconToolBarItem work in your UWP applications? For me it doesn't.

MJomaa avatar Mar 05 '17 21:03 MJomaa

Icons also aren't working on UWP for me

Denny966 avatar Jun 22 '17 14:06 Denny966