Comments (5)
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.
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.
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.
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.
@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)
- AnimationDurationMillisecond not working on Android HOT 1
- Android: Right to Left menu does not animate first time HOT 2
- iOS: Right Menu doesn't show items HOT 2
- Displays blue screen with Shell HOT 1
- Please set SildeMenuView WidthRequest HOT 1
- Fetch Web Service Data
- CarouselPage into Slide
- Right to Left slide menu not opening after DsiplayAlert HOT 2
- Is this project maintaned? HOT 2
- [iOS] Issue with tabbed page and bottom bar
- XAML duplicate sliders oddity? How to call via XAML? HOT 1
- Keyboard overlap entry android
- [iOS] SlidePopupView - ListView content not displayed HOT 1
- Xamarin.mac support
- Mvvm
- [iOS] Label not showing
- The Action delegates ShowMenuAction / HideMenuAction are null HOT 3
- When an AlertDialog is presented, the "SlideMenuView" is not show when in "this.IsFullScreen = true;" mode.
- is there a way to show two SlideMenuView in same MenuContainerPage with two diferent buttons? HOT 1
- InnerMenu Sample not working on IOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slideoverkit.