├── .gitattributes
├── .gitignore
├── LICENSE
├── MovableListView
├── Example
│ ├── Example.iOS
│ │ ├── AppDelegate.cs
│ │ ├── Entitlements.plist
│ │ ├── Example.iOS.csproj
│ │ ├── 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
│ │ ├── iTunesArtwork
│ │ ├── iTunesArtwork@2x
│ │ └── packages.config
│ └── Example
│ │ ├── App.cs
│ │ ├── Example.csproj
│ │ ├── GettingStarted.Xamarin
│ │ ├── GroupedListXaml.xaml
│ │ ├── GroupedListXaml.xaml.cs
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── packages.config
│ │ └── veggieModel.cs
├── MovableListView.sln
└── MovableListView
│ ├── MovableListView.iOS
│ ├── MovableCellGestureRecognizer.cs
│ ├── MovableListView.iOS.csproj
│ ├── MovableViewCellRenderer.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── packages.config
│ └── MovableListView
│ ├── IObservableCollectionEx.cs
│ ├── MovableListView.csproj
│ ├── MovableViewCell.cs
│ ├── ObservableCollectionEx.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── ReorderCommandParam.cs
│ └── packages.config
└── README.md
/.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 | *.sln.docstates
8 | *.DS_Store
9 |
10 | # Build results
11 | [Dd]ebug/
12 | [Dd]ebugPublic/
13 | [Rr]elease/
14 | x64/
15 | build/
16 | bld/
17 | [Bb]in/
18 | [Oo]bj/
19 |
20 | # MSTest test Results
21 | [Tt]est[Rr]esult*/
22 | [Bb]uild[Ll]og.*
23 |
24 | #NUNIT
25 | *.VisualState.xml
26 | TestResult.xml
27 |
28 | # Build Results of an ATL Project
29 | [Dd]ebugPS/
30 | [Rr]eleasePS/
31 | dlldata.c
32 |
33 | *_i.c
34 | *_p.c
35 | *_i.h
36 | *.ilk
37 | *.meta
38 | *.obj
39 | *.pch
40 | *.pdb
41 | *.pgc
42 | *.pgd
43 | *.rsp
44 | *.sbr
45 | *.tlb
46 | *.tli
47 | *.tlh
48 | *.tmp
49 | *.tmp_proj
50 | *.log
51 | *.vspscc
52 | *.vssscc
53 | .builds
54 | *.pidb
55 | *.svclog
56 | *.scc
57 |
58 | # Chutzpah Test files
59 | _Chutzpah*
60 |
61 | # Visual C++ cache files
62 | ipch/
63 | *.aps
64 | *.ncb
65 | *.opensdf
66 | *.sdf
67 | *.cachefile
68 |
69 | # Visual Studio profiler
70 | *.psess
71 | *.vsp
72 | *.vspx
73 |
74 | # Visual Studio cache dir
75 | *.sln.ide/
76 |
77 | # TFS 2012 Local Workspace
78 | $tf/
79 |
80 | # Guidance Automation Toolkit
81 | *.gpState
82 |
83 | # ReSharper is a .NET coding add-in
84 | _ReSharper*/
85 | *.[Rr]e[Ss]harper
86 | *.DotSettings.user
87 |
88 | # JustCode is a .NET coding addin-in
89 | .JustCode
90 |
91 | # TeamCity is a build add-in
92 | _TeamCity*
93 |
94 | # DotCover is a Code Coverage Tool
95 | *.dotCover
96 |
97 | # NCrunch
98 | *.ncrunch*
99 | _NCrunch_*
100 | .*crunch*.local.xml
101 |
102 | # MightyMoose
103 | *.mm.*
104 | AutoTest.Net/
105 |
106 | # Web workbench (sass)
107 | .sass-cache/
108 |
109 | # Installshield output folder
110 | [Ee]xpress/
111 |
112 | # DocProject is a documentation generator add-in
113 | DocProject/buildhelp/
114 | DocProject/Help/*.HxT
115 | DocProject/Help/*.HxC
116 | DocProject/Help/*.hhc
117 | DocProject/Help/*.hhk
118 | DocProject/Help/*.hhp
119 | DocProject/Help/Html2
120 | DocProject/Help/html
121 |
122 | # Click-Once directory
123 | publish/
124 |
125 | # Publish Web Output
126 | *.[Pp]ublish.xml
127 | *.azurePubxml
128 |
129 | # NuGet Packages Directory
130 | packages/
131 | ## TODO: If the tool you use requires repositories.config uncomment the next line
132 | #!packages/repositories.config
133 |
134 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
135 | # This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
136 | !packages/build/
137 |
138 | # Windows Azure Build Output
139 | csx/
140 | *.build.csdef
141 |
142 | # Windows Store app package directory
143 | AppPackages/
144 |
145 | # Others
146 | sql/
147 | *.Cache
148 | ClientBin/
149 | [Ss]tyle[Cc]op.*
150 | ~$*
151 | *~
152 | *.dbmdl
153 | *.dbproj.schemaview
154 | *.pfx
155 | *.publishsettings
156 | node_modules/
157 |
158 | # RIA/Silverlight projects
159 | Generated_Code/
160 |
161 | # Backup & report files from converting an old project file to a newer
162 | # Visual Studio version. Backup files are not needed, because we have git ;-)
163 | _UpgradeReport_Files/
164 | Backup*/
165 | UpgradeLog*.XML
166 | UpgradeLog*.htm
167 |
168 | # SQL Server files
169 | *.mdf
170 | *.ldf
171 |
172 | # Business Intelligence projects
173 | *.rdl.data
174 | *.bim.layout
175 | *.bim_*.settings
176 |
177 | # Microsoft Fakes
178 | FakesAssemblies/
179 |
180 | samples/.DS_Store
181 |
182 | samples/Xamarin.Forms.Labs.Sample.Droid/Resources/Resource.designer.cs
183 | src/Xamarin.Forms.Labs/Xamarin.Forms.Labs.Droid/Resources/Resource.designer.cs
184 |
185 | src/Xamarin.Forms.Labs/Xamarin.Forms.Labs.userprefs
186 |
187 | *.userprefs
188 | *.jf
189 |
190 | ReleaseBuild/*
191 |
192 | src/Forms/XLabs.Forms.Droid/Resources/Resource.Designer.cs
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 isychev93
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 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using Foundation;
2 | using MovableListView;
3 | using MovableListView.iOS;
4 | using UIKit;
5 | using Xamarin.Forms;
6 |
7 | [assembly: ExportRenderer(typeof(MovableViewCell), typeof(MovableViewCellRenderer))]
8 | namespace Example.iOS
9 | {
10 | // The UIApplicationDelegate for the application. This class is responsible for launching the
11 | // User Interface of the application, as well as listening (and optionally responding) to
12 | // application events from iOS.
13 | [Register("AppDelegate")]
14 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
15 | {
16 | //
17 | // This method is invoked when the application has loaded and is ready to run. In this
18 | // method you should instantiate the window, load the UI into it and then make the window
19 | // visible.
20 | //
21 | // You have 17 seconds to return from this method, or iOS will terminate your application.
22 | //
23 | public override bool FinishedLaunching(UIApplication app, NSDictionary options)
24 | {
25 | global::Xamarin.Forms.Forms.Init();
26 | LoadApplication(new App());
27 |
28 | return base.FinishedLaunching(app, options);
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Example.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {B201C800-6613-4659-91B3-57234BDF24C9}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | Exe
11 | Example.iOS
12 | Resources
13 | ExampleiOS
14 |
15 |
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\iPhoneSimulator\Debug
22 | DEBUG
23 | prompt
24 | 4
25 | false
26 | i386, x86_64
27 | None
28 | true
29 |
30 |
31 | none
32 | true
33 | bin\iPhoneSimulator\Release
34 | prompt
35 | 4
36 | None
37 | i386, x86_64
38 | false
39 |
40 |
41 | true
42 | full
43 | false
44 | bin\iPhone\Debug
45 | DEBUG
46 | prompt
47 | 4
48 | false
49 | ARMv7, ARM64
50 | iPhone Developer
51 | true
52 | Entitlements.plist
53 |
54 |
55 | none
56 | true
57 | bin\iPhone\Release
58 | prompt
59 | 4
60 | ARMv7, ARM64
61 | false
62 | iPhone Developer
63 | Entitlements.plist
64 |
65 |
66 | none
67 | True
68 | bin\iPhone\Ad-Hoc
69 | prompt
70 | 4
71 | False
72 | ARMv7, ARM64
73 | True
74 | Automatic:AdHoc
75 | iPhone Distribution
76 | Entitlements.plist
77 |
78 |
79 | none
80 | True
81 | bin\iPhone\AppStore
82 | prompt
83 | 4
84 | False
85 | ARMv7, ARM64
86 | Automatic:AppStore
87 | iPhone Distribution
88 | Entitlements.plist
89 |
90 |
91 |
92 |
93 |
94 | Designer
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 | {af251c99-75ab-4cd8-9719-740bc66c274c}
105 | MovableListView.iOS
106 | false
107 | false
108 |
109 |
110 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}
111 | MovableListView
112 |
113 |
114 | Example
115 | {506267B1-0B71-476F-88E4-38FCD431C50E}
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll
142 | True
143 |
144 |
145 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll
146 | True
147 |
148 |
149 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll
150 | True
151 |
152 |
153 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll
154 | True
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 | 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}.
163 |
164 |
165 |
166 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example.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 | 6.0
25 | CFBundleDisplayName
26 | Example
27 | CFBundleIdentifier
28 | com.yourcompany.Example
29 | CFBundleVersion
30 | 1.0
31 | CFBundleIconFiles
32 |
33 | Icon-60@2x
34 | Icon-60@3x
35 | Icon-76
36 | Icon-76@2x
37 | Default
38 | Default@2x
39 | Default-568h@2x
40 | Default-Portrait
41 | Default-Portrait@2x
42 | Icon-Small-40
43 | Icon-Small-40@2x
44 | Icon-Small-40@3x
45 | Icon-Small
46 | Icon-Small@2x
47 | Icon-Small@3x
48 |
49 | UILaunchStoryboardName
50 | LaunchScreen
51 |
52 |
53 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Main.cs:
--------------------------------------------------------------------------------
1 | using UIKit;
2 |
3 | namespace Example.iOS
4 | {
5 | public class Application
6 | {
7 | // This is the main entry point of the application.
8 | static void Main(string[] args)
9 | {
10 | // if you want to use a different Application Delegate class from "AppDelegate"
11 | // you can specify it here.
12 | UIApplication.Main(args, null, "AppDelegate");
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example.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("Example.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Example.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 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-60@2x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-60@3x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-76.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-76@2x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-Small-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-Small-40.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-Small-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-Small-40@2x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-Small-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-Small-40@3x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-Small.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-Small@2x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/Resources/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/Resources/Icon-Small@3x.png
--------------------------------------------------------------------------------
/MovableListView/Example/Example.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 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/iTunesArtwork:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/iTunesArtwork
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/iTunesArtwork@2x:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isychev93/Xamarin.Forms-Drag-and-drop-ListView/6a0b7e5caeda8366a9453905788dbeb8605af8d9/MovableListView/Example/Example.iOS/iTunesArtwork@2x
--------------------------------------------------------------------------------
/MovableListView/Example/Example.iOS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example/App.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.Forms;
2 |
3 | namespace Example
4 | {
5 | public class App : Application
6 | {
7 | public App()
8 | {
9 | // The root page of your application
10 | MainPage = new GroupedListXaml();
11 | }
12 |
13 | protected override void OnStart()
14 | {
15 | // Handle when your app starts
16 | }
17 |
18 | protected override void OnSleep()
19 | {
20 | // Handle when your app sleeps
21 | }
22 |
23 | protected override void OnResume()
24 | {
25 | // Handle when your app resumes
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example/Example.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 10.0
6 | Debug
7 | AnyCPU
8 | {506267B1-0B71-476F-88E4-38FCD431C50E}
9 | Library
10 | Properties
11 | Example
12 | Example
13 | v4.5
14 | Profile7
15 | 512
16 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
17 |
18 |
19 |
20 |
21 | true
22 | full
23 | false
24 | bin\Debug\
25 | DEBUG;TRACE
26 | prompt
27 | 4
28 |
29 |
30 | pdbonly
31 | true
32 | bin\Release\
33 | TRACE
34 | prompt
35 | 4
36 |
37 |
38 |
39 |
40 | GroupedListXaml.xaml
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | MSBuild:UpdateDesignTimeXaml
52 | Designer
53 |
54 |
55 |
56 |
57 | {5a4436e6-cdea-40ad-a21c-7a1b9ab422cc}
58 | MovableListView
59 |
60 |
61 |
62 |
63 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Core.dll
64 | True
65 |
66 |
67 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Platform.dll
68 | True
69 |
70 |
71 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Xaml.dll
72 | True
73 |
74 |
75 |
76 |
77 |
78 |
79 | 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}.
80 |
81 |
82 |
83 |
90 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example/GettingStarted.Xamarin:
--------------------------------------------------------------------------------
1 |
2 | GS\XF\CS\App\GettingStarted.html
3 | false
4 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example/GroupedListXaml.xaml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example/GroupedListXaml.xaml.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.Forms;
2 |
3 | namespace Example
4 | {
5 | public partial class GroupedListXaml : ContentPage
6 | {
7 | public GroupedListXaml()
8 | {
9 | InitializeComponent();
10 | var veggieGroup = new GroupedVeggieModel() { LongName = "vegetables", ShortName = "v" };
11 | veggieGroup.Add(new VeggieModel() { Name = "celery", IsReallyAVeggie = true, Comment = "try ants on a log" });
12 | veggieGroup.Add(new VeggieModel() { Name = "tomato", IsReallyAVeggie = false, Comment = "pairs well with basil" });
13 | veggieGroup.Add(new VeggieModel() { Name = "zucchini", IsReallyAVeggie = true, Comment = "zucchini bread > bannana bread" });
14 | veggieGroup.Add(new VeggieModel() { Name = "peas", IsReallyAVeggie = true, Comment = "like peas in a pod" });
15 | veggieGroup.Add(new VeggieModel() { Name = "celery", IsReallyAVeggie = true, Comment = "try ants on a log" });
16 | veggieGroup.Add(new VeggieModel() { Name = "tomato", IsReallyAVeggie = false, Comment = "pairs well with basil" });
17 | veggieGroup.Add(new VeggieModel() { Name = "zucchini", IsReallyAVeggie = true, Comment = "zucchini bread > bannana bread" });
18 | veggieGroup.Add(new VeggieModel() { Name = "peas", IsReallyAVeggie = true, Comment = "like peas in a pod" });
19 | veggieGroup.Add(new VeggieModel() { Name = "celery", IsReallyAVeggie = true, Comment = "try ants on a log" });
20 | veggieGroup.Add(new VeggieModel() { Name = "tomato", IsReallyAVeggie = false, Comment = "pairs well with basil" });
21 | veggieGroup.Add(new VeggieModel() { Name = "zucchini", IsReallyAVeggie = true, Comment = "zucchini bread > bannana bread" });
22 | veggieGroup.Add(new VeggieModel() { Name = "peas", IsReallyAVeggie = true, Comment = "like peas in a pod" });
23 | veggieGroup.Add(new VeggieModel() { Name = "celery", IsReallyAVeggie = true, Comment = "try ants on a log" });
24 | veggieGroup.Add(new VeggieModel() { Name = "tomato", IsReallyAVeggie = false, Comment = "pairs well with basil" });
25 | veggieGroup.Add(new VeggieModel() { Name = "zucchini", IsReallyAVeggie = true, Comment = "zucchini bread > bannana bread" });
26 | veggieGroup.Add(new VeggieModel() { Name = "peas", IsReallyAVeggie = true, Comment = "like peas in a pod" });
27 | veggieGroup.Add(new VeggieModel() { Name = "celery", IsReallyAVeggie = true, Comment = "try ants on a log" });
28 | veggieGroup.Add(new VeggieModel() { Name = "tomato", IsReallyAVeggie = false, Comment = "pairs well with basil" });
29 | veggieGroup.Add(new VeggieModel() { Name = "zucchini", IsReallyAVeggie = true, Comment = "zucchini bread > bannana bread" });
30 | veggieGroup.Add(new VeggieModel() { Name = "peas", IsReallyAVeggie = true, Comment = "like peas in a pod" });
31 | veggieGroup.Add(new VeggieModel() { Name = "celery", IsReallyAVeggie = true, Comment = "try ants on a log" });
32 | veggieGroup.Add(new VeggieModel() { Name = "tomato", IsReallyAVeggie = false, Comment = "pairs well with basil" });
33 | veggieGroup.Add(new VeggieModel() { Name = "zucchini", IsReallyAVeggie = true, Comment = "zucchini bread > bannana bread" });
34 | veggieGroup.Add(new VeggieModel() { Name = "peas", IsReallyAVeggie = true, Comment = "like peas in a pod" });
35 | veggieGroup.Add(new VeggieModel() { Name = "celery", IsReallyAVeggie = true, Comment = "try ants on a log" });
36 | veggieGroup.Add(new VeggieModel() { Name = "tomato", IsReallyAVeggie = false, Comment = "pairs well with basil" });
37 | veggieGroup.Add(new VeggieModel() { Name = "zucchini", IsReallyAVeggie = true, Comment = "zucchini bread > bannana bread" });
38 | veggieGroup.Add(new VeggieModel() { Name = "peas", IsReallyAVeggie = true, Comment = "like peas in a pod" });
39 | veggieGroup.Add(new VeggieModel() { Name = "celery", IsReallyAVeggie = true, Comment = "try ants on a log" });
40 | veggieGroup.Add(new VeggieModel() { Name = "tomato", IsReallyAVeggie = false, Comment = "pairs well with basil" });
41 | veggieGroup.Add(new VeggieModel() { Name = "zucchini", IsReallyAVeggie = true, Comment = "zucchini bread > bannana bread" });
42 | veggieGroup.Add(new VeggieModel() { Name = "peas", IsReallyAVeggie = true, Comment = "like peas in a pod" });
43 | veggieGroup.Add(new VeggieModel() { Name = "celery", IsReallyAVeggie = true, Comment = "try ants on a log" });
44 | veggieGroup.Add(new VeggieModel() { Name = "tomato", IsReallyAVeggie = false, Comment = "pairs well with basil" });
45 | veggieGroup.Add(new VeggieModel() { Name = "zucchini", IsReallyAVeggie = true, Comment = "zucchini bread > bannana bread" });
46 | veggieGroup.Add(new VeggieModel() { Name = "peas", IsReallyAVeggie = true, Comment = "like peas in a pod" });
47 | lstView.ItemsSource = veggieGroup;
48 | }
49 | }
50 | }
51 |
52 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example/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("Example")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("Example")]
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 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/MovableListView/Example/Example/veggieModel.cs:
--------------------------------------------------------------------------------
1 | using MovableListView;
2 |
3 | namespace Example
4 | {
5 | public class VeggieModel
6 | {
7 | public string Name { get; set; }
8 | public string Comment { get; set; }
9 | public bool IsReallyAVeggie { get; set; }
10 | public string Image { get; set; }
11 | public VeggieModel()
12 | {
13 | }
14 | }
15 |
16 | public class GroupedVeggieModel : ObservableCollectionEx
17 | {
18 | public string LongName { get; set; }
19 | public string ShortName { get; set; }
20 | }
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25123.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example.iOS", "Example\Example.iOS\Example.iOS.csproj", "{B201C800-6613-4659-91B3-57234BDF24C9}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example", "Example\Example\Example.csproj", "{506267B1-0B71-476F-88E4-38FCD431C50E}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MovableListView.iOS", "MovableListView\MovableListView.iOS\MovableListView.iOS.csproj", "{AF251C99-75AB-4CD8-9719-740BC66C274C}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MovableListView", "MovableListView\MovableListView\MovableListView.csproj", "{5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}"
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
17 | Ad-Hoc|iPhone = Ad-Hoc|iPhone
18 | Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
19 | AppStore|Any CPU = AppStore|Any CPU
20 | AppStore|iPhone = AppStore|iPhone
21 | AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
22 | Debug|Any CPU = Debug|Any CPU
23 | Debug|iPhone = Debug|iPhone
24 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
25 | Release|Any CPU = Release|Any CPU
26 | Release|iPhone = Release|iPhone
27 | Release|iPhoneSimulator = Release|iPhoneSimulator
28 | EndGlobalSection
29 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
30 | {B201C800-6613-4659-91B3-57234BDF24C9}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
31 | {B201C800-6613-4659-91B3-57234BDF24C9}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
32 | {B201C800-6613-4659-91B3-57234BDF24C9}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
33 | {B201C800-6613-4659-91B3-57234BDF24C9}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
34 | {B201C800-6613-4659-91B3-57234BDF24C9}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
35 | {B201C800-6613-4659-91B3-57234BDF24C9}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
36 | {B201C800-6613-4659-91B3-57234BDF24C9}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
37 | {B201C800-6613-4659-91B3-57234BDF24C9}.AppStore|iPhone.Build.0 = AppStore|iPhone
38 | {B201C800-6613-4659-91B3-57234BDF24C9}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
39 | {B201C800-6613-4659-91B3-57234BDF24C9}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
40 | {B201C800-6613-4659-91B3-57234BDF24C9}.Debug|Any CPU.ActiveCfg = Debug|iPhone
41 | {B201C800-6613-4659-91B3-57234BDF24C9}.Debug|iPhone.ActiveCfg = Debug|iPhone
42 | {B201C800-6613-4659-91B3-57234BDF24C9}.Debug|iPhone.Build.0 = Debug|iPhone
43 | {B201C800-6613-4659-91B3-57234BDF24C9}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
44 | {B201C800-6613-4659-91B3-57234BDF24C9}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
45 | {B201C800-6613-4659-91B3-57234BDF24C9}.Release|Any CPU.ActiveCfg = Release|iPhone
46 | {B201C800-6613-4659-91B3-57234BDF24C9}.Release|iPhone.ActiveCfg = Release|iPhone
47 | {B201C800-6613-4659-91B3-57234BDF24C9}.Release|iPhone.Build.0 = Release|iPhone
48 | {B201C800-6613-4659-91B3-57234BDF24C9}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
49 | {B201C800-6613-4659-91B3-57234BDF24C9}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
50 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
51 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
52 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
53 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
54 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
55 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
56 | {506267B1-0B71-476F-88E4-38FCD431C50E}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
57 | {506267B1-0B71-476F-88E4-38FCD431C50E}.AppStore|Any CPU.Build.0 = Release|Any CPU
58 | {506267B1-0B71-476F-88E4-38FCD431C50E}.AppStore|iPhone.ActiveCfg = Release|Any CPU
59 | {506267B1-0B71-476F-88E4-38FCD431C50E}.AppStore|iPhone.Build.0 = Release|Any CPU
60 | {506267B1-0B71-476F-88E4-38FCD431C50E}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
61 | {506267B1-0B71-476F-88E4-38FCD431C50E}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
62 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Debug|Any CPU.Build.0 = Debug|Any CPU
64 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Debug|iPhone.ActiveCfg = Debug|Any CPU
65 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Debug|iPhone.Build.0 = Debug|Any CPU
66 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
67 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
68 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Release|Any CPU.ActiveCfg = Release|Any CPU
69 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Release|Any CPU.Build.0 = Release|Any CPU
70 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Release|iPhone.ActiveCfg = Release|Any CPU
71 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Release|iPhone.Build.0 = Release|Any CPU
72 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
73 | {506267B1-0B71-476F-88E4-38FCD431C50E}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
74 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
75 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
76 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
77 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
78 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
79 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
80 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
81 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.AppStore|iPhone.Build.0 = AppStore|iPhone
82 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
83 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
84 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Debug|Any CPU.ActiveCfg = Debug|iPhone
85 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Debug|iPhone.ActiveCfg = Debug|iPhone
86 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Debug|iPhone.Build.0 = Debug|iPhone
87 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
88 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
89 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Release|Any CPU.ActiveCfg = Release|iPhone
90 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Release|iPhone.ActiveCfg = Release|iPhone
91 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Release|iPhone.Build.0 = Release|iPhone
92 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
93 | {AF251C99-75AB-4CD8-9719-740BC66C274C}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
94 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
95 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
96 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
97 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
98 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
99 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
100 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
101 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.AppStore|Any CPU.Build.0 = Release|Any CPU
102 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.AppStore|iPhone.ActiveCfg = Release|Any CPU
103 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.AppStore|iPhone.Build.0 = Release|Any CPU
104 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
105 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
106 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
107 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
108 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Debug|iPhone.ActiveCfg = Debug|Any CPU
109 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Debug|iPhone.Build.0 = Debug|Any CPU
110 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
111 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
112 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
113 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Release|Any CPU.Build.0 = Release|Any CPU
114 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Release|iPhone.ActiveCfg = Release|Any CPU
115 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Release|iPhone.Build.0 = Release|Any CPU
116 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
117 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
118 | EndGlobalSection
119 | GlobalSection(SolutionProperties) = preSolution
120 | HideSolutionNode = FALSE
121 | EndGlobalSection
122 | EndGlobal
123 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView.iOS/MovableCellGestureRecognizer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using CoreGraphics;
3 | using Foundation;
4 | using UIKit;
5 | using Xamarin.Forms;
6 |
7 | namespace MovableListView.iOS
8 | {
9 | public class MovableCellGestureRecognizer : UILongPressGestureRecognizer
10 | {
11 | private readonly WeakReference weakListView;
12 | private readonly WeakReference weakTableView;
13 | private readonly WeakReference weakNativeCell;
14 | private readonly WeakReference weakCell;
15 | private NSIndexPath sourceOrNewAppliedIndexPath;
16 | private UIView opaqueView;
17 |
18 | private MovableCellGestureRecognizer(ListView listView, UITableView tableView, MovableViewCell cell, UITableViewCell nativeCell) : base(OnRecognizingAction)
19 | {
20 | weakListView = new WeakReference(listView);
21 | weakTableView = new WeakReference(tableView);
22 | weakNativeCell = new WeakReference(nativeCell);
23 | weakCell = new WeakReference(cell);
24 | }
25 |
26 | public static MovableCellGestureRecognizer CreateGesture(ListView listView, UITableView tableView, MovableViewCell cell, UITableViewCell nativeCell)
27 | {
28 | return new MovableCellGestureRecognizer(listView, tableView, cell, nativeCell);
29 | }
30 |
31 | private static void OnRecognizingAction(UILongPressGestureRecognizer r)
32 | {
33 | var recognizer = r as MovableCellGestureRecognizer;
34 | if (recognizer == null)
35 | throw new InvalidOperationException(string.Format("UILongPressGestureRecognizer must be MovableCellGestureRecognizer ({0})", r.GetType()));
36 |
37 | recognizer.HandleRecognizerAction();
38 | }
39 |
40 | private void HandleRecognizerAction()
41 | {
42 | UITableView tableView;
43 | weakTableView.TryGetTarget(out tableView);
44 | UITableViewCell nativeCell;
45 | weakNativeCell.TryGetTarget(out nativeCell);
46 | ListView listView;
47 | weakListView.TryGetTarget(out listView);
48 | MovableViewCell cell;
49 | weakCell.TryGetTarget(out cell);
50 | if (tableView == null || nativeCell == null || listView == null || cell == null)
51 | return;
52 | var newPoint = LocationInView(tableView);
53 | var newRowIndexPath = tableView.IndexPathForRowAtPoint(newPoint);
54 | switch (State)
55 | {
56 | case UIGestureRecognizerState.Possible:
57 | break;
58 | case UIGestureRecognizerState.Began:
59 | if (cell.BeginReorderCommand != null)
60 | {
61 | cell.BeginReorderCommand.Execute(new ReorderCommandParam(newRowIndexPath.Row, newRowIndexPath.Section, -1, -1));
62 | }
63 | if (newRowIndexPath != null)
64 | {
65 | sourceOrNewAppliedIndexPath = newRowIndexPath;
66 | opaqueView = new UIView(new CGRect(new CGPoint(0, 0), nativeCell.Frame.Size)) { BackgroundColor = UIColor.Black.ColorWithAlpha(0.2f) };
67 | nativeCell.AddSubview(opaqueView);
68 | }
69 | break;
70 | case UIGestureRecognizerState.Changed:
71 | if (sourceOrNewAppliedIndexPath == null || newRowIndexPath == null)
72 | break;
73 |
74 | if (!Equals(sourceOrNewAppliedIndexPath, newRowIndexPath))
75 | {
76 | if (cell.CustomReorderCommaond == null)
77 | {
78 | if (listView.IsGroupingEnabled)
79 | {
80 | var groups = (IObservableCollectionEx)listView.ItemsSource;
81 | var childrenOfNewGroup = (IObservableCollectionEx)groups[newRowIndexPath.Section];
82 | if (sourceOrNewAppliedIndexPath.Section == newRowIndexPath.Section)
83 | {
84 | childrenOfNewGroup.Move(sourceOrNewAppliedIndexPath.Row, newRowIndexPath.Row);
85 | }
86 | else
87 | {
88 | var childrenOfSourceGroup =
89 | (IObservableCollectionEx)groups[sourceOrNewAppliedIndexPath.Section];
90 | var childrenToChangeOrder = childrenOfSourceGroup[sourceOrNewAppliedIndexPath.Row];
91 | tableView.BeginUpdates();
92 | childrenOfSourceGroup.Remove(childrenToChangeOrder);
93 | childrenOfNewGroup.Add(newRowIndexPath.Row, childrenToChangeOrder);
94 | tableView.EndUpdates();
95 | }
96 | }
97 | else
98 | {
99 | var list = (IObservableCollectionEx)listView.ItemsSource;
100 | list.Move(sourceOrNewAppliedIndexPath.Row, newRowIndexPath.Row);
101 | }
102 | }
103 | else
104 | {
105 | cell.CustomReorderCommaond.Execute(new ReorderCommandParam(sourceOrNewAppliedIndexPath.Row, sourceOrNewAppliedIndexPath.Section, newRowIndexPath.Row, newRowIndexPath.Section));
106 | }
107 |
108 | sourceOrNewAppliedIndexPath = newRowIndexPath;
109 | }
110 | break;
111 | case UIGestureRecognizerState.Ended:
112 | case UIGestureRecognizerState.Cancelled:
113 | case UIGestureRecognizerState.Failed:
114 | if (cell.EndReorderCommand != null)
115 | {
116 | tableView.BeginUpdates();
117 | cell.EndReorderCommand.Execute(null);
118 | tableView.EndUpdates();
119 | }
120 | if (opaqueView == null)
121 | return;
122 |
123 | opaqueView.RemoveFromSuperview();
124 | opaqueView = null;
125 | break;
126 | default:
127 | throw new ArgumentOutOfRangeException();
128 | }
129 | }
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView.iOS/MovableListView.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {AF251C99-75AB-4CD8-9719-740BC66C274C}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | Library
11 | MovableListView.iOS
12 | Resources
13 | MovableListViewiOS
14 |
15 |
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\iPhoneSimulator\Debug
22 | DEBUG
23 | prompt
24 | 4
25 | false
26 | i386, x86_64
27 | None
28 | true
29 |
30 |
31 | none
32 | true
33 | bin\iPhoneSimulator\Release
34 | prompt
35 | 4
36 | None
37 | i386, x86_64
38 | false
39 |
40 |
41 | true
42 | full
43 | false
44 | bin\iPhone\Debug
45 | DEBUG
46 | prompt
47 | 4
48 | false
49 | ARMv7, ARM64
50 | iPhone Developer
51 | true
52 | Entitlements.plist
53 |
54 |
55 | none
56 | true
57 | bin\iPhone\Release
58 | prompt
59 | 4
60 | ARMv7, ARM64
61 | false
62 | iPhone Developer
63 | Entitlements.plist
64 |
65 |
66 | none
67 | True
68 | bin\iPhone\Ad-Hoc
69 | prompt
70 | 4
71 | False
72 | ARMv7, ARM64
73 | True
74 | Automatic:AdHoc
75 | iPhone Distribution
76 | Entitlements.plist
77 |
78 |
79 | none
80 | True
81 | bin\iPhone\AppStore
82 | prompt
83 | 4
84 | False
85 | ARMv7, ARM64
86 | Automatic:AppStore
87 | iPhone Distribution
88 | Entitlements.plist
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 | MovableListView
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 | ..\..\packages\Xamarin.Forms.2.3.3.175\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll
109 | True
110 |
111 |
112 | ..\..\packages\Xamarin.Forms.2.3.3.175\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll
113 | True
114 |
115 |
116 | ..\..\packages\Xamarin.Forms.2.3.3.175\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll
117 | True
118 |
119 |
120 | ..\..\packages\Xamarin.Forms.2.3.3.175\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll
121 | True
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 | 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}.
132 |
133 |
134 |
135 |
136 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView.iOS/MovableViewCellRenderer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using MovableListView;
4 | using MovableListView.iOS;
5 | using UIKit;
6 | using Xamarin.Forms;
7 | using Xamarin.Forms.Platform.iOS;
8 |
9 | [assembly: ExportRenderer(typeof(MovableViewCell), typeof(MovableViewCellRenderer))]
10 | namespace MovableListView.iOS
11 | {
12 | public class MovableViewCellRenderer : ViewCellRenderer
13 | {
14 | public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv)
15 | {
16 | var parent = (ListView)item.Parent;
17 | var movableViewCell = (MovableViewCell)item;
18 | if (movableViewCell.CustomReorderCommaond == null && !(parent.ItemsSource is IObservableCollectionEx))
19 | throw new InvalidOperationException("ItemsSource in ListView which contains MovableViewCell must implement IObservableCollectionEx or MovableViewCell.CustomReorderCommaond must be set.");
20 |
21 | var newCell = base.GetCell(item, reusableCell, tv);
22 |
23 | if (newCell.GestureRecognizers != null && newCell.GestureRecognizers.OfType().Any())
24 | newCell.RemoveGestureRecognizer(newCell.GestureRecognizers.OfType().Single());
25 |
26 | newCell.AddGestureRecognizer(MovableCellGestureRecognizer.CreateGesture(parent, tv, movableViewCell, newCell));
27 | return newCell;
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView.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("MovableListView.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("MovableListView.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 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView.iOS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView/IObservableCollectionEx.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel;
4 |
5 | namespace MovableListView
6 | {
7 | public interface IObservableCollectionEx : INotifyCollectionChanged, INotifyPropertyChanged, IList
8 | {
9 | void Add(int index, object item);
10 | void Move(int oldIndex, int newIndex);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView/MovableListView.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 10.0
6 | Debug
7 | AnyCPU
8 | {5A4436E6-CDEA-40AD-A21C-7A1B9AB422CC}
9 | Library
10 | Properties
11 | MovableListView
12 | MovableListView
13 | v4.5
14 | Profile7
15 | 512
16 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
17 |
18 |
19 |
20 |
21 | true
22 | full
23 | false
24 | bin\Debug\
25 | DEBUG;TRACE
26 | prompt
27 | 4
28 |
29 |
30 | pdbonly
31 | true
32 | bin\Release\
33 | TRACE
34 | prompt
35 | 4
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Core.dll
50 |
51 |
52 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Platform.dll
53 |
54 |
55 | ..\..\packages\Xamarin.Forms.2.2.0.31\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Xaml.dll
56 |
57 |
58 |
59 |
60 |
61 | 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}.
62 |
63 |
64 |
65 |
66 |
73 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView/MovableViewCell.cs:
--------------------------------------------------------------------------------
1 | using System.Windows.Input;
2 | using Xamarin.Forms;
3 |
4 | namespace MovableListView
5 | {
6 | ///
7 | /// ViewCell which can be reordered in ListView by drag and drop.
8 | /// There are 2 types of working with :
9 | ///
10 | /// -
11 | ///
12 | /// Internal reordering logics
13 | ///
14 | ///
15 | /// All already done for you.
16 | /// But for property you must set
17 | /// collection which implements (for example ).
18 | ///
19 | ///
20 | /// -
21 | ///
22 | /// Custom reordering logics
23 | ///
24 | ///
25 | /// Necessary when your reordering logic is not trivial.
26 | /// In which case you must set
27 | /// and change source list manually.
28 | ///
29 | ///
30 | ///
31 | ///
32 | public class MovableViewCell : ViewCell
33 | {
34 | public static BindableProperty CustomReorderCommaondProperty = BindableProperty.Create("CustomReorderCommaond", typeof(Command), typeof(MovableViewCell));
35 | public static BindableProperty BeginReorderCommandProperty = BindableProperty.Create("BeginReorderCommand", typeof(Command), typeof(MovableViewCell));
36 | public static BindableProperty EndReorderCommandProperty = BindableProperty.Create("EndReorderCommand", typeof(ICommand), typeof(MovableViewCell));
37 |
38 | ///
39 | /// Command for custom reordering.
40 | /// Called when touch point within a new row.
41 | ///
42 | ///
43 | /// If not null, all internal reordering logics will be ignored.
44 | ///
45 | public Command CustomReorderCommaond
46 | {
47 | get { return (Command)GetValue(CustomReorderCommaondProperty); }
48 | set { SetValue(CustomReorderCommaondProperty, value); }
49 | }
50 |
51 | public Command BeginReorderCommand
52 | {
53 | get { return (Command)GetValue(BeginReorderCommandProperty); }
54 | set { SetValue(BeginReorderCommandProperty, value); }
55 | }
56 |
57 | public ICommand EndReorderCommand
58 | {
59 | get { return (ICommand)GetValue(EndReorderCommandProperty); }
60 | set { SetValue(EndReorderCommandProperty, value); }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView/ObservableCollectionEx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.ObjectModel;
3 |
4 | namespace MovableListView
5 | {
6 | public class ObservableCollectionEx : ObservableCollection, IObservableCollectionEx
7 | {
8 | public void Add(int index, object item)
9 | {
10 | if (Items.IsReadOnly)
11 | throw new NotSupportedException("NotSupported_ReadOnlyCollection");
12 |
13 | InsertItem(index, (T)item);
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView/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("MovableListView")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("MovableListView")]
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 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView/ReorderCommandParam.cs:
--------------------------------------------------------------------------------
1 | namespace MovableListView
2 | {
3 | public class ReorderCommandParam
4 | {
5 | private readonly int sourceRow;
6 | private readonly int sourceSection;
7 |
8 | private readonly int destinationRow;
9 | private readonly int destinationSection;
10 |
11 | public ReorderCommandParam(int sourceRow, int sourceSection, int destinationRow, int destinationSection)
12 | {
13 | this.sourceRow = sourceRow;
14 | this.sourceSection = sourceSection;
15 | this.destinationRow = destinationRow;
16 | this.destinationSection = destinationSection;
17 | }
18 |
19 | public int SourceRow
20 | {
21 | get { return sourceRow; }
22 | }
23 |
24 | public int SourceSection
25 | {
26 | get { return sourceSection; }
27 | }
28 |
29 | public int DestinationRow
30 | {
31 | get { return destinationRow; }
32 | }
33 |
34 | public int DestinationSection
35 | {
36 | get { return destinationSection; }
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/MovableListView/MovableListView/MovableListView/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Xamarin.Forms Drag and Drop ListView
2 | Hello!
3 |
4 | At the time of writing this code, Xamarin.Forms does not support rows reordering and this is solution of problem.
5 |
6 | **REMRAK:** This library implemented only for iOS, but i hope that Android version will be released soon.
7 |
8 |
9 | # Demo (see example in repository)
10 | ## iOS
11 | 
12 |
13 | # Usage
14 | ## Add dependencies
15 | ### PCL project
16 | **MovableListView.dll**
17 | ### iOS project
18 | **MovableListView.dll**
19 |
20 | **MovableListView.iOS.dll**
21 |
22 | ## ExportRenderer
23 | Add **ExportRenderer** line of code in your executable iOS poject.
24 |
25 | **For example:**
26 | ```C#
27 | [assembly: ExportRenderer(typeof(MovableViewCell), typeof(MovableViewCellRenderer))]
28 | namespace YourProjectName.iOS
29 | {
30 | [Register("AppDelegate")]
31 | public partial class AppDelegate ....
32 | ```
33 | ## How to use in code (two easy steps)
34 |
35 | ### Use MovableListView.IObservableCollectionEx
36 | *ListView.ItemsSource* collection must implement *MovableListView.IObservableCollectionEx*. You can use *MovableListView.ObservableCollectionEx* which provides all necessary methods and inherited from *ObservableCollection*.
37 |
38 | ### Use MovableViewCell
39 | Use MovableViewCell instead standart ViewCell.
40 |
41 | *For example:*
42 | ```xaml
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | ```
55 |
--------------------------------------------------------------------------------