Coder Social home page Coder Social logo

Comments (5)

stefandevo avatar stefandevo commented on August 11, 2024 1

ok thanks for the suggestion. Would be nice if you could implement a Command in the controls for it to call to do the same.

from slideoverkit.

stefandevo avatar stefandevo commented on August 11, 2024 1

Another idea: add a Visbility property to the SlideMenuView. That way I could make a binding to this property from the model. Thanks for the suggestion @rid00z ! [sitting next to me in the Evolve setting]

from slideoverkit.

jessejiang0214 avatar jessejiang0214 commented on August 11, 2024

I have a suggestion, which I often used in my projects.
In you ViewModel, you can set a Action property like

Public Action CloseMenu { get; set; }

In your MenuView override OnBindingContextChanged and set ()=>{ this.HideWithoutAnimations ();} to CloseMenu property.

Then in your button Command in ViewMode, just invoke CloseMenu will be fine.

from slideoverkit.

 avatar commented on August 11, 2024

How are you guys binding the SlideMenuView to the ViewModel? Are you creating a ViewModel for the SlideMenuView itself, or are you referring to the ViewModel for the Page containing the SlideMenuView? I'm struggling to work out how to do this.

from slideoverkit.

jessejiang0214 avatar jessejiang0214 commented on August 11, 2024

@james-lavery I create a ViewModel for SlideMenuView. But you can binding to Page's BindingContext, just override page's OnBindingContextChanged function.

from slideoverkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.