jsmarcus / Iconize

Use icon fonts in your Xamarin.Forms application!
Other
204 stars 71 forks source link

Iconize and NavigationPageRenderer doesn't seem to work #32

Open pcdus opened 7 years ago

pcdus commented 7 years ago

I meet a small problem with Iconize: before using it in my project, I used a custom renderer on Android to display or hide an TitleIcon in the NavigationBar.

This worked well by:

But since I've added Iconize this doesn't longer work:

I've tried to replacing: [assembly: ExportRenderer(typeof(NavigationPage), typeof(CustomNavigationPageRenderer))] by [assembly: ExportRenderer(typeof(IconNavigationPage), typeof(CustomNavigationPageRenderer))] but in this case, I don't "go" into the renderer, where I put breakpoints...

Is this normal? Is there a way to fix this?

pcdus commented 7 years ago

I've done a new test with:

[assembly: ExportRenderer(typeof(IconNavigationPage), typeof(CustomNavigationPageRenderer))]
public class CustomNavigationPageRenderer : IconNavigationRenderer
{
}

But it's always the same thing: I don't "go" into the renderer, it's like if it wasn't recognized...

jthun commented 6 years ago

Same problem here. I also tried extending NavigationPageRenderer and IconNavigationRenderer, but with no success.