Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Explicit interface implementation for DrawerLayout

$
0
0

Heya,

I want to get notified on drawer state changes (using Forms 1.5.1 AppCompat on Android).

Therefore I need to reimplement the IDrawerListener on my custom renderer and implement the method:

class MyMaster : MasterDetailPageRenderer, DrawerLayout.IDrawerListener
{
     void DrawerLayout.IDrawerListener.OnDrawerStateChanged(int newState) {
          // DoStuff
     }
}

I noticed that Xamarin.Forms is using the OnDrawerStateChanged in their implementiation of the MasterDetailPageRenderer.

Now my question is, can I implement the IDrawerListener.OnDrawerStateChanged method on my custom renderer without breaking things in Xamarin.Forms?

I'm not sure about "overriding" explicit interfaces in that case.

Can anyone help me out?


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>