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

how to bind to the MasterDetailPage IsPresentedProperty in Xaml

$
0
0

So I have my

    <MasterDetailPage>
      <MasterDetailPage.Master>
      </MasterDetailPage.Master>
       <MasterDetailPage.Detail>
      </MasterDetailPage.Detail>
    </MasterDetailPage>

and a property in my ViewModel (That is hooked up) But I am Unsure where to put the IsPresented property to bind to it

    private bool _isFlyoutOpen;
    public bool IsFlyoutOpen
    {
        get { return _isFlyoutOpen; }
        set
        {
            _isFlyoutOpen = value;
            RaisePropertyChanged();
        }
    }

I have tried putting IsPresented="{Binding IsFlyoutOpen}" in all three different bits of Xaml on that page but none of them worked. Where am I supposed to put this property to bind to it in Xaml?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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