├── .gitattributes ├── .gitignore ├── LICENSE.md ├── README.md ├── ScnSideMenu ├── NuGet.exe ├── PackPackages.bat ├── Plugins │ └── ScnPage.Plugin │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── ScnPage.Plugin.csproj │ │ ├── Src │ │ ├── BaseContentPage.cs │ │ ├── BaseContentUI.cs │ │ ├── BaseLanguageStrings.cs │ │ ├── BaseViewModel.cs │ │ └── Helpers │ │ │ └── NotifyPropertyChanged.cs │ │ └── packages.config ├── Sample │ └── SimpleSideMenu │ │ ├── SimpleSideMenu.Droid │ │ ├── Assets │ │ │ └── AboutAssets.txt │ │ ├── MainActivity.cs │ │ ├── Properties │ │ │ ├── AndroidManifest.xml │ │ │ └── AssemblyInfo.cs │ │ ├── Resources │ │ │ ├── AboutResources.txt │ │ │ ├── Resource.Designer.cs │ │ │ ├── drawable-hdpi │ │ │ │ └── icon.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── icon.png │ │ │ ├── drawable-xxhdpi │ │ │ │ └── icon.png │ │ │ └── drawable │ │ │ │ └── icon.png │ │ ├── SimpleSideMenu.Droid.csproj │ │ └── packages.config │ │ ├── SimpleSideMenu.iOS │ │ ├── AppDelegate.cs │ │ ├── Entitlements.plist │ │ ├── Info.plist │ │ ├── Main.cs │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── Resources │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default.png │ │ │ ├── Default@2x.png │ │ │ ├── Icon-60@2x.png │ │ │ ├── Icon-60@3x.png │ │ │ ├── Icon-76.png │ │ │ ├── Icon-76@2x.png │ │ │ ├── Icon-Small-40.png │ │ │ ├── Icon-Small-40@2x.png │ │ │ ├── Icon-Small-40@3x.png │ │ │ ├── Icon-Small.png │ │ │ ├── Icon-Small@2x.png │ │ │ ├── Icon-Small@3x.png │ │ │ └── LaunchScreen.storyboard │ │ ├── SimpleSideMenu.iOS.csproj │ │ ├── iTunesArtwork │ │ ├── iTunesArtwork@2x │ │ └── packages.config │ │ └── SimpleSideMenu │ │ ├── App.cs │ │ ├── SimpleSideMenu.projitems │ │ ├── SimpleSideMenu.shproj │ │ └── Views │ │ └── MainPage.cs ├── ScnSideMenu.nuspec ├── ScnSideMenu.sln └── ScnSideMenu │ ├── Properties │ └── AssemblyInfo.cs │ ├── ScnSideMenu.csproj │ ├── Src │ ├── MenuItemData.cs │ ├── NotifyPropertyChanged.cs │ ├── SideBarPage.cs │ └── SideBarPanel.cs │ └── packages.config └── Screenshots └── Droid ├── SideMenuRealApp.png └── SideMenuSample.png /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | build/ 21 | bld/ 22 | [Bb]in/ 23 | [Oo]bj/ 24 | 25 | # Visual Studo 2015 cache/options directory 26 | .vs/ 27 | 28 | # MSTest test Results 29 | [Tt]est[Rr]esult*/ 30 | [Bb]uild[Ll]og.* 31 | 32 | #NUNIT 33 | *.VisualState.xml 34 | TestResult.xml 35 | 36 | # Build Results of an ATL Project 37 | [Dd]ebugPS/ 38 | [Rr]eleasePS/ 39 | dlldata.c 40 | 41 | *_i.c 42 | *_p.c 43 | *_i.h 44 | *.ilk 45 | *.meta 46 | *.obj 47 | *.pch 48 | *.pdb 49 | *.pgc 50 | *.pgd 51 | *.rsp 52 | *.sbr 53 | *.tlb 54 | *.tli 55 | *.tlh 56 | *.tmp 57 | *.tmp_proj 58 | *.log 59 | *.vspscc 60 | *.vssscc 61 | .builds 62 | *.pidb 63 | *.svclog 64 | *.scc 65 | 66 | # Chutzpah Test files 67 | _Chutzpah* 68 | 69 | # Visual C++ cache files 70 | ipch/ 71 | *.aps 72 | *.ncb 73 | *.opensdf 74 | *.sdf 75 | *.cachefile 76 | 77 | # Visual Studio profiler 78 | *.psess 79 | *.vsp 80 | *.vspx 81 | 82 | # TFS 2012 Local Workspace 83 | $tf/ 84 | 85 | # Guidance Automation Toolkit 86 | *.gpState 87 | 88 | # ReSharper is a .NET coding add-in 89 | _ReSharper*/ 90 | *.[Rr]e[Ss]harper 91 | *.DotSettings.user 92 | 93 | # JustCode is a .NET coding addin-in 94 | .JustCode 95 | 96 | # TeamCity is a build add-in 97 | _TeamCity* 98 | 99 | # DotCover is a Code Coverage Tool 100 | *.dotCover 101 | 102 | # NCrunch 103 | _NCrunch_* 104 | .*crunch*.local.xml 105 | 106 | # MightyMoose 107 | *.mm.* 108 | AutoTest.Net/ 109 | 110 | # Web workbench (sass) 111 | .sass-cache/ 112 | 113 | # Installshield output folder 114 | [Ee]xpress/ 115 | 116 | # DocProject is a documentation generator add-in 117 | DocProject/buildhelp/ 118 | DocProject/Help/*.HxT 119 | DocProject/Help/*.HxC 120 | DocProject/Help/*.hhc 121 | DocProject/Help/*.hhk 122 | DocProject/Help/*.hhp 123 | DocProject/Help/Html2 124 | DocProject/Help/html 125 | 126 | # Click-Once directory 127 | publish/ 128 | 129 | # Publish Web Output 130 | *.[Pp]ublish.xml 131 | *.azurePubxml 132 | # TODO: Comment the next line if you want to checkin your web deploy settings 133 | # but database connection strings (with potential passwords) will be unencrypted 134 | *.pubxml 135 | *.publishproj 136 | 137 | # NuGet Packages 138 | *.nupkg 139 | # The packages folder can be ignored because of Package Restore 140 | **/packages/* 141 | # except build/, which is used as an MSBuild target. 142 | !**/packages/build/ 143 | # Uncomment if necessary however generally it will be regenerated when needed 144 | #!**/packages/repositories.config 145 | 146 | # Windows Azure Build Output 147 | csx/ 148 | *.build.csdef 149 | 150 | # Windows Store app package directory 151 | AppPackages/ 152 | 153 | # Others 154 | *.[Cc]ache 155 | ClientBin/ 156 | [Ss]tyle[Cc]op.* 157 | ~$* 158 | *~ 159 | *.dbmdl 160 | *.dbproj.schemaview 161 | *.pfx 162 | *.publishsettings 163 | node_modules/ 164 | bower_components/ 165 | 166 | # RIA/Silverlight projects 167 | Generated_Code/ 168 | 169 | # Backup & report files from converting an old project file 170 | # to a newer Visual Studio version. Backup files are not needed, 171 | # because we have git ;-) 172 | _UpgradeReport_Files/ 173 | Backup*/ 174 | UpgradeLog*.XML 175 | UpgradeLog*.htm 176 | 177 | # SQL Server files 178 | *.mdf 179 | *.ldf 180 | 181 | # Business Intelligence projects 182 | *.rdl.data 183 | *.bim.layout 184 | *.bim_*.settings 185 | 186 | # Microsoft Fakes 187 | FakesAssemblies/ 188 | 189 | # Node.js Tools for Visual Studio 190 | .ntvs_analysis.dat 191 | 192 | # Visual Studio 6 build log 193 | *.plg 194 | 195 | # Visual Studio 6 workspace options file 196 | *.opt 197 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 ScienceSoft Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ScnSideMenu 2 | ====================== 3 | Xamarin.Forms side menu control (targeted at Android & iOS) - it lets you add sliding menus (left and right) to you application. 4 | 5 | Control Structure 6 | =========================================== 7 | Bellow you may see control schema: 8 | ![Main](Screenshots/Droid/SideMenuSample.png) 9 | 10 | Screenshots of the real app usign sliding menu follow (find app sources at https://github.com/ScienceSoft-Inc/XamarinDiscountsApp): 11 | ![Main](Screenshots/Droid/SideMenuRealApp.png) 12 | 13 | How to use the control in Xamarin.Forms app 14 | =========================================== 15 | In order to show or hide the menu set the properties "IsShowLeftPanel" and "IsShowRightPanel" to TRUE or FALSE or use swipe gestures near screen border. 16 | 17 | In order to have gestures working you need to have platform specific renderers initialized. 18 | 19 | iOS: 20 | ```cs 21 | Xamarin.Forms.Forms.Init(); 22 | ViewGesturesRenderer.Init(); 23 | ``` 24 | Android: 25 | ```cs 26 | Xamarin.Forms.Forms.Init(this, bundle); 27 | ViewGesturesRenderer.Init(); 28 | ``` 29 | 30 | See sample usage here: https://github.com/ScienceSoft-Inc/ScnSideMenu/tree/master/ScnSideMenu/Sample/SimpleSideMenu 31 | -------------------------------------------------------------------------------- /ScnSideMenu/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/NuGet.exe -------------------------------------------------------------------------------- /ScnSideMenu/PackPackages.bat: -------------------------------------------------------------------------------- 1 | nuget pack ScnSideMenu.nuspec 2 | Pause -------------------------------------------------------------------------------- /ScnSideMenu/Plugins/ScnPage.Plugin/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Resources; 2 | using System.Reflection; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("ScnPage.Plugin")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("ScnPage.Plugin")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: NeutralResourcesLanguage("en")] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | -------------------------------------------------------------------------------- /ScnSideMenu/Plugins/ScnPage.Plugin/ScnPage.Plugin.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 10.0 7 | Debug 8 | AnyCPU 9 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24} 10 | Library 11 | Properties 12 | ScnPage.Plugin 13 | ScnPage.Plugin 14 | v4.5 15 | Profile259 16 | 512 17 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 18 | 19 | 20 | 21 | 22 | true 23 | full 24 | false 25 | bin\Debug\ 26 | DEBUG;TRACE 27 | prompt 28 | 4 29 | 30 | 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | ..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\netstandard1.0\Xamarin.Forms.Core.dll 49 | 50 | 51 | ..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\netstandard1.0\Xamarin.Forms.Platform.dll 52 | 53 | 54 | ..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\netstandard1.0\Xamarin.Forms.Xaml.dll 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 64 | 65 | 66 | 67 | 68 | 69 | 76 | -------------------------------------------------------------------------------- /ScnSideMenu/Plugins/ScnPage.Plugin/Src/BaseContentPage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Xamarin.Forms; 3 | 4 | namespace ScnPage.Plugin.Forms 5 | { 6 | public class BaseContentPage : ContentPage 7 | { 8 | public BaseContentUI ContentUI { get; } 9 | 10 | public BaseViewModel ViewModel { get; } 11 | 12 | //base layout 13 | protected RelativeLayout BaseLayout { get; private set; } 14 | 15 | //layout with loading progressbar 16 | public StackLayout LoadingLayout { get; private set; } 17 | 18 | public Label LoadingActivityText { get; private set; } 19 | 20 | public ActivityIndicator LoadingActivityIndicator { get; private set; } 21 | 22 | //layout for custom content 23 | public StackLayout ContentLayout { get; private set; } 24 | 25 | public event EventHandler Disposing; 26 | public void OnDisposing() 27 | { 28 | Disposing?.Invoke(this, EventArgs.Empty); 29 | } 30 | 31 | public BaseContentPage() 32 | { 33 | InitContentLayout(); 34 | } 35 | 36 | public BaseContentPage(Type viewModelType, Type contentUIType) 37 | { 38 | ViewModel = (BaseViewModel)Activator.CreateInstance(viewModelType); 39 | ContentUI = (BaseContentUI)Activator.CreateInstance(contentUIType); 40 | 41 | //Binding ContentUI with ViewModel 42 | ViewModel.SetPage(this, ContentUI); 43 | 44 | //Set binding model. 45 | BindingContext = ViewModel; 46 | 47 | //Binding property for screen title 48 | this.SetBinding(TitleProperty, "Title"); 49 | 50 | this.SetBinding(IsBusyProperty, "IsLoadBusy"); 51 | 52 | InitContentLayout(); 53 | InitLoadingLayout(); 54 | } 55 | 56 | private void InitContentLayout() 57 | { 58 | BaseLayout = new RelativeLayout 59 | { 60 | VerticalOptions = LayoutOptions.FillAndExpand, 61 | HorizontalOptions = LayoutOptions.FillAndExpand 62 | }; 63 | Content = BaseLayout; 64 | 65 | ContentLayout = new StackLayout 66 | { 67 | Padding = new Thickness(0), 68 | Spacing = 0 69 | }; 70 | 71 | BaseLayout.Children.Add(ContentLayout, 72 | Constraint.Constant(0), 73 | Constraint.Constant(0), 74 | Constraint.RelativeToParent(parent => parent.Width), 75 | Constraint.RelativeToParent(parent => parent.Height)); 76 | } 77 | 78 | private void InitLoadingLayout() 79 | { 80 | LoadingLayout = new StackLayout 81 | { 82 | BackgroundColor = new Color(0, 0, 0, 0.8) 83 | }; 84 | LoadingLayout.SetBinding(IsVisibleProperty, "IsLoadActivity"); 85 | 86 | LoadingActivityIndicator = new ActivityIndicator 87 | { 88 | HorizontalOptions = LayoutOptions.Center, 89 | VerticalOptions = LayoutOptions.EndAndExpand 90 | }; 91 | LoadingActivityIndicator.SetBinding(ActivityIndicator.IsRunningProperty, "IsLoadActivity"); 92 | 93 | LoadingActivityText = new Label 94 | { 95 | Text = ContentUI.TxtLoading, 96 | HorizontalOptions = LayoutOptions.Center, 97 | VerticalOptions = LayoutOptions.StartAndExpand 98 | }; 99 | 100 | LoadingLayout.Children.Add(LoadingActivityIndicator); 101 | LoadingLayout.Children.Add(LoadingActivityText); 102 | 103 | BaseLayout.Children.Add(LoadingLayout, 104 | Constraint.Constant(0), 105 | Constraint.Constant(0), 106 | Constraint.RelativeToParent(parent => parent.Width), 107 | Constraint.RelativeToParent(parent => parent.Height)); 108 | } 109 | 110 | public void ReloadContentLayout() 111 | { 112 | var tmpLayout = Content; 113 | Content = null; 114 | Content = tmpLayout; 115 | } 116 | 117 | protected override bool OnBackButtonPressed() 118 | { 119 | var isBackPress = false; 120 | 121 | if (ViewModel != null) 122 | isBackPress = ViewModel.IsLoading; 123 | 124 | return isBackPress; 125 | } 126 | 127 | #region OpenningLocker 128 | 129 | private static readonly object OpenningLocker = new object(); 130 | 131 | private bool _isOpenning; 132 | public bool IsOpenning 133 | { 134 | get 135 | { 136 | lock (OpenningLocker) 137 | return _isOpenning; 138 | } 139 | set 140 | { 141 | lock (OpenningLocker) 142 | _isOpenning = value; 143 | } 144 | } 145 | 146 | #endregion 147 | 148 | public async void OpenPage(Page page, bool animated = true) 149 | { 150 | if (IsOpenning) 151 | return; 152 | 153 | try 154 | { 155 | IsOpenning = true; 156 | await Navigation.PushAsync(page, animated); 157 | } 158 | finally 159 | { 160 | IsOpenning = false; 161 | } 162 | } 163 | } 164 | } 165 | -------------------------------------------------------------------------------- /ScnSideMenu/Plugins/ScnPage.Plugin/Src/BaseContentUI.cs: -------------------------------------------------------------------------------- 1 | namespace ScnPage.Plugin.Forms 2 | { 3 | public class BaseContentUI 4 | { 5 | public BaseContentUI() 6 | { 7 | title = new BaseLanguageStrings(); 8 | txtLoading = new BaseLanguageStrings("loading..."); 9 | txtAwait = new BaseLanguageStrings("wait..."); 10 | } 11 | 12 | public BaseLanguageStrings title; 13 | public string Title => title.Current; 14 | 15 | public BaseLanguageStrings txtLoading; 16 | public string TxtLoading => txtLoading.Current; 17 | 18 | public BaseLanguageStrings txtAwait; 19 | public string TxtAwait => txtAwait.Current; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /ScnSideMenu/Plugins/ScnPage.Plugin/Src/BaseLanguageStrings.cs: -------------------------------------------------------------------------------- 1 | namespace ScnPage.Plugin.Forms 2 | { 3 | public class BaseLanguageStrings 4 | { 5 | public BaseLanguageStrings(string enUs = "") 6 | { 7 | EnUsValue = enUs; 8 | } 9 | 10 | public string EnUsValue { get; set; } 11 | 12 | public string Current => GetCurrentLangString(); 13 | 14 | public virtual string GetCurrentLangString() 15 | { 16 | return EnUsValue; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /ScnSideMenu/Plugins/ScnPage.Plugin/Src/BaseViewModel.cs: -------------------------------------------------------------------------------- 1 | using ScnPage.Plugin.Forms.Helpers; 2 | using System; 3 | 4 | namespace ScnPage.Plugin.Forms 5 | { 6 | public class BaseViewModel : NotifyPropertyChanged 7 | { 8 | public BaseContentPage ViewPage { get; private set; } 9 | 10 | public BaseContentUI ContentUI { get; private set; } 11 | 12 | #region IsLoading - property 13 | private bool _isLoading; 14 | public bool IsLoading 15 | { 16 | get => _isLoading; 17 | set 18 | { 19 | _isLoading = value; 20 | IsNotLoading = !value; 21 | 22 | OnPropertyChanged(); 23 | } 24 | } 25 | #endregion 26 | 27 | #region IsNotLoading - property 28 | private bool _isNotLoading = true; 29 | public bool IsNotLoading 30 | { 31 | get => _isNotLoading; 32 | set 33 | { 34 | _isNotLoading = value; 35 | OnPropertyChanged(); 36 | } 37 | } 38 | #endregion 39 | 40 | //Show loading layout and ban custom layout 41 | #region IsLoadActivity - property 42 | private bool _isLoadActivity; 43 | public bool IsLoadActivity 44 | { 45 | get => _isLoadActivity; 46 | set 47 | { 48 | IsLoading = value; 49 | 50 | _isLoadActivity = value; 51 | OnPropertyChanged(); 52 | } 53 | } 54 | #endregion 55 | 56 | //Show loading bar in action bar 57 | #region IsLoadBusy - property 58 | private bool _isLoadBusy; 59 | public bool IsLoadBusy 60 | { 61 | get => _isLoadBusy; 62 | set 63 | { 64 | IsLoading = value; 65 | 66 | _isLoadBusy = value; 67 | OnPropertyChanged(); 68 | } 69 | } 70 | #endregion 71 | 72 | #region Title - property 73 | private string _title; 74 | public string Title 75 | { 76 | get => _title; 77 | set 78 | { 79 | _title = value?.ToUpper(); 80 | OnPropertyChanged(); 81 | } 82 | } 83 | #endregion 84 | 85 | public void SetPage(BaseContentPage basePage, BaseContentUI baseContentUI) 86 | { 87 | ViewPage = basePage; 88 | ContentUI = baseContentUI; 89 | 90 | Title = ContentUI.Title; 91 | 92 | InitProperty(); 93 | 94 | InitLifecycle(); 95 | } 96 | 97 | protected virtual void InitProperty() 98 | { 99 | } 100 | 101 | protected void InitLifecycle() 102 | { 103 | } 104 | 105 | protected virtual void OnResuming(object sender, EventArgs e) 106 | { 107 | } 108 | 109 | protected virtual void OnSuspending(object sender, EventArgs e) 110 | { 111 | } 112 | } 113 | } 114 | 115 | -------------------------------------------------------------------------------- /ScnSideMenu/Plugins/ScnPage.Plugin/Src/Helpers/NotifyPropertyChanged.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | using System.Runtime.CompilerServices; 3 | 4 | namespace ScnPage.Plugin.Forms.Helpers 5 | { 6 | public class NotifyPropertyChanged : INotifyPropertyChanged 7 | { 8 | #region PropertyChanged pattern 9 | public event PropertyChangedEventHandler PropertyChanged; 10 | 11 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) 12 | { 13 | var handler = PropertyChanged; 14 | handler?.Invoke(this, new PropertyChangedEventArgs(propertyName)); 15 | } 16 | #endregion 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ScnSideMenu/Plugins/ScnPage.Plugin/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Assets/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "AndroidAsset". 3 | 4 | These files will be deployed with you package and will be accessible using Android's 5 | AssetManager, like this: 6 | 7 | public class ReadAsset : Activity 8 | { 9 | protected override void OnCreate (Bundle bundle) 10 | { 11 | base.OnCreate (bundle); 12 | 13 | InputStream input = Assets.Open ("my_asset.txt"); 14 | } 15 | } 16 | 17 | Additionally, some Android functions will automatically load asset files: 18 | 19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); 20 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.App; 4 | using Android.Content.PM; 5 | using Android.Runtime; 6 | using Android.Views; 7 | using Android.Widget; 8 | using Android.OS; 9 | 10 | using ScnViewGestures.Plugin.Forms.Droid.Renderers; 11 | 12 | namespace SimpleSideMenu.Droid 13 | { 14 | [Activity (Label = "SimpleSideMenu", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] 15 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity 16 | { 17 | protected override void OnCreate (Bundle bundle) 18 | { 19 | base.OnCreate (bundle); 20 | 21 | global::Xamarin.Forms.Forms.Init (this, bundle); 22 | ViewGesturesRenderer.Init(); 23 | 24 | LoadApplication (new SimpleSideMenu.App ()); 25 | } 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using Android.App; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("SimpleSideMenu.Droid")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("SimpleSideMenu.Droid")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: ComVisible(false)] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | 32 | // Add some common permissions, these can be removed if not needed 33 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)] 34 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] 35 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Resources/AboutResources.txt: -------------------------------------------------------------------------------- 1 | Images, layout descriptions, binary blobs and string dictionaries can be included 2 | in your application as resource files. Various Android APIs are designed to 3 | operate on the resource IDs instead of dealing with images, strings or binary blobs 4 | directly. 5 | 6 | For example, a sample Android app that contains a user interface layout (main.xml), 7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) 8 | would keep its resources in the "Resources" directory of the application: 9 | 10 | Resources/ 11 | drawable-hdpi/ 12 | icon.png 13 | 14 | drawable-ldpi/ 15 | icon.png 16 | 17 | drawable-mdpi/ 18 | icon.png 19 | 20 | layout/ 21 | main.xml 22 | 23 | values/ 24 | strings.xml 25 | 26 | In order to get the build system to recognize Android resources, set the build action to 27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 28 | instead operate on resource IDs. When you compile an Android application that uses resources, 29 | the build system will package the resources for distribution and generate a class called 30 | "Resource" that contains the tokens for each one of the resources included. For example, 31 | for the above Resources layout, this is what the Resource class would expose: 32 | 33 | public class Resource { 34 | public class drawable { 35 | public const int icon = 0x123; 36 | } 37 | 38 | public class layout { 39 | public const int main = 0x456; 40 | } 41 | 42 | public class strings { 43 | public const int first_string = 0xabc; 44 | public const int second_string = 0xbcd; 45 | } 46 | } 47 | 48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main 49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first 50 | string in the dictionary file values/strings.xml. 51 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Resources/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Resources/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Resources/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Resources/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Resources/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Resources/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Resources/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/Resources/drawable/icon.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/SimpleSideMenu.Droid.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | 8.0.30703 8 | 2.0 9 | {D9E8714E-0562-479B-ACAA-75155E032EC6} 10 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 11 | Library 12 | Properties 13 | SimpleSideMenu.Droid 14 | SimpleSideMenu.Droid 15 | 512 16 | true 17 | Resources\Resource.Designer.cs 18 | Off 19 | Properties\AndroidManifest.xml 20 | armeabi,armeabi-v7a,x86 21 | 22 | 23 | 24 | 25 | v9.0 26 | 27 | 28 | 29 | 30 | true 31 | full 32 | false 33 | bin\Debug\ 34 | DEBUG;TRACE 35 | prompt 36 | 4 37 | True 38 | None 39 | 40 | 41 | 42 | 43 | pdbonly 44 | true 45 | bin\Release\ 46 | TRACE 47 | prompt 48 | 4 49 | False 50 | SdkOnly 51 | 52 | 53 | 54 | ..\..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\MonoAndroid10\FormsViewGroup.dll 55 | 56 | 57 | 58 | 59 | 60 | ..\..\..\packages\ScnViewGestures.Forms.1.5.0\lib\MonoAndroid10\ScnViewGestures.dll 61 | 62 | 63 | ..\..\..\packages\ScnViewGestures.Forms.1.5.0\lib\MonoAndroid10\ScnViewGestures.Droid.dll 64 | 65 | 66 | 67 | 68 | 69 | 70 | ..\..\..\packages\Xamarin.Android.Arch.Core.Common.1.1.1.1\lib\monoandroid90\Xamarin.Android.Arch.Core.Common.dll 71 | 72 | 73 | ..\..\..\packages\Xamarin.Android.Arch.Core.Runtime.1.1.1.1\lib\monoandroid90\Xamarin.Android.Arch.Core.Runtime.dll 74 | 75 | 76 | ..\..\..\packages\Xamarin.Android.Arch.Lifecycle.Common.1.1.1.1\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.Common.dll 77 | 78 | 79 | ..\..\..\packages\Xamarin.Android.Arch.Lifecycle.LiveData.1.1.1.1\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.LiveData.dll 80 | 81 | 82 | ..\..\..\packages\Xamarin.Android.Arch.Lifecycle.LiveData.Core.1.1.1.1\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.LiveData.Core.dll 83 | 84 | 85 | ..\..\..\packages\Xamarin.Android.Arch.Lifecycle.Runtime.1.1.1.1\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.Runtime.dll 86 | 87 | 88 | ..\..\..\packages\Xamarin.Android.Arch.Lifecycle.ViewModel.1.1.1.1\lib\monoandroid90\Xamarin.Android.Arch.Lifecycle.ViewModel.dll 89 | 90 | 91 | ..\..\..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Animated.Vector.Drawable.dll 92 | 93 | 94 | ..\..\..\packages\Xamarin.Android.Support.Annotations.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Annotations.dll 95 | 96 | 97 | ..\..\..\packages\Xamarin.Android.Support.AsyncLayoutInflater.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.AsyncLayoutInflater.dll 98 | 99 | 100 | ..\..\..\packages\Xamarin.Android.Support.Collections.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Collections.dll 101 | 102 | 103 | ..\..\..\packages\Xamarin.Android.Support.Compat.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Compat.dll 104 | 105 | 106 | ..\..\..\packages\Xamarin.Android.Support.CoordinaterLayout.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.CoordinaterLayout.dll 107 | 108 | 109 | ..\..\..\packages\Xamarin.Android.Support.Core.UI.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Core.UI.dll 110 | 111 | 112 | ..\..\..\packages\Xamarin.Android.Support.Core.Utils.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Core.Utils.dll 113 | 114 | 115 | ..\..\..\packages\Xamarin.Android.Support.CursorAdapter.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.CursorAdapter.dll 116 | 117 | 118 | ..\..\..\packages\Xamarin.Android.Support.CustomView.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.CustomView.dll 119 | 120 | 121 | ..\..\..\packages\Xamarin.Android.Support.Design.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Design.dll 122 | 123 | 124 | ..\..\..\packages\Xamarin.Android.Support.DocumentFile.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.DocumentFile.dll 125 | 126 | 127 | ..\..\..\packages\Xamarin.Android.Support.DrawerLayout.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.DrawerLayout.dll 128 | 129 | 130 | ..\..\..\packages\Xamarin.Android.Support.Fragment.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Fragment.dll 131 | 132 | 133 | ..\..\..\packages\Xamarin.Android.Support.Interpolator.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Interpolator.dll 134 | 135 | 136 | ..\..\..\packages\Xamarin.Android.Support.Loader.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Loader.dll 137 | 138 | 139 | ..\..\..\packages\Xamarin.Android.Support.LocalBroadcastManager.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.LocalBroadcastManager.dll 140 | 141 | 142 | ..\..\..\packages\Xamarin.Android.Support.Media.Compat.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Media.Compat.dll 143 | 144 | 145 | ..\..\..\packages\Xamarin.Android.Support.Print.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Print.dll 146 | 147 | 148 | ..\..\..\packages\Xamarin.Android.Support.SlidingPaneLayout.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.SlidingPaneLayout.dll 149 | 150 | 151 | ..\..\..\packages\Xamarin.Android.Support.SwipeRefreshLayout.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.SwipeRefreshLayout.dll 152 | 153 | 154 | ..\..\..\packages\Xamarin.Android.Support.Transition.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Transition.dll 155 | 156 | 157 | ..\..\..\packages\Xamarin.Android.Support.v4.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.v4.dll 158 | 159 | 160 | ..\..\..\packages\Xamarin.Android.Support.v7.AppCompat.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.v7.AppCompat.dll 161 | 162 | 163 | ..\..\..\packages\Xamarin.Android.Support.v7.CardView.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.v7.CardView.dll 164 | 165 | 166 | ..\..\..\packages\Xamarin.Android.Support.v7.MediaRouter.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.v7.MediaRouter.dll 167 | 168 | 169 | ..\..\..\packages\Xamarin.Android.Support.v7.Palette.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.v7.Palette.dll 170 | 171 | 172 | ..\..\..\packages\Xamarin.Android.Support.v7.RecyclerView.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.v7.RecyclerView.dll 173 | 174 | 175 | ..\..\..\packages\Xamarin.Android.Support.Vector.Drawable.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.Vector.Drawable.dll 176 | 177 | 178 | ..\..\..\packages\Xamarin.Android.Support.VersionedParcelable.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.VersionedParcelable.dll 179 | 180 | 181 | ..\..\..\packages\Xamarin.Android.Support.ViewPager.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.ViewPager.dll 182 | 183 | 184 | ..\..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\MonoAndroid10\Xamarin.Forms.Core.dll 185 | 186 | 187 | ..\..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\MonoAndroid10\Xamarin.Forms.Platform.dll 188 | 189 | 190 | ..\..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll 191 | 192 | 193 | ..\..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | {67f9d3a8-f71e-4428-913f-c37ae82cdb24} 218 | ScnPage.Plugin 219 | 220 | 221 | {f6e545a3-ef5d-4207-8414-55d40bd449e2} 222 | ScnSideMenu 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 318 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.Droid/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | using ScnViewGestures.Plugin.Forms.iOS.Renderers; 9 | 10 | namespace SimpleSideMenu.iOS 11 | { 12 | // The UIApplicationDelegate for the application. This class is responsible for launching the 13 | // User Interface of the application, as well as listening (and optionally responding) to 14 | // application events from iOS. 15 | [Register("AppDelegate")] 16 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 17 | { 18 | // 19 | // This method is invoked when the application has loaded and is ready to run. In this 20 | // method you should instantiate the window, load the UI into it and then make the window 21 | // visible. 22 | // 23 | // You have 17 seconds to return from this method, or iOS will terminate your application. 24 | // 25 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) 26 | { 27 | global::Xamarin.Forms.Forms.Init (); 28 | ViewGesturesRenderer.Init(); 29 | 30 | LoadApplication (new SimpleSideMenu.App ()); 31 | 32 | return base.FinishedLaunching (app, options); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIDeviceFamily 6 | 7 | 1 8 | 2 9 | 10 | UISupportedInterfaceOrientations 11 | 12 | UIInterfaceOrientationPortrait 13 | UIInterfaceOrientationLandscapeLeft 14 | UIInterfaceOrientationLandscapeRight 15 | 16 | UISupportedInterfaceOrientations~ipad 17 | 18 | UIInterfaceOrientationPortrait 19 | UIInterfaceOrientationPortraitUpsideDown 20 | UIInterfaceOrientationLandscapeLeft 21 | UIInterfaceOrientationLandscapeRight 22 | 23 | MinimumOSVersion 24 | 8.0 25 | CFBundleDisplayName 26 | SimpleSideMenu 27 | CFBundleIdentifier 28 | com.yourcompany.SimpleSideMenu 29 | CFBundleVersion 30 | 1.0 31 | CFBundleIconFiles 32 | 33 | Icon-60@2x.png 34 | Icon-76.png 35 | Icon-76@2x.png 36 | Default.png 37 | Default@2x.png 38 | Default-568h@2x.png 39 | Default-Portrait.png 40 | Default-Portrait@2x.png 41 | Icon-Small-40.png 42 | Icon-Small-40@2x.png 43 | Icon-Small.png 44 | Icon-Small@2x.png 45 | 46 | UILaunchStoryboardName 47 | LaunchScreen.storyboard 48 | CFBundleShortVersionString 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace SimpleSideMenu.iOS 9 | { 10 | public class Application 11 | { 12 | // This is the main entry point of the application. 13 | static void Main(string[] args) 14 | { 15 | // if you want to use a different Application Delegate class from "AppDelegate" 16 | // you can specify it here. 17 | UIApplication.Main(args, null, "AppDelegate"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SimpleSideMenu.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SimpleSideMenu.iOS")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default-568h@2x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default-Portrait.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default-Portrait@2x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Default@2x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-60@2x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-60@3x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-76.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-76@2x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small-40.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small@2x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/Icon-Small@3x.png -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/Resources/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/SimpleSideMenu.iOS.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | iPhoneSimulator 7 | 8.0.30703 8 | 2.0 9 | {BC22C60E-4D9F-4255-BB49-680016D76326} 10 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 11 | Exe 12 | SimpleSideMenu.iOS 13 | Resources 14 | SimpleSideMenuiOS 15 | 16 | 17 | 18 | 19 | true 20 | full 21 | false 22 | bin\iPhoneSimulator\Debug 23 | DEBUG 24 | prompt 25 | 4 26 | false 27 | i386, x86_64 28 | None 29 | true 30 | iPhone Developer 31 | 32 | 33 | none 34 | true 35 | bin\iPhoneSimulator\Release 36 | prompt 37 | 4 38 | None 39 | i386, x86_64 40 | false 41 | Entitlements.plist 42 | 43 | 44 | true 45 | full 46 | false 47 | bin\iPhone\Debug 48 | DEBUG 49 | prompt 50 | 4 51 | false 52 | ARMv7, ARM64 53 | iPhone Developer 54 | True 55 | Entitlements.plist 56 | 10.0 57 | None 58 | False 59 | False 60 | False 61 | False 62 | False 63 | False 64 | False 65 | True 66 | Default 67 | HttpClientHandler 68 | False 69 | False 70 | 71 | 72 | 73 | none 74 | true 75 | bin\iPhone\Release 76 | prompt 77 | 4 78 | ARMv7, ARM64 79 | false 80 | iPhone Developer 81 | Entitlements.plist 82 | 83 | 84 | none 85 | True 86 | bin\iPhone\Ad-Hoc 87 | prompt 88 | 4 89 | False 90 | ARMv7, ARM64 91 | True 92 | Automatic:AdHoc 93 | iPhone Distribution 94 | Entitlements.plist 95 | 96 | 97 | none 98 | True 99 | bin\iPhone\AppStore 100 | prompt 101 | 4 102 | False 103 | ARMv7, ARM64 104 | Automatic:AppStore 105 | iPhone Distribution 106 | Entitlements.plist 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | Designer 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | ..\..\..\packages\ScnViewGestures.Forms.1.5.0\lib\Xamarin.iOS10\ScnViewGestures.dll 141 | 142 | 143 | ..\..\..\packages\ScnViewGestures.Forms.1.5.0\lib\Xamarin.iOS10\ScnViewGestures.iOS.dll 144 | 145 | 146 | 147 | 148 | 149 | ..\..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll 150 | 151 | 152 | ..\..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll 153 | 154 | 155 | ..\..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll 156 | 157 | 158 | ..\..\..\packages\Xamarin.Forms.3.4.0.1009999\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll 159 | 160 | 161 | 162 | 163 | 164 | {67f9d3a8-f71e-4428-913f-c37ae82cdb24} 165 | ScnPage.Plugin 166 | 167 | 168 | {f6e545a3-ef5d-4207-8414-55d40bd449e2} 169 | ScnSideMenu 170 | 171 | 172 | 173 | 174 | 175 | 176 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 177 | 178 | 179 | 180 | 181 | 182 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/iTunesArtwork: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/iTunesArtwork -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/iTunesArtwork@2x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/iTunesArtwork@2x -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu.iOS/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu/App.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using Xamarin.Forms; 7 | 8 | namespace SimpleSideMenu 9 | { 10 | public class App : Application 11 | { 12 | public App () 13 | { 14 | MainPage = new SimpleSideMenu.Views.MainPage(); 15 | } 16 | 17 | protected override void OnStart () 18 | { 19 | // Handle when your app starts 20 | } 21 | 22 | protected override void OnSleep () 23 | { 24 | // Handle when your app sleeps 25 | } 26 | 27 | protected override void OnResume () 28 | { 29 | // Handle when your app resumes 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu/SimpleSideMenu.projitems: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | true 6 | 90ad55bc-fc20-4b80-a265-0ec842a94573 7 | 8 | 9 | SimpleSideMenu 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu/SimpleSideMenu.shproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 90ad55bc-fc20-4b80-a265-0ec842a94573 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /ScnSideMenu/Sample/SimpleSideMenu/SimpleSideMenu/Views/MainPage.cs: -------------------------------------------------------------------------------- 1 | using ScnSideMenu.Forms; 2 | using Xamarin.Forms; 3 | 4 | namespace SimpleSideMenu.Views 5 | { 6 | public class MainPage : SideBarPage 7 | { 8 | public MainPage() 9 | : base(PanelSetEnum.psLeftRight) 10 | { 11 | #region left menu 12 | var btnLeftMenuShow = new Button 13 | { 14 | Text = "Left menu show" 15 | }; 16 | btnLeftMenuShow.Clicked += (s, e) => IsShowLeftPanel = !IsShowLeftPanel; 17 | 18 | ContentLayout.Children.Add(btnLeftMenuShow); 19 | 20 | LeftPanel.BackgroundColor = Color.LawnGreen; 21 | LeftPanel.Content = new StackLayout 22 | { 23 | Padding = 32, 24 | Children = 25 | { 26 | new Label 27 | { 28 | Text = "left menu", 29 | TextColor = Color.Black 30 | } 31 | } 32 | }; 33 | #endregion 34 | 35 | #region right menu 36 | RightPanelWidthRequest = 250; 37 | 38 | var btnRightMenuShow = new Button 39 | { 40 | Text = "Right menu show" 41 | }; 42 | btnRightMenuShow.Clicked += (s, e) => IsShowRightPanel = !IsShowRightPanel; 43 | 44 | ContentLayout.Children.Add(btnRightMenuShow); 45 | 46 | var rightPanelContent = new StackLayout 47 | { 48 | Padding = 32 49 | }; 50 | 51 | for (var i = 0; i < 100; i++) 52 | { 53 | var view = CreateComplexView($"right menu {i}"); 54 | rightPanelContent.Children.Add(view); 55 | } 56 | 57 | RightPanel.BackgroundColor = Color.Blue; 58 | RightPanel.Content = rightPanelContent; 59 | #endregion 60 | 61 | //set right swipe reaction panel to be wider 62 | RightSwipeSize = 20; 63 | 64 | //set transparent spaces (to skip nav bar, or bottom bar) when panel is swiped 65 | TransparentSize = new Thickness(50, 0, 50, 20); 66 | } 67 | 68 | private static View CreateComplexView(string text) 69 | { 70 | return new StackLayout 71 | { 72 | Orientation = StackOrientation.Horizontal, 73 | HorizontalOptions = LayoutOptions.FillAndExpand, 74 | Children = 75 | { 76 | new Label 77 | { 78 | HorizontalOptions = LayoutOptions.FillAndExpand, 79 | Text = text 80 | }, 81 | new Switch 82 | { 83 | HorizontalOptions = LayoutOptions.End 84 | } 85 | } 86 | }; 87 | } 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /ScnSideMenu/ScnSideMenu.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ScnSideMenu.Forms 5 | 1.5.2 6 | ScienceSoft 7 | ScienceSoft 8 | https://github.com/ScienceSoft-Inc/ScnSideMenu 9 | false 10 | Xamarin.Forms side menu control (targeted at Android & iOS) 11 | ScienceSoft inc. 12 | xamarin, xamarin.forms, menu sidebar, android, ios 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /ScnSideMenu/ScnSideMenu.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27703.2042 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{4AA1AFAF-AD2A-4590-A201-485B7649369E}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ScnPage.Plugin", "ScnPage.Plugin", "{C48CD5F3-86E5-479B-A8D8-1EC62439380C}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScnPage.Plugin", "Plugins\ScnPage.Plugin\ScnPage.Plugin.csproj", "{67F9D3A8-F71E-4428-913F-C37AE82CDB24}" 11 | EndProject 12 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sample", "Sample", "{C0EE6275-D39C-4350-8906-09CA88A5B263}" 13 | EndProject 14 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SimpleSideMenu", "SimpleSideMenu", "{6A26FF62-49FA-491A-B687-39C790EFE2BC}" 15 | EndProject 16 | Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "SimpleSideMenu", "Sample\SimpleSideMenu\SimpleSideMenu\SimpleSideMenu.shproj", "{90AD55BC-FC20-4B80-A265-0EC842A94573}" 17 | EndProject 18 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleSideMenu.iOS", "Sample\SimpleSideMenu\SimpleSideMenu.iOS\SimpleSideMenu.iOS.csproj", "{BC22C60E-4D9F-4255-BB49-680016D76326}" 19 | EndProject 20 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleSideMenu.Droid", "Sample\SimpleSideMenu\SimpleSideMenu.Droid\SimpleSideMenu.Droid.csproj", "{D9E8714E-0562-479B-ACAA-75155E032EC6}" 21 | EndProject 22 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScnSideMenu", "ScnSideMenu\ScnSideMenu.csproj", "{F6E545A3-EF5D-4207-8414-55D40BD449E2}" 23 | EndProject 24 | Global 25 | GlobalSection(SharedMSBuildProjectFiles) = preSolution 26 | Sample\SimpleSideMenu\SimpleSideMenu\SimpleSideMenu.projitems*{90ad55bc-fc20-4b80-a265-0ec842a94573}*SharedItemsImports = 13 27 | Sample\SimpleSideMenu\SimpleSideMenu\SimpleSideMenu.projitems*{bc22c60e-4d9f-4255-bb49-680016d76326}*SharedItemsImports = 4 28 | Sample\SimpleSideMenu\SimpleSideMenu\SimpleSideMenu.projitems*{d9e8714e-0562-479b-acaa-75155e032ec6}*SharedItemsImports = 4 29 | EndGlobalSection 30 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 31 | Ad-Hoc|Any CPU = Ad-Hoc|Any CPU 32 | Ad-Hoc|ARM = Ad-Hoc|ARM 33 | Ad-Hoc|iPhone = Ad-Hoc|iPhone 34 | Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator 35 | Ad-Hoc|Mixed Platforms = Ad-Hoc|Mixed Platforms 36 | Ad-Hoc|x86 = Ad-Hoc|x86 37 | AppStore|Any CPU = AppStore|Any CPU 38 | AppStore|ARM = AppStore|ARM 39 | AppStore|iPhone = AppStore|iPhone 40 | AppStore|iPhoneSimulator = AppStore|iPhoneSimulator 41 | AppStore|Mixed Platforms = AppStore|Mixed Platforms 42 | AppStore|x86 = AppStore|x86 43 | Debug|Any CPU = Debug|Any CPU 44 | Debug|ARM = Debug|ARM 45 | Debug|iPhone = Debug|iPhone 46 | Debug|iPhoneSimulator = Debug|iPhoneSimulator 47 | Debug|Mixed Platforms = Debug|Mixed Platforms 48 | Debug|x86 = Debug|x86 49 | Release|Any CPU = Release|Any CPU 50 | Release|ARM = Release|ARM 51 | Release|iPhone = Release|iPhone 52 | Release|iPhoneSimulator = Release|iPhoneSimulator 53 | Release|Mixed Platforms = Release|Mixed Platforms 54 | Release|x86 = Release|x86 55 | EndGlobalSection 56 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 57 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU 58 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU 59 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU 60 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU 61 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU 62 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Ad-Hoc|Mixed Platforms.ActiveCfg = Release|Any CPU 63 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Ad-Hoc|Mixed Platforms.Build.0 = Release|Any CPU 64 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU 65 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.AppStore|Any CPU.ActiveCfg = Release|Any CPU 66 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.AppStore|Any CPU.Build.0 = Release|Any CPU 67 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.AppStore|ARM.ActiveCfg = Release|Any CPU 68 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.AppStore|iPhone.ActiveCfg = Release|Any CPU 69 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU 70 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.AppStore|Mixed Platforms.ActiveCfg = Release|Any CPU 71 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.AppStore|Mixed Platforms.Build.0 = Release|Any CPU 72 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.AppStore|x86.ActiveCfg = Release|Any CPU 73 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 74 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Any CPU.Build.0 = Debug|Any CPU 75 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|ARM.ActiveCfg = Debug|Any CPU 76 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|iPhone.ActiveCfg = Debug|Any CPU 77 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 78 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 79 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 80 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 81 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|x86.ActiveCfg = Debug|Any CPU 82 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Any CPU.ActiveCfg = Release|Any CPU 83 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Any CPU.Build.0 = Release|Any CPU 84 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|ARM.ActiveCfg = Release|Any CPU 85 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|iPhone.ActiveCfg = Release|Any CPU 86 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 87 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 88 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Mixed Platforms.Build.0 = Release|Any CPU 89 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|x86.ActiveCfg = Release|Any CPU 90 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone 91 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Ad-Hoc|ARM.ActiveCfg = Ad-Hoc|iPhone 92 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone 93 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone 94 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator 95 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator 96 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Ad-Hoc|Mixed Platforms.ActiveCfg = Ad-Hoc|iPhone 97 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Ad-Hoc|Mixed Platforms.Build.0 = Ad-Hoc|iPhone 98 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Ad-Hoc|x86.ActiveCfg = Ad-Hoc|iPhone 99 | {BC22C60E-4D9F-4255-BB49-680016D76326}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone 100 | {BC22C60E-4D9F-4255-BB49-680016D76326}.AppStore|ARM.ActiveCfg = AppStore|iPhone 101 | {BC22C60E-4D9F-4255-BB49-680016D76326}.AppStore|iPhone.ActiveCfg = AppStore|iPhone 102 | {BC22C60E-4D9F-4255-BB49-680016D76326}.AppStore|iPhone.Build.0 = AppStore|iPhone 103 | {BC22C60E-4D9F-4255-BB49-680016D76326}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator 104 | {BC22C60E-4D9F-4255-BB49-680016D76326}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator 105 | {BC22C60E-4D9F-4255-BB49-680016D76326}.AppStore|Mixed Platforms.ActiveCfg = AppStore|iPhone 106 | {BC22C60E-4D9F-4255-BB49-680016D76326}.AppStore|Mixed Platforms.Build.0 = AppStore|iPhone 107 | {BC22C60E-4D9F-4255-BB49-680016D76326}.AppStore|x86.ActiveCfg = AppStore|iPhone 108 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator 109 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Debug|ARM.ActiveCfg = Debug|iPhone 110 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Debug|iPhone.ActiveCfg = Debug|iPhone 111 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Debug|iPhone.Build.0 = Debug|iPhone 112 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator 113 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator 114 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Debug|Mixed Platforms.ActiveCfg = Debug|iPhone 115 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Debug|Mixed Platforms.Build.0 = Debug|iPhone 116 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Debug|x86.ActiveCfg = Debug|iPhone 117 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Release|Any CPU.ActiveCfg = Release|iPhone 118 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Release|ARM.ActiveCfg = Release|iPhone 119 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Release|iPhone.ActiveCfg = Release|iPhone 120 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Release|iPhone.Build.0 = Release|iPhone 121 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator 122 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator 123 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Release|Mixed Platforms.ActiveCfg = Release|iPhone 124 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Release|Mixed Platforms.Build.0 = Release|iPhone 125 | {BC22C60E-4D9F-4255-BB49-680016D76326}.Release|x86.ActiveCfg = Release|iPhone 126 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU 127 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU 128 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU 129 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU 130 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU 131 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU 132 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|Mixed Platforms.ActiveCfg = Release|Any CPU 133 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|Mixed Platforms.Build.0 = Release|Any CPU 134 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|Mixed Platforms.Deploy.0 = Release|Any CPU 135 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU 136 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|Any CPU.ActiveCfg = Release|Any CPU 137 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|Any CPU.Build.0 = Release|Any CPU 138 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|Any CPU.Deploy.0 = Release|Any CPU 139 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|ARM.ActiveCfg = Release|Any CPU 140 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|iPhone.ActiveCfg = Release|Any CPU 141 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU 142 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|Mixed Platforms.ActiveCfg = Release|Any CPU 143 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|Mixed Platforms.Build.0 = Release|Any CPU 144 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|Mixed Platforms.Deploy.0 = Release|Any CPU 145 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.AppStore|x86.ActiveCfg = Release|Any CPU 146 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 147 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|Any CPU.Build.0 = Debug|Any CPU 148 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|Any CPU.Deploy.0 = Debug|Any CPU 149 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|ARM.ActiveCfg = Debug|Any CPU 150 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|iPhone.ActiveCfg = Debug|Any CPU 151 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 152 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 153 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 154 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU 155 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Debug|x86.ActiveCfg = Debug|Any CPU 156 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|Any CPU.ActiveCfg = Release|Any CPU 157 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|Any CPU.Build.0 = Release|Any CPU 158 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|Any CPU.Deploy.0 = Release|Any CPU 159 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|ARM.ActiveCfg = Release|Any CPU 160 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|iPhone.ActiveCfg = Release|Any CPU 161 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 162 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 163 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|Mixed Platforms.Build.0 = Release|Any CPU 164 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU 165 | {D9E8714E-0562-479B-ACAA-75155E032EC6}.Release|x86.ActiveCfg = Release|Any CPU 166 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU 167 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU 168 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU 169 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU 170 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU 171 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Ad-Hoc|Mixed Platforms.ActiveCfg = Release|Any CPU 172 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Ad-Hoc|Mixed Platforms.Build.0 = Release|Any CPU 173 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU 174 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.AppStore|Any CPU.ActiveCfg = Release|Any CPU 175 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.AppStore|Any CPU.Build.0 = Release|Any CPU 176 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.AppStore|ARM.ActiveCfg = Release|Any CPU 177 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.AppStore|iPhone.ActiveCfg = Release|Any CPU 178 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU 179 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.AppStore|Mixed Platforms.ActiveCfg = Release|Any CPU 180 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.AppStore|Mixed Platforms.Build.0 = Release|Any CPU 181 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.AppStore|x86.ActiveCfg = Release|Any CPU 182 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 183 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Debug|Any CPU.Build.0 = Debug|Any CPU 184 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Debug|ARM.ActiveCfg = Debug|Any CPU 185 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Debug|iPhone.ActiveCfg = Debug|Any CPU 186 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 187 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 188 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 189 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 190 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Debug|x86.ActiveCfg = Debug|Any CPU 191 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Release|Any CPU.ActiveCfg = Release|Any CPU 192 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Release|Any CPU.Build.0 = Release|Any CPU 193 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Release|ARM.ActiveCfg = Release|Any CPU 194 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Release|iPhone.ActiveCfg = Release|Any CPU 195 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 196 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 197 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Release|Mixed Platforms.Build.0 = Release|Any CPU 198 | {F6E545A3-EF5D-4207-8414-55D40BD449E2}.Release|x86.ActiveCfg = Release|Any CPU 199 | EndGlobalSection 200 | GlobalSection(SolutionProperties) = preSolution 201 | HideSolutionNode = FALSE 202 | EndGlobalSection 203 | GlobalSection(NestedProjects) = preSolution 204 | {C48CD5F3-86E5-479B-A8D8-1EC62439380C} = {4AA1AFAF-AD2A-4590-A201-485B7649369E} 205 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24} = {C48CD5F3-86E5-479B-A8D8-1EC62439380C} 206 | {6A26FF62-49FA-491A-B687-39C790EFE2BC} = {C0EE6275-D39C-4350-8906-09CA88A5B263} 207 | {90AD55BC-FC20-4B80-A265-0EC842A94573} = {6A26FF62-49FA-491A-B687-39C790EFE2BC} 208 | {BC22C60E-4D9F-4255-BB49-680016D76326} = {6A26FF62-49FA-491A-B687-39C790EFE2BC} 209 | {D9E8714E-0562-479B-ACAA-75155E032EC6} = {6A26FF62-49FA-491A-B687-39C790EFE2BC} 210 | EndGlobalSection 211 | GlobalSection(ExtensibilityGlobals) = postSolution 212 | SolutionGuid = {1CF178A4-A1D5-4596-8E3A-608C44883893} 213 | EndGlobalSection 214 | EndGlobal 215 | -------------------------------------------------------------------------------- /ScnSideMenu/ScnSideMenu/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | 4 | // General Information about an assembly is controlled through the following 5 | // set of attributes. Change these attribute values to modify the information 6 | // associated with an assembly. 7 | [assembly: AssemblyTitle("ScnSideMenu")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("ScnSideMenu")] 12 | [assembly: AssemblyCopyright("Copyright © 2014")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | [assembly: NeutralResourcesLanguage("en")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.5.2")] 28 | [assembly: AssemblyFileVersion("1.5.2")] 29 | -------------------------------------------------------------------------------- /ScnSideMenu/ScnSideMenu/ScnSideMenu.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 10.0 7 | Debug 8 | AnyCPU 9 | {F6E545A3-EF5D-4207-8414-55D40BD449E2} 10 | Library 11 | Properties 12 | ScnSideMenu 13 | ScnSideMenu 14 | v4.5 15 | Profile259 16 | 512 17 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 18 | 19 | 20 | 21 | 22 | true 23 | full 24 | false 25 | bin\Debug\ 26 | DEBUG;TRACE 27 | prompt 28 | 4 29 | 30 | 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | ..\packages\ScnViewGestures.Forms.1.5.0\lib\portable-net45+win8+wpa81+wp8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\ScnViewGestures.dll 48 | 49 | 50 | ..\packages\Xamarin.Forms.3.4.0.1009999\lib\netstandard1.0\Xamarin.Forms.Core.dll 51 | 52 | 53 | ..\packages\Xamarin.Forms.3.4.0.1009999\lib\netstandard1.0\Xamarin.Forms.Platform.dll 54 | 55 | 56 | ..\packages\Xamarin.Forms.3.4.0.1009999\lib\netstandard1.0\Xamarin.Forms.Xaml.dll 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | {67F9D3A8-F71E-4428-913F-C37AE82CDB24} 65 | ScnPage.Plugin 66 | 67 | 68 | 69 | 70 | 71 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 72 | 73 | 74 | 75 | 76 | 77 | 84 | -------------------------------------------------------------------------------- /ScnSideMenu/ScnSideMenu/Src/MenuItemData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ScnSideMenu.Forms 8 | { 9 | public class MenuItemData : NotifyPropertyChanged 10 | { 11 | #region Item icon 12 | private string icon = ""; 13 | public string Icon 14 | { 15 | get { return icon; } 16 | set 17 | { 18 | icon = value; 19 | OnPropertyChanged(); 20 | } 21 | } 22 | #endregion 23 | 24 | #region Item title 25 | private string title = ""; 26 | public string Title 27 | { 28 | get { return title; } 29 | set 30 | { 31 | title = value; 32 | OnPropertyChanged(); 33 | } 34 | } 35 | #endregion 36 | 37 | #region Item hint 38 | private string hint = ""; 39 | public string Hint 40 | { 41 | get { return hint; } 42 | set 43 | { 44 | hint = value; 45 | OnPropertyChanged(); 46 | } 47 | } 48 | #endregion 49 | 50 | #region Type page 51 | private Type typePage; 52 | public Type TypePage 53 | { 54 | get { return typePage; } 55 | set 56 | { 57 | typePage = value; 58 | OnPropertyChanged(); 59 | } 60 | } 61 | #endregion 62 | 63 | public string TypeName { get { return TypePage.ToString(); } } 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /ScnSideMenu/ScnSideMenu/Src/NotifyPropertyChanged.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Runtime.CompilerServices; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace ScnSideMenu.Forms 10 | { 11 | public class NotifyPropertyChanged : INotifyPropertyChanged 12 | { 13 | public event PropertyChangedEventHandler PropertyChanged; 14 | 15 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) 16 | { 17 | PropertyChangedEventHandler handler = PropertyChanged; 18 | if (handler != null) 19 | handler(this, new PropertyChangedEventArgs(propertyName)); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ScnSideMenu/ScnSideMenu/Src/SideBarPage.cs: -------------------------------------------------------------------------------- 1 | using ScnPage.Plugin.Forms; 2 | using ScnViewGestures.Plugin.Forms; 3 | using System; 4 | using Xamarin.Forms; 5 | 6 | namespace ScnSideMenu.Forms 7 | { 8 | [Flags] 9 | public enum PanelSetEnum 10 | { 11 | psNone = 0, 12 | psLeft = 1, 13 | psRight = 2, 14 | psLeftRight = psLeft | psRight 15 | } 16 | 17 | public enum PanelAlignEnum { paLeft, paRight } 18 | 19 | public class SideBarPage : BaseContentPage 20 | { 21 | public Thickness TransparentSize { get; set; } = new Thickness(50, 0); 22 | public int LeftSwipeSize { get; set; } = 10; 23 | public int RightSwipeSize { get; set; } = 10; 24 | public int SwipeReactionValue { get; set; } = 40; 25 | public uint SpeedAnimatePanel { get; set; } = 300; 26 | 27 | public double LeftPanelWidth { get; private set; } 28 | public double LeftPanelWidthRequest { get; set; } 29 | 30 | public double RightPanelWidth { get; private set; } 31 | public double RightPanelWidthRequest { get; set; } 32 | 33 | public SideBarPage(PanelSetEnum panelSet) 34 | { 35 | Init(panelSet); 36 | } 37 | 38 | public SideBarPage(Type viewModelType, Type contentUiType, PanelSetEnum panelSet) 39 | : base(viewModelType, contentUiType) 40 | { 41 | Init(panelSet); 42 | } 43 | 44 | private void Init(PanelSetEnum panelSet) 45 | { 46 | if (panelSet == PanelSetEnum.psLeft || panelSet == PanelSetEnum.psLeftRight) 47 | LeftPanel = new SideBarPanel(PanelAlignEnum.paLeft); 48 | 49 | if (panelSet == PanelSetEnum.psRight || panelSet == PanelSetEnum.psLeftRight) 50 | RightPanel = new SideBarPanel(PanelAlignEnum.paRight); 51 | 52 | Disappearing += (s, e) => ClosePanel(); 53 | } 54 | 55 | private static readonly object Locker = new object(); 56 | 57 | public enum SwipeMotionEnum { smNone, smLeft, smRight } 58 | 59 | protected SwipeMotionEnum SwipeGestureCatch = SwipeMotionEnum.smNone; 60 | 61 | #region Left panel 62 | private SideBarPanel _leftPanel; 63 | public SideBarPanel LeftPanel 64 | { 65 | get { return _leftPanel; } 66 | private set 67 | { 68 | _leftPanel = value; 69 | 70 | _leftPanel.Swipe += (sender, args) => IsShowLeftPanel = false; 71 | 72 | LayoutChanged += (sender, args) => IsShowLeftPanel = false; 73 | 74 | BaseLayout.Children.Add(_leftPanel, 75 | Constraint.RelativeToParent(parent => 76 | { 77 | LeftPanelWidth = LeftPanelWidthRequest > 0 78 | ? (LeftPanelWidthRequest > parent.Width - TransparentSize.Right 79 | ? parent.Width - TransparentSize.Right 80 | : LeftPanelWidthRequest) 81 | : parent.Width - TransparentSize.Right; 82 | 83 | return -LeftPanelWidth; 84 | }), 85 | Constraint.Constant(0), 86 | Constraint.RelativeToParent(parent => LeftPanelWidth), 87 | Constraint.RelativeToParent(parent => parent.Height)); 88 | 89 | // space near border for showing panel of a finger 90 | #region Swipe panel 91 | var swipePanel = new BoxView 92 | { 93 | BackgroundColor = Color.Transparent, 94 | InputTransparent = true 95 | }; 96 | 97 | _leftSwipeGesture = new ViewGestures 98 | { 99 | Content = swipePanel, 100 | BackgroundColor = Color.Transparent 101 | }; 102 | 103 | _leftSwipeGesture.Tap += (s, e) => ClosePanel(); 104 | 105 | _leftSwipeGesture.Drag += (s, e) => 106 | { 107 | IsShowRightPanel = false; 108 | 109 | if (e.DistanceX > SwipeReactionValue) 110 | SwipeGestureCatch = SwipeMotionEnum.smRight; 111 | else if (e.DistanceX < -SwipeReactionValue) 112 | SwipeGestureCatch = SwipeMotionEnum.smLeft; 113 | 114 | MoveLeftPanel(e.DistanceX); 115 | }; 116 | 117 | _leftSwipeGesture.TouchEnded += (s, e) => 118 | { 119 | switch (SwipeGestureCatch) 120 | { 121 | case SwipeMotionEnum.smLeft: 122 | IsShowLeftPanel = false; 123 | break; 124 | case SwipeMotionEnum.smRight: 125 | IsShowLeftPanel = true; 126 | break; 127 | default: 128 | IsShowLeftPanel = LeftPanel.TranslationX >= LeftPanelWidth / 2; 129 | break; 130 | } 131 | 132 | SwipeGestureCatch = SwipeMotionEnum.smNone; 133 | }; 134 | 135 | BaseLayout.Children.Add(_leftSwipeGesture, 136 | Constraint.Constant(0), 137 | Constraint.RelativeToView(_leftPanel, (parent, sibling) => TransparentSize.Top), 138 | Constraint.RelativeToView(_leftPanel, (parent, sibling) => LeftSwipeSize), 139 | Constraint.RelativeToView(_leftPanel, (parent, sibling) => sibling.Height - TransparentSize.VerticalThickness)); 140 | #endregion 141 | 142 | // space near panel under active page 143 | #region Transparent panel 144 | var leftTransparentPanel = new BoxView 145 | { 146 | BackgroundColor = Color.Transparent, 147 | InputTransparent = true 148 | }; 149 | 150 | _leftTransparentGestures = new ViewGestures 151 | { 152 | IsVisible = false, 153 | Content = leftTransparentPanel, 154 | BackgroundColor = Color.Transparent 155 | }; 156 | 157 | _leftTransparentGestures.SwipeRight += (s, e) => IsShowLeftPanel = false; 158 | _leftTransparentGestures.SwipeLeft += (s, e) => IsShowLeftPanel = false; 159 | _leftTransparentGestures.SwipeUp += (s, e) => IsShowLeftPanel = false; 160 | _leftTransparentGestures.SwipeDown += (s, e) => IsShowLeftPanel = false; 161 | _leftTransparentGestures.Tap += (s, e) => IsShowLeftPanel = false; 162 | 163 | BaseLayout.Children.Add(_leftTransparentGestures, 164 | Constraint.RelativeToView(_leftPanel, (parent, sibling) => sibling.Width + LeftSwipeSize), 165 | Constraint.RelativeToView(_leftPanel, (parent, sibling) => TransparentSize.Top), 166 | Constraint.RelativeToView(_leftPanel, (parent, sibling) => 167 | { 168 | var width = parent.Width - sibling.Width; 169 | return RightPanel == null ? width : width - RightSwipeSize; 170 | }), 171 | Constraint.RelativeToParent(parent => parent.Height - TransparentSize.VerticalThickness)); 172 | #endregion 173 | } 174 | } 175 | 176 | private ViewGestures _leftSwipeGesture; 177 | private ViewGestures _leftTransparentGestures; 178 | 179 | private bool _isShowLeftPanel; 180 | public bool IsShowLeftPanel 181 | { 182 | get 183 | { 184 | lock (Locker) 185 | return _isShowLeftPanel; 186 | } 187 | set 188 | { 189 | lock (Locker) 190 | { 191 | if (LeftPanel == null) 192 | return; 193 | 194 | _isShowLeftPanel = value; 195 | _leftTransparentGestures.IsVisible = value; 196 | 197 | if (value) 198 | ShowLeftPanel(); 199 | else 200 | HideLeftPanel(); 201 | 202 | OnPanelChanged(new SideBarEventArgs(value, PanelAlignEnum.paLeft)); 203 | } 204 | } 205 | } 206 | #endregion 207 | 208 | #region Right panel 209 | private SideBarPanel _rightPanel; 210 | public SideBarPanel RightPanel 211 | { 212 | get { return _rightPanel; } 213 | private set 214 | { 215 | _rightPanel = value; 216 | 217 | _rightPanel.Swipe += (sender, args) => IsShowRightPanel = false; 218 | 219 | LayoutChanged += (sender, args) => IsShowRightPanel = false; 220 | 221 | BaseLayout.Children.Add(_rightPanel, 222 | Constraint.RelativeToParent(parent => parent.Width), 223 | Constraint.Constant(0), 224 | Constraint.RelativeToParent(parent => 225 | { 226 | RightPanelWidth = RightPanelWidthRequest > 0 227 | ? (RightPanelWidthRequest > parent.Width - TransparentSize.Left 228 | ? parent.Width - TransparentSize.Left 229 | : RightPanelWidthRequest) 230 | : parent.Width - TransparentSize.Left; 231 | 232 | return RightPanelWidth; 233 | }), 234 | Constraint.RelativeToParent(parent => parent.Height)); 235 | 236 | // space near border for showing panel of a finger 237 | #region Swipe panel 238 | var swipePanel = new BoxView 239 | { 240 | BackgroundColor = Color.Transparent, 241 | InputTransparent = true 242 | }; 243 | 244 | _rightSwipeGesture = new ViewGestures 245 | { 246 | Content = swipePanel, 247 | BackgroundColor = Color.Transparent 248 | }; 249 | 250 | _rightSwipeGesture.Tap += (s, e) => ClosePanel(); 251 | 252 | _rightSwipeGesture.Drag += (s, e) => 253 | { 254 | IsShowLeftPanel = false; 255 | 256 | if (e.DistanceX > SwipeReactionValue) 257 | SwipeGestureCatch = SwipeMotionEnum.smRight; 258 | else if (e.DistanceX < -SwipeReactionValue) 259 | SwipeGestureCatch = SwipeMotionEnum.smLeft; 260 | 261 | MoveRightPanel(e.DistanceX); 262 | }; 263 | 264 | _rightSwipeGesture.TouchEnded += (s, e) => 265 | { 266 | switch (SwipeGestureCatch) 267 | { 268 | case SwipeMotionEnum.smLeft: 269 | IsShowRightPanel = true; 270 | break; 271 | case SwipeMotionEnum.smRight: 272 | IsShowRightPanel = false; 273 | break; 274 | default: 275 | IsShowRightPanel = RightPanel.TranslationX <= -RightPanelWidth / 2; 276 | break; 277 | } 278 | 279 | SwipeGestureCatch = SwipeMotionEnum.smNone; 280 | }; 281 | 282 | BaseLayout.Children.Add(_rightSwipeGesture, 283 | Constraint.RelativeToView(_rightPanel, (parent, sibling) => sibling.X - RightSwipeSize), 284 | Constraint.RelativeToView(_rightPanel, (parent, sibling) => TransparentSize.Top), 285 | Constraint.RelativeToView(_rightPanel, (parent, sibling) => RightSwipeSize), 286 | Constraint.RelativeToView(_rightPanel, (parent, sibling) => sibling.Height - TransparentSize.VerticalThickness)); 287 | #endregion 288 | 289 | // space near panel under active page 290 | #region Transparent panel 291 | var rightTransparentPanel = new BoxView 292 | { 293 | BackgroundColor = Color.Transparent, 294 | InputTransparent = true 295 | }; 296 | 297 | _rightTransparentGestures = new ViewGestures 298 | { 299 | IsVisible = false, 300 | Content = rightTransparentPanel, 301 | BackgroundColor = Color.Transparent 302 | }; 303 | 304 | _rightTransparentGestures.SwipeRight += (s, e) => IsShowRightPanel = false; 305 | _rightTransparentGestures.SwipeLeft += (s, e) => IsShowRightPanel = false; 306 | _rightTransparentGestures.SwipeUp += (s, e) => IsShowRightPanel = false; 307 | _rightTransparentGestures.SwipeDown += (s, e) => IsShowRightPanel = false; 308 | _rightTransparentGestures.Tap += (s, e) => IsShowRightPanel = false; 309 | 310 | BaseLayout.Children.Add(_rightTransparentGestures, 311 | Constraint.RelativeToView(_rightPanel, (parent, sibling) => LeftPanel == null ? 0 : LeftSwipeSize), 312 | Constraint.RelativeToView(_rightPanel, (parent, sibling) => TransparentSize.Top), 313 | Constraint.RelativeToView(_rightPanel, (parent, sibling) => 314 | { 315 | var width = parent.Width - sibling.Width - RightSwipeSize; 316 | return LeftPanel == null ? width : width - LeftSwipeSize; 317 | }), 318 | Constraint.RelativeToParent(parent => parent.Height - TransparentSize.VerticalThickness)); 319 | #endregion 320 | } 321 | } 322 | 323 | private ViewGestures _rightSwipeGesture; 324 | private ViewGestures _rightTransparentGestures; 325 | 326 | private bool _isShowRightPanel; 327 | public bool IsShowRightPanel 328 | { 329 | get 330 | { 331 | lock (Locker) 332 | return _isShowRightPanel; 333 | } 334 | set 335 | { 336 | lock (Locker) 337 | { 338 | if (RightPanel == null) 339 | return; 340 | 341 | _isShowRightPanel = value; 342 | _rightTransparentGestures.IsVisible = value; 343 | 344 | if (value) 345 | ShowRightPanel(); 346 | else 347 | HideRightPanel(); 348 | 349 | OnPanelChanged(new SideBarEventArgs(value, PanelAlignEnum.paRight)); 350 | } 351 | } 352 | } 353 | #endregion 354 | 355 | public event EventHandler PanelChanged; 356 | public void OnPanelChanged(SideBarEventArgs e) 357 | { 358 | PanelChanged?.Invoke(this, e); 359 | } 360 | 361 | public void ClosePanel() 362 | { 363 | IsShowLeftPanel = false; 364 | IsShowRightPanel = false; 365 | } 366 | 367 | #region Panel animation 368 | private async void ShowLeftPanel() 369 | { 370 | IsShowRightPanel = false; 371 | 372 | if (LeftPanel != null) 373 | { 374 | _leftSwipeGesture.TranslationX = LeftPanelWidth; 375 | await LeftPanel.TranslateTo(LeftPanelWidth, LeftPanel.TranslationY, SpeedAnimatePanel, Easing.CubicOut); 376 | } 377 | } 378 | 379 | private async void HideLeftPanel() 380 | { 381 | if (LeftPanel != null) 382 | { 383 | _leftSwipeGesture.TranslationX = 0; 384 | await LeftPanel.TranslateTo(0, LeftPanel.TranslationY, SpeedAnimatePanel, Easing.CubicOut); 385 | } 386 | } 387 | 388 | private async void ShowRightPanel() 389 | { 390 | IsShowLeftPanel = false; 391 | 392 | if (RightPanel != null) 393 | { 394 | _rightSwipeGesture.TranslationX = -RightPanelWidth; 395 | await RightPanel.TranslateTo(-RightPanelWidth, RightPanel.TranslationY, SpeedAnimatePanel, Easing.CubicOut); 396 | } 397 | } 398 | 399 | private async void HideRightPanel() 400 | { 401 | if (RightPanel != null) 402 | { 403 | _rightSwipeGesture.TranslationX = 0; 404 | await RightPanel.TranslateTo(0, RightPanel.TranslationY, SpeedAnimatePanel, Easing.CubicOut); 405 | } 406 | } 407 | #endregion 408 | 409 | #region Panel move 410 | private void MoveLeftPanel(double deltaTranslate) 411 | { 412 | if (LeftPanel.TranslationX + deltaTranslate <= 0) 413 | LeftPanel.TranslationX = 0; 414 | else if (LeftPanel.TranslationX + deltaTranslate >= LeftPanelWidth) 415 | LeftPanel.TranslationX = LeftPanelWidth; 416 | else 417 | LeftPanel.TranslationX += deltaTranslate; 418 | 419 | _leftSwipeGesture.TranslationX = LeftPanel.TranslationX; 420 | } 421 | 422 | private void MoveRightPanel(double deltaTranslate) 423 | { 424 | if (RightPanel.TranslationX + deltaTranslate >= 0) 425 | RightPanel.TranslationX = 0; 426 | else if (RightPanel.TranslationX + deltaTranslate <= -RightPanelWidth) 427 | RightPanel.TranslationX = -RightPanelWidth; 428 | else 429 | RightPanel.TranslationX += deltaTranslate; 430 | 431 | _rightSwipeGesture.TranslationX = RightPanel.TranslationX; 432 | } 433 | #endregion 434 | 435 | protected override bool OnBackButtonPressed() 436 | { 437 | var isBackPress = IsShowLeftPanel || IsShowRightPanel; 438 | 439 | if (isBackPress) 440 | ClosePanel(); 441 | 442 | return isBackPress || base.OnBackButtonPressed(); 443 | } 444 | 445 | public class SideBarEventArgs : EventArgs 446 | { 447 | public readonly bool IsShow; 448 | public readonly PanelAlignEnum Panel; 449 | 450 | public SideBarEventArgs(bool isShow, PanelAlignEnum panel) 451 | { 452 | IsShow = isShow; 453 | Panel = panel; 454 | } 455 | } 456 | } 457 | } 458 | -------------------------------------------------------------------------------- /ScnSideMenu/ScnSideMenu/Src/SideBarPanel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Xamarin.Forms; 3 | 4 | namespace ScnSideMenu.Forms 5 | { 6 | public class SideBarPanel : ContentView 7 | { 8 | private const int SwipeReactionValue = 40; 9 | 10 | public PanelAlignEnum PanelAlign { get; } 11 | 12 | public event EventHandler Swipe; 13 | 14 | public new View Content 15 | { 16 | get => ((ContentView) ((ScrollView) base.Content).Content).Content; 17 | set => ((ContentView) ((ScrollView) base.Content).Content).Content = value; 18 | } 19 | 20 | public SideBarPanel(PanelAlignEnum panelAlign) 21 | { 22 | var contentView = new ContentView(); 23 | 24 | base.Content = new ScrollView 25 | { 26 | Content = contentView 27 | }; 28 | 29 | PanelAlign = panelAlign; 30 | 31 | BackgroundColor = Color.White; 32 | VerticalOptions = LayoutOptions.FillAndExpand; 33 | 34 | var panGestureRecognizer = new PanGestureRecognizer(); 35 | panGestureRecognizer.PanUpdated += (sender, args) => 36 | { 37 | if (args.StatusType == GestureStatus.Running && 38 | (args.TotalX > SwipeReactionValue && Math.Abs(args.TotalX) > Math.Abs(args.TotalY) && 39 | panelAlign == PanelAlignEnum.paRight || 40 | args.TotalX < -SwipeReactionValue && Math.Abs(args.TotalX) > Math.Abs(args.TotalY) && 41 | panelAlign == PanelAlignEnum.paLeft)) 42 | OnSwipe(); 43 | }; 44 | 45 | var gestureContainer = Device.RuntimePlatform == Device.Android ? contentView : this; 46 | gestureContainer.GestureRecognizers.Add(panGestureRecognizer); 47 | } 48 | 49 | public void OnSwipe() 50 | { 51 | Swipe?.Invoke(this, EventArgs.Empty); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /ScnSideMenu/ScnSideMenu/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Screenshots/Droid/SideMenuRealApp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/Screenshots/Droid/SideMenuRealApp.png -------------------------------------------------------------------------------- /Screenshots/Droid/SideMenuSample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScienceSoft-Inc/ScnSideMenu/1a788396f842547618c224355e667867ffeaea80/Screenshots/Droid/SideMenuSample.png --------------------------------------------------------------------------------