├── .gitattributes
├── .gitignore
├── .mfractor
└── Xamarin.Forms.MultiSelectListView.2f118d44-a45c-42ba-9e9e-14ff3044b6db.db
├── MultiSelectListViewSample.sln
├── MultiSelectListViewSample
├── MultiSelectListViewSample.Android
│ ├── Assets
│ │ └── AboutAssets.txt
│ ├── MainActivity.cs
│ ├── MultiSelectListViewSample.Android.csproj
│ ├── Properties
│ │ ├── AndroidManifest.xml
│ │ └── AssemblyInfo.cs
│ └── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.designer.cs
│ │ ├── drawable-hdpi
│ │ ├── icon.png
│ │ └── select.png
│ │ ├── drawable-xhdpi
│ │ ├── icon.png
│ │ └── select.png
│ │ ├── drawable-xxhdpi
│ │ ├── icon.png
│ │ └── select.png
│ │ ├── drawable
│ │ ├── icon.png
│ │ └── select.png
│ │ ├── layout
│ │ ├── Main.axml
│ │ ├── Tabbar.axml
│ │ └── Toolbar.axml
│ │ ├── mipmap-hdpi
│ │ └── Icon.png
│ │ ├── mipmap-mdpi
│ │ └── Icon.png
│ │ ├── mipmap-xhdpi
│ │ └── Icon.png
│ │ ├── mipmap-xxhdpi
│ │ └── Icon.png
│ │ ├── mipmap-xxxhdpi
│ │ └── Icon.png
│ │ └── values
│ │ ├── Strings.xml
│ │ └── styles.xml
├── MultiSelectListViewSample.iOS
│ ├── AppDelegate.cs
│ ├── Entitlements.plist
│ ├── Info.plist
│ ├── Main.cs
│ ├── MultiSelectListViewSample.iOS.csproj
│ ├── 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
│ │ └── select.png
│ └── packages.config
└── MultiSelectListViewSample
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── MainPage.xaml
│ ├── MainPage.xaml.cs
│ ├── Models
│ └── User.cs
│ ├── MultiSelectListViewSample.csproj
│ ├── Resources
│ └── select.png
│ └── ViewModel
│ └── MainViewModel.cs
├── README.md
├── Resources
├── MultiSelectListViewIcon.png
└── select.png
├── Xamarin.Forms.MultiSelectListView.sln
└── Xamarin.Forms.MultiSelectListView
├── Behaviors
├── InheritBindingBehavior.cs
└── SelectedItemBehavior.cs
├── Controls
├── MultiSelect.cs
├── MultiSelectObservableCollection.cs
├── SelectableCell.cs
└── SelectableItem.cs
├── MultiSelectListViewIcon.ico
└── Xamarin.Forms.MultiSelectListView.csproj
/.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 | bld/
21 | [Bb]in/
22 | [Oo]bj/
23 | [Ll]og/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | project.fragment.lock.json
46 | artifacts/
47 |
48 | *_i.c
49 | *_p.c
50 | *_i.h
51 | *.ilk
52 | *.meta
53 | *.obj
54 | *.pch
55 | *.pdb
56 | *.pgc
57 | *.pgd
58 | *.rsp
59 | *.sbr
60 | *.tlb
61 | *.tli
62 | *.tlh
63 | *.tmp
64 | *.tmp_proj
65 | *.log
66 | *.vspscc
67 | *.vssscc
68 | .builds
69 | *.pidb
70 | *.svclog
71 | *.scc
72 |
73 | # Chutzpah Test files
74 | _Chutzpah*
75 |
76 | # Visual C++ cache files
77 | ipch/
78 | *.aps
79 | *.ncb
80 | *.opendb
81 | *.opensdf
82 | *.sdf
83 | *.cachefile
84 | *.VC.db
85 | *.VC.VC.opendb
86 |
87 | # Visual Studio profiler
88 | *.psess
89 | *.vsp
90 | *.vspx
91 | *.sap
92 |
93 | # TFS 2012 Local Workspace
94 | $tf/
95 |
96 | # Guidance Automation Toolkit
97 | *.gpState
98 |
99 | # ReSharper is a .NET coding add-in
100 | _ReSharper*/
101 | *.[Rr]e[Ss]harper
102 | *.DotSettings.user
103 |
104 | # JustCode is a .NET coding add-in
105 | .JustCode
106 |
107 | # TeamCity is a build add-in
108 | _TeamCity*
109 |
110 | # DotCover is a Code Coverage Tool
111 | *.dotCover
112 |
113 | # NCrunch
114 | _NCrunch_*
115 | .*crunch*.local.xml
116 | nCrunchTemp_*
117 |
118 | # MightyMoose
119 | *.mm.*
120 | AutoTest.Net/
121 |
122 | # Web workbench (sass)
123 | .sass-cache/
124 |
125 | # Installshield output folder
126 | [Ee]xpress/
127 |
128 | # DocProject is a documentation generator add-in
129 | DocProject/buildhelp/
130 | DocProject/Help/*.HxT
131 | DocProject/Help/*.HxC
132 | DocProject/Help/*.hhc
133 | DocProject/Help/*.hhk
134 | DocProject/Help/*.hhp
135 | DocProject/Help/Html2
136 | DocProject/Help/html
137 |
138 | # Click-Once directory
139 | publish/
140 |
141 | # Publish Web Output
142 | *.[Pp]ublish.xml
143 | *.azurePubxml
144 | # TODO: Comment the next line if you want to checkin your web deploy settings
145 | # but database connection strings (with potential passwords) will be unencrypted
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
150 | # checkin your Azure Web App publish settings, but sensitive information contained
151 | # in these scripts will be unencrypted
152 | PublishScripts/
153 |
154 | # NuGet Packages
155 | *.nupkg
156 | # The packages folder can be ignored because of Package Restore
157 | **/packages/*
158 | # except build/, which is used as an MSBuild target.
159 | !**/packages/build/
160 | # Uncomment if necessary however generally it will be regenerated when needed
161 | #!**/packages/repositories.config
162 | # NuGet v3's project.json files produces more ignoreable files
163 | *.nuget.props
164 | *.nuget.targets
165 |
166 | # Microsoft Azure Build Output
167 | csx/
168 | *.build.csdef
169 |
170 | # Microsoft Azure Emulator
171 | ecf/
172 | rcf/
173 |
174 | # Windows Store app package directories and files
175 | AppPackages/
176 | BundleArtifacts/
177 | Package.StoreAssociation.xml
178 | _pkginfo.txt
179 |
180 | # Visual Studio cache files
181 | # files ending in .cache can be ignored
182 | *.[Cc]ache
183 | # but keep track of directories ending in .cache
184 | !*.[Cc]ache/
185 |
186 | # Others
187 | ClientBin/
188 | ~$*
189 | *~
190 | *.dbmdl
191 | *.dbproj.schemaview
192 | *.jfm
193 | *.pfx
194 | *.publishsettings
195 | node_modules/
196 | orleans.codegen.cs
197 |
198 | # Since there are multiple workflows, uncomment next line to ignore bower_components
199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
200 | #bower_components/
201 |
202 | # RIA/Silverlight projects
203 | Generated_Code/
204 |
205 | # Backup & report files from converting an old project file
206 | # to a newer Visual Studio version. Backup files are not needed,
207 | # because we have git ;-)
208 | _UpgradeReport_Files/
209 | Backup*/
210 | UpgradeLog*.XML
211 | UpgradeLog*.htm
212 |
213 | # SQL Server files
214 | *.mdf
215 | *.ldf
216 |
217 | # Business Intelligence projects
218 | *.rdl.data
219 | *.bim.layout
220 | *.bim_*.settings
221 |
222 | # Microsoft Fakes
223 | FakesAssemblies/
224 |
225 | # GhostDoc plugin setting file
226 | *.GhostDoc.xml
227 |
228 | # Node.js Tools for Visual Studio
229 | .ntvs_analysis.dat
230 |
231 | # Visual Studio 6 build log
232 | *.plg
233 |
234 | # Visual Studio 6 workspace options file
235 | *.opt
236 |
237 | # Visual Studio LightSwitch build output
238 | **/*.HTMLClient/GeneratedArtifacts
239 | **/*.DesktopClient/GeneratedArtifacts
240 | **/*.DesktopClient/ModelManifest.xml
241 | **/*.Server/GeneratedArtifacts
242 | **/*.Server/ModelManifest.xml
243 | _Pvt_Extensions
244 |
245 | # Paket dependency manager
246 | .paket/paket.exe
247 | paket-files/
248 |
249 | # FAKE - F# Make
250 | .fake/
251 |
252 | # JetBrains Rider
253 | .idea/
254 | *.sln.iml
255 |
256 | # CodeRush
257 | .cr/
258 |
259 | # Python Tools for Visual Studio (PTVS)
260 | __pycache__/
261 | *.pyc
--------------------------------------------------------------------------------
/.mfractor/Xamarin.Forms.MultiSelectListView.2f118d44-a45c-42ba-9e9e-14ff3044b6db.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/.mfractor/Xamarin.Forms.MultiSelectListView.2f118d44-a45c-42ba-9e9e-14ff3044b6db.db
--------------------------------------------------------------------------------
/MultiSelectListViewSample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27130.2036
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiSelectListViewSample.Android", "MultiSelectListViewSample\MultiSelectListViewSample.Android\MultiSelectListViewSample.Android.csproj", "{8B453E8F-818C-4D8F-8587-D3795FBDAB41}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiSelectListViewSample.iOS", "MultiSelectListViewSample\MultiSelectListViewSample.iOS\MultiSelectListViewSample.iOS.csproj", "{D7C13468-DC85-4221-9A12-098B32EF0A77}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiSelectListViewSample", "MultiSelectListViewSample\MultiSelectListViewSample\MultiSelectListViewSample.csproj", "{C30DA23E-43BB-4A75-AD21-CDED53601DF8}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.Forms.MultiSelectListView", "Xamarin.Forms.MultiSelectListView\Xamarin.Forms.MultiSelectListView.csproj", "{D678F151-7695-4711-BD2F-461741434B25}"
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
17 | Ad-Hoc|ARM = Ad-Hoc|ARM
18 | Ad-Hoc|iPhone = Ad-Hoc|iPhone
19 | Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
20 | Ad-Hoc|x64 = Ad-Hoc|x64
21 | Ad-Hoc|x86 = Ad-Hoc|x86
22 | AppStore|Any CPU = AppStore|Any CPU
23 | AppStore|ARM = AppStore|ARM
24 | AppStore|iPhone = AppStore|iPhone
25 | AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
26 | AppStore|x64 = AppStore|x64
27 | AppStore|x86 = AppStore|x86
28 | Debug|Any CPU = Debug|Any CPU
29 | Debug|ARM = Debug|ARM
30 | Debug|iPhone = Debug|iPhone
31 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
32 | Debug|x64 = Debug|x64
33 | Debug|x86 = Debug|x86
34 | Release|Any CPU = Release|Any CPU
35 | Release|ARM = Release|ARM
36 | Release|iPhone = Release|iPhone
37 | Release|iPhoneSimulator = Release|iPhoneSimulator
38 | Release|x64 = Release|x64
39 | Release|x86 = Release|x86
40 | EndGlobalSection
41 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
42 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
43 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
44 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
45 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
46 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
47 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|ARM.Deploy.0 = Release|Any CPU
48 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
49 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
50 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
51 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
52 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
53 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
54 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
55 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|x64.Build.0 = Release|Any CPU
56 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|x64.Deploy.0 = Release|Any CPU
57 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
58 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|x86.Build.0 = Release|Any CPU
59 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Ad-Hoc|x86.Deploy.0 = Release|Any CPU
60 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
61 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|Any CPU.Build.0 = Release|Any CPU
62 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
63 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|ARM.ActiveCfg = Release|Any CPU
64 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|ARM.Build.0 = Release|Any CPU
65 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|ARM.Deploy.0 = Release|Any CPU
66 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|iPhone.ActiveCfg = Release|Any CPU
67 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|iPhone.Build.0 = Release|Any CPU
68 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|iPhone.Deploy.0 = Release|Any CPU
69 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
70 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
71 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
72 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|x64.ActiveCfg = Release|Any CPU
73 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|x64.Build.0 = Release|Any CPU
74 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|x64.Deploy.0 = Release|Any CPU
75 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|x86.ActiveCfg = Release|Any CPU
76 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|x86.Build.0 = Release|Any CPU
77 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.AppStore|x86.Deploy.0 = Release|Any CPU
78 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
79 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|Any CPU.Build.0 = Debug|Any CPU
80 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
81 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|ARM.ActiveCfg = Debug|Any CPU
82 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|ARM.Build.0 = Debug|Any CPU
83 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|ARM.Deploy.0 = Debug|Any CPU
84 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|iPhone.ActiveCfg = Debug|Any CPU
85 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|iPhone.Build.0 = Debug|Any CPU
86 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|iPhone.Deploy.0 = Debug|Any CPU
87 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
88 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
89 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
90 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|x64.ActiveCfg = Debug|Any CPU
91 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|x64.Build.0 = Debug|Any CPU
92 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|x64.Deploy.0 = Debug|Any CPU
93 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|x86.ActiveCfg = Debug|Any CPU
94 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|x86.Build.0 = Debug|Any CPU
95 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Debug|x86.Deploy.0 = Debug|Any CPU
96 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|Any CPU.ActiveCfg = Release|Any CPU
97 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|Any CPU.Build.0 = Release|Any CPU
98 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|Any CPU.Deploy.0 = Release|Any CPU
99 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|ARM.ActiveCfg = Release|Any CPU
100 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|ARM.Build.0 = Release|Any CPU
101 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|ARM.Deploy.0 = Release|Any CPU
102 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|iPhone.ActiveCfg = Release|Any CPU
103 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|iPhone.Build.0 = Release|Any CPU
104 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|iPhone.Deploy.0 = Release|Any CPU
105 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
106 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
107 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
108 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|x64.ActiveCfg = Release|Any CPU
109 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|x64.Build.0 = Release|Any CPU
110 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|x64.Deploy.0 = Release|Any CPU
111 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|x86.ActiveCfg = Release|Any CPU
112 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|x86.Build.0 = Release|Any CPU
113 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}.Release|x86.Deploy.0 = Release|Any CPU
114 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
115 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Ad-Hoc|ARM.ActiveCfg = Ad-Hoc|iPhone
116 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
117 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
118 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
119 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
120 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Ad-Hoc|x64.ActiveCfg = Ad-Hoc|iPhone
121 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Ad-Hoc|x86.ActiveCfg = Ad-Hoc|iPhone
122 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
123 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.AppStore|ARM.ActiveCfg = AppStore|iPhone
124 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
125 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.AppStore|iPhone.Build.0 = AppStore|iPhone
126 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
127 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
128 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.AppStore|x64.ActiveCfg = AppStore|iPhone
129 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.AppStore|x86.ActiveCfg = AppStore|iPhone
130 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Debug|Any CPU.ActiveCfg = Debug|iPhone
131 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Debug|ARM.ActiveCfg = Debug|iPhone
132 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Debug|iPhone.ActiveCfg = Debug|iPhone
133 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Debug|iPhone.Build.0 = Debug|iPhone
134 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
135 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
136 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Debug|x64.ActiveCfg = Debug|iPhone
137 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Debug|x86.ActiveCfg = Debug|iPhone
138 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Release|Any CPU.ActiveCfg = Release|iPhone
139 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Release|ARM.ActiveCfg = Release|iPhone
140 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Release|iPhone.ActiveCfg = Release|iPhone
141 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Release|iPhone.Build.0 = Release|iPhone
142 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
143 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
144 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Release|x64.ActiveCfg = Release|iPhone
145 | {D7C13468-DC85-4221-9A12-098B32EF0A77}.Release|x86.ActiveCfg = Release|iPhone
146 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
147 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
148 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
149 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
150 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
151 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
152 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
153 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
154 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
155 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
156 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
157 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
158 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
159 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|Any CPU.Build.0 = Debug|Any CPU
160 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|ARM.ActiveCfg = Debug|Any CPU
161 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|ARM.Build.0 = Debug|Any CPU
162 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
163 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|iPhone.Build.0 = Debug|Any CPU
164 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
165 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
166 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|x64.ActiveCfg = Debug|Any CPU
167 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|x64.Build.0 = Debug|Any CPU
168 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|x86.ActiveCfg = Debug|Any CPU
169 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.AppStore|x86.Build.0 = Debug|Any CPU
170 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
171 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
172 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|ARM.ActiveCfg = Debug|Any CPU
173 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|ARM.Build.0 = Debug|Any CPU
174 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|iPhone.ActiveCfg = Debug|Any CPU
175 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|iPhone.Build.0 = Debug|Any CPU
176 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
177 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
178 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|x64.ActiveCfg = Debug|Any CPU
179 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|x64.Build.0 = Debug|Any CPU
180 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|x86.ActiveCfg = Debug|Any CPU
181 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Debug|x86.Build.0 = Debug|Any CPU
182 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
183 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|Any CPU.Build.0 = Release|Any CPU
184 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|ARM.ActiveCfg = Release|Any CPU
185 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|ARM.Build.0 = Release|Any CPU
186 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|iPhone.ActiveCfg = Release|Any CPU
187 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|iPhone.Build.0 = Release|Any CPU
188 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
189 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
190 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|x64.ActiveCfg = Release|Any CPU
191 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|x64.Build.0 = Release|Any CPU
192 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|x86.ActiveCfg = Release|Any CPU
193 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}.Release|x86.Build.0 = Release|Any CPU
194 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
195 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
196 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
197 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
198 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
199 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
200 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
201 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
202 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
203 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|x64.Build.0 = Release|Any CPU
204 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
205 | {D678F151-7695-4711-BD2F-461741434B25}.Ad-Hoc|x86.Build.0 = Release|Any CPU
206 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
207 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|Any CPU.Build.0 = Release|Any CPU
208 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|ARM.ActiveCfg = Release|Any CPU
209 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|ARM.Build.0 = Release|Any CPU
210 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|iPhone.ActiveCfg = Release|Any CPU
211 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|iPhone.Build.0 = Release|Any CPU
212 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
213 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
214 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|x64.ActiveCfg = Release|Any CPU
215 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|x64.Build.0 = Release|Any CPU
216 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|x86.ActiveCfg = Release|Any CPU
217 | {D678F151-7695-4711-BD2F-461741434B25}.AppStore|x86.Build.0 = Release|Any CPU
218 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
219 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|Any CPU.Build.0 = Debug|Any CPU
220 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|ARM.ActiveCfg = Debug|Any CPU
221 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|ARM.Build.0 = Debug|Any CPU
222 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|iPhone.ActiveCfg = Debug|Any CPU
223 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|iPhone.Build.0 = Debug|Any CPU
224 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
225 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
226 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|x64.ActiveCfg = Debug|Any CPU
227 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|x64.Build.0 = Debug|Any CPU
228 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|x86.ActiveCfg = Debug|Any CPU
229 | {D678F151-7695-4711-BD2F-461741434B25}.Debug|x86.Build.0 = Debug|Any CPU
230 | {D678F151-7695-4711-BD2F-461741434B25}.Release|Any CPU.ActiveCfg = Release|Any CPU
231 | {D678F151-7695-4711-BD2F-461741434B25}.Release|Any CPU.Build.0 = Release|Any CPU
232 | {D678F151-7695-4711-BD2F-461741434B25}.Release|ARM.ActiveCfg = Release|Any CPU
233 | {D678F151-7695-4711-BD2F-461741434B25}.Release|ARM.Build.0 = Release|Any CPU
234 | {D678F151-7695-4711-BD2F-461741434B25}.Release|iPhone.ActiveCfg = Release|Any CPU
235 | {D678F151-7695-4711-BD2F-461741434B25}.Release|iPhone.Build.0 = Release|Any CPU
236 | {D678F151-7695-4711-BD2F-461741434B25}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
237 | {D678F151-7695-4711-BD2F-461741434B25}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
238 | {D678F151-7695-4711-BD2F-461741434B25}.Release|x64.ActiveCfg = Release|Any CPU
239 | {D678F151-7695-4711-BD2F-461741434B25}.Release|x64.Build.0 = Release|Any CPU
240 | {D678F151-7695-4711-BD2F-461741434B25}.Release|x86.ActiveCfg = Release|Any CPU
241 | {D678F151-7695-4711-BD2F-461741434B25}.Release|x86.Build.0 = Release|Any CPU
242 | EndGlobalSection
243 | GlobalSection(SolutionProperties) = preSolution
244 | HideSolutionNode = FALSE
245 | EndGlobalSection
246 | GlobalSection(ExtensibilityGlobals) = postSolution
247 | SolutionGuid = {BECCC206-DE63-480E-9A85-A6E53603B789}
248 | EndGlobalSection
249 | EndGlobal
250 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/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 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/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 | namespace MultiSelectListViewSample.Droid
11 | {
12 | [Activity(Label = "MultiSelectListViewSample", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
13 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
14 | {
15 | protected override void OnCreate(Bundle bundle)
16 | {
17 | TabLayoutResource = Resource.Layout.Tabbar;
18 | ToolbarResource = Resource.Layout.Toolbar;
19 |
20 | base.OnCreate(bundle);
21 |
22 | global::Xamarin.Forms.Forms.Init(this, bundle);
23 | LoadApplication(new App());
24 | }
25 | }
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/MultiSelectListViewSample.Android.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {8B453E8F-818C-4D8F-8587-D3795FBDAB41}
7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
8 | Library
9 | MultiSelectListViewSample.Droid
10 | MultiSelectListViewSample.Android
11 | v9.0
12 | True
13 | Resources\Resource.designer.cs
14 | Resource
15 | Properties\AndroidManifest.xml
16 | Resources
17 | Assets
18 |
19 |
20 |
21 |
22 | true
23 | full
24 | false
25 | bin\Debug
26 | DEBUG;
27 | prompt
28 | 4
29 | None
30 |
31 |
32 | true
33 | pdbonly
34 | true
35 | bin\Release
36 | prompt
37 | 4
38 | true
39 | false
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | 5.0.0.2125
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 | Designer
81 |
82 |
83 |
84 |
85 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}
86 | MultiSelectListViewSample
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/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("MultiSelectListViewSample.Android")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("MultiSelectListViewSample.Android")]
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 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/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 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-hdpi/select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-hdpi/select.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-xhdpi/select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-xhdpi/select.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-xxhdpi/select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable-xxhdpi/select.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable/icon.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable/select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/drawable/select.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/layout/Main.axml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/layout/Tabbar.axml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/layout/Toolbar.axml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-hdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-hdpi/Icon.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-mdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-mdpi/Icon.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-xhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-xhdpi/Icon.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-xxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-xxhdpi/Icon.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-xxxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/mipmap-xxxhdpi/Icon.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/values/Strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World, Click Me!
4 | MultiSelectListViewSample.Droid
5 |
6 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.Android/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
26 |
27 |
30 |
31 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 |
5 | using Foundation;
6 | using UIKit;
7 |
8 | namespace MultiSelectListViewSample.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 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.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 | 10.3
25 | CFBundleDisplayName
26 | MultiSelectListViewSample
27 | CFBundleIdentifier
28 | com.yourcompany.MultiSelectListViewSample
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 | CFBundleName
52 | MultiSelectListViewSample
53 |
54 |
55 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.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 MultiSelectListViewSample.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 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/MultiSelectListViewSample.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {D7C13468-DC85-4221-9A12-098B32EF0A77}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | Exe
11 | MultiSelectListViewSample.iOS
12 | Resources
13 | MultiSelectListViewSample.iOS
14 |
15 |
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\iPhoneSimulator\Debug
22 | DEBUG
23 | prompt
24 | 4
25 | false
26 | x86_64
27 | None
28 | true
29 |
30 |
31 | none
32 | true
33 | bin\iPhoneSimulator\Release
34 | prompt
35 | 4
36 | None
37 | 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 | ARM64
50 | iPhone Developer
51 | true
52 | Entitlements.plist
53 |
54 |
55 | none
56 | true
57 | bin\iPhone\Release
58 | prompt
59 | 4
60 | 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 | 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 | ARM64
86 | Automatic:AppStore
87 | iPhone Distribution
88 | Entitlements.plist
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 | 5.0.0.2125
124 |
125 |
126 |
127 |
128 |
129 | {C30DA23E-43BB-4A75-AD21-CDED53601DF8}
130 | MultiSelectListViewSample
131 |
132 |
133 |
134 |
135 |
136 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.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("MultiSelectListViewSample.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("MultiSelectListViewSample.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 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-60@2x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-60@3x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-76.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-76@2x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small-40.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small-40@2x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small-40@3x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small@2x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/Icon-Small@3x.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.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 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample.iOS/Resources/select.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample.iOS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample/App.xaml.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 MultiSelectListViewSample
9 | {
10 | public partial class App : Application
11 | {
12 | public App ()
13 | {
14 | InitializeComponent();
15 |
16 | MainPage = new MultiSelectListViewSample.MainPage();
17 | }
18 |
19 | protected override void OnStart ()
20 | {
21 | // Handle when your app starts
22 | }
23 |
24 | protected override void OnSleep ()
25 | {
26 | // Handle when your app sleeps
27 | }
28 |
29 | protected override void OnResume ()
30 | {
31 | // Handle when your app resumes
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
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 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using MultiSelectListViewSample.ViewModel;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using Xamarin.Forms;
8 |
9 | namespace MultiSelectListViewSample
10 | {
11 | public partial class MainPage : ContentPage
12 | {
13 | public MainPage()
14 | {
15 | InitializeComponent();
16 |
17 | this.BindingContext = new MainViewModel();
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample/Models/User.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace MultiSelectListViewSample.Models
6 | {
7 | public class User
8 | {
9 | public string Name { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample/MultiSelectListViewSample.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | *.xaml
22 |
23 |
24 | *.xaml
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample/Resources/select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/MultiSelectListViewSample/MultiSelectListViewSample/Resources/select.png
--------------------------------------------------------------------------------
/MultiSelectListViewSample/MultiSelectListViewSample/ViewModel/MainViewModel.cs:
--------------------------------------------------------------------------------
1 | using MultiSelectListViewSample.Models;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.ComponentModel;
5 | using System.Runtime.CompilerServices;
6 | using System.Text;
7 | using System.Windows.Input;
8 | using Xamarin.Forms;
9 | using Xamarin.Forms.MultiSelectListView;
10 |
11 | namespace MultiSelectListViewSample.ViewModel
12 | {
13 | class MainViewModel : INotifyPropertyChanged
14 | {
15 | #region Property
16 |
17 | public event PropertyChangedEventHandler PropertyChanged;
18 |
19 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
20 | {
21 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
22 | }
23 |
24 | protected bool SetProperty(ref T storage, T value, [CallerMemberName] string propertyName = null)
25 | {
26 | if (EqualityComparer.Default.Equals(storage, value))
27 | {
28 | return false;
29 | }
30 |
31 | storage = value;
32 | OnPropertyChanged(propertyName);
33 | return true;
34 | }
35 |
36 | #endregion
37 |
38 | public MultiSelectObservableCollection Users { get; }
39 |
40 | //public ICommand DisplayNameCommand => new Command(async name =>
41 | //{
42 | // await Application.Current.MainPage.DisplayAlert("Selected Name", name, "OK");
43 | //});
44 |
45 | public ICommand DisplayNameCommand => new Command(async user =>
46 | {
47 | await Application.Current.MainPage.DisplayAlert("Selected Name", user.Name, "OK");
48 | });
49 |
50 |
51 | public MainViewModel()
52 | {
53 | Users = new MultiSelectObservableCollection();
54 |
55 | User user = new User();
56 | user.Name = "Bertuzzi";
57 | Users.Add(user);
58 |
59 | Users[0].IsSelected = true;
60 |
61 | user = new User();
62 | user.Name = "Bruna";
63 | Users.Add(user);
64 |
65 | user = new User();
66 | user.Name = "Polly";
67 | Users.Add(user);
68 |
69 | user = new User();
70 | user.Name = "Rodolfo";
71 | Users.Add(user);
72 |
73 | user = new User();
74 | user.Name = "Lester";
75 | Users.Add(user);
76 |
77 |
78 | }
79 |
80 |
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Xamarin.Forms.MultiSelectListView
2 |
3 | Select multiple rows in a listview with xamarin.forms.
4 |
5 | By default the listview control lets you only select one row at a time. The MultiSelectListView control uses a modified ObservableCollection to mark which rows have been selected.
6 |
7 | You can use any image to mark the selected row.
8 |
9 | ###### This is the component, works on iOS and Android.
10 |
11 | 
12 |
13 | **NuGet**
14 |
15 | |Name|Info|
16 | | ------------------- | :------------------: |
17 | |MultiSelectListView|[](https://www.nuget.org/packages/Xamarin.Forms.MultiSelectListView/)|
18 | |Build status|[](https://ci.appveyor.com/project/ThiagoBertuzzi/xamarin-forms-multiselectlistview)|
19 |
20 | **Build History**
21 |
22 | [](https://ci.appveyor.com/project/ThiagoBertuzzi/xamarin-forms-multiselectlistview/history)
23 |
24 | **Platform Support**
25 |
26 | MultiSelectListView is a .NET Standard 2.0 library.Its only dependency is the Xamarin.Forms
27 |
28 | ## Setup / Usage
29 |
30 | Basically the key is to use the MultiSelectObservableCollection instead of the conventional ObservableCollection.
31 |
32 | ```csharp
33 |
34 | public MultiSelectObservableCollection Users { get; }
35 |
36 | ```
37 |
38 | The "IsSelected" property notifies when an object has been selected.
39 |
40 | in the Xaml file we must declare our control xmlns: lv = "clr-namespace: Xamarin.Forms.MultiSelectListView; assembly = Xamarin.Forms.MultiSelectListView", for example .
41 |
42 | Then use the new MultiSelect.Enable property to enable the multiple selection in the listview.
43 |
44 | we must use the SelectableCell that contains the property to inform the icon of the selection
45 |
46 | ```csharp
47 |
48 |
49 |
54 |
55 |
56 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 | ```
89 |
90 | ## SelectedItemBehavior
91 |
92 | SelectedItemBehavior to execute the command when the SelectedItem event occurs in ListView. Pass the item selected in ListView to Command.
93 |
94 | Based on SelectedItemBehavior by [Atsushi Nakamura](https://github.com/nuitsjp) (https://github.com/nuitsjp/Xamarin.Forms.BehaviorsPack).
95 |
96 | If ClearSelected property is true, SelectedItem property of ListView is cleared after command execution. Default ClearSelected property value is true.
97 |
98 | You can use the object of the selected line
99 |
100 | ```csharp
101 |
102 |
103 |
104 |
105 |
106 | ```
107 |
108 | Or specify the property you want to pass as a parameter
109 |
110 | ```csharp
111 |
112 |
113 |
115 |
116 | ```
117 |
118 |
119 | The complete example can be downloaded here: https://github.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/tree/master/MultiSelectListViewSample
120 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/Resources/MultiSelectListViewIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/Resources/MultiSelectListViewIcon.png
--------------------------------------------------------------------------------
/Resources/select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/Resources/select.png
--------------------------------------------------------------------------------
/Xamarin.Forms.MultiSelectListView.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27130.2036
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.Forms.MultiSelectListView", "Xamarin.Forms.MultiSelectListView\Xamarin.Forms.MultiSelectListView.csproj", "{2F118D44-A45C-42BA-9E9E-14FF3044B6DB}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {2F118D44-A45C-42BA-9E9E-14FF3044B6DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {2F118D44-A45C-42BA-9E9E-14FF3044B6DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {2F118D44-A45C-42BA-9E9E-14FF3044B6DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {2F118D44-A45C-42BA-9E9E-14FF3044B6DB}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {54D6D30E-BD72-45DF-8C22-E173DCF6A51F}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Xamarin.Forms.MultiSelectListView/Behaviors/InheritBindingBehavior.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | namespace Xamarin.Forms.MultiSelectListView
3 | {
4 | public class InheritBindingBehavior : Behavior where T : BindableObject
5 | {
6 | private bool _inheritedBindingContedt;
7 |
8 | protected T AssociatedObject { get; private set; }
9 |
10 | protected override void OnAttachedTo(T bindable)
11 | {
12 | base.OnAttachedTo(bindable);
13 |
14 | AssociatedObject = bindable;
15 | InheritBindingContext(bindable);
16 |
17 | bindable.BindingContextChanged += OnBindingContextChanged;
18 | }
19 |
20 | private void OnBindingContextChanged(object sender, EventArgs e)
21 | {
22 | InheritBindingContext(AssociatedObject);
23 | }
24 |
25 | private void InheritBindingContext(T bindableObject)
26 | {
27 | if (BindingContext == null || _inheritedBindingContedt)
28 | {
29 | BindingContext = bindableObject.BindingContext;
30 | _inheritedBindingContedt = true;
31 | }
32 | }
33 |
34 | protected override void OnDetachingFrom(T bindable)
35 | {
36 | BindingContext = null;
37 | bindable.BindingContextChanged -= OnBindingContextChanged;
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Xamarin.Forms.MultiSelectListView/Behaviors/SelectedItemBehavior.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Reflection;
3 | using System.Windows.Input;
4 |
5 | namespace Xamarin.Forms.MultiSelectListView
6 | {
7 | public class SelectedItemBehavior : InheritBindingBehavior
8 | {
9 | public static readonly BindableProperty CommandProperty =
10 | BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(SelectedItemBehavior));
11 |
12 | public static readonly BindableProperty ClearSelectedProperty =
13 | BindableProperty.Create(nameof(Command), typeof(bool), typeof(SelectedItemBehavior), true);
14 |
15 | public static readonly BindableProperty PropertyNameProperty =
16 | BindableProperty.Create(nameof(PropertyName), typeof(string), typeof(SelectedItemBehavior));
17 |
18 | public ICommand Command
19 | {
20 | get => (ICommand)GetValue(CommandProperty);
21 | set => SetValue(CommandProperty, value);
22 | }
23 |
24 | public bool ClearSelected
25 | {
26 | get => (bool)GetValue(ClearSelectedProperty);
27 | set => SetValue(ClearSelectedProperty, value);
28 | }
29 |
30 | public string PropertyName
31 | {
32 | get => (string)GetValue(PropertyNameProperty);
33 | set => SetValue(PropertyNameProperty, value);
34 | }
35 |
36 | protected override void OnAttachedTo(ListView bindable)
37 | {
38 | base.OnAttachedTo(bindable);
39 | bindable.ItemSelected += OnItemSelected;
40 | }
41 |
42 | protected override void OnDetachingFrom(ListView bindable)
43 | {
44 | bindable.ItemSelected -= OnItemSelected;
45 | base.OnDetachingFrom(bindable);
46 | }
47 |
48 | private void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
49 | {
50 | if (Command == null || e.SelectedItem == null)
51 | return;
52 |
53 | object parameter;
54 | if (PropertyName != null)
55 | {
56 | object propertyValue = (e.SelectedItem as SelectableItem).Data;
57 |
58 | var propInfo = propertyValue.GetType().GetTypeInfo().GetDeclaredProperty(PropertyName);
59 | propertyValue = propInfo.GetValue(propertyValue);
60 | if (propertyValue == null)
61 | {
62 | propertyValue = "";
63 | }
64 |
65 | parameter = propertyValue;
66 | }
67 | else
68 | {
69 | parameter = (e.SelectedItem as SelectableItem).Data;
70 | }
71 |
72 | if (Command.CanExecute(parameter))
73 | {
74 | Command.Execute(parameter);
75 | }
76 |
77 | if (ClearSelected)
78 | {
79 | AssociatedObject.SelectedItem = null;
80 | }
81 | }
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/Xamarin.Forms.MultiSelectListView/Controls/MultiSelect.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using Xamarin.Forms;
5 |
6 | namespace Xamarin.Forms.MultiSelectListView
7 | {
8 | public class MultiSelect
9 | {
10 |
11 | public static readonly BindableProperty EnableProperty =
12 | BindableProperty.CreateAttached("Enable", typeof(bool), typeof(ListView), false, propertyChanged: OnMultiSelectChanged);
13 |
14 | public static bool GetEnable(BindableObject view) => (bool)view.GetValue(EnableProperty);
15 |
16 | public static void SetEnable(BindableObject view, bool value) => view.SetValue(EnableProperty, value);
17 |
18 | private static void OnMultiSelectChanged(BindableObject bindable, object oldValue, object newValue)
19 | {
20 | var listView = bindable as ListView;
21 | if (listView != null)
22 | {
23 | // Remove event
24 | listView.ItemSelected -= OnItemSelected;
25 |
26 | // Add new event to Multiple Select
27 | if (true.Equals(newValue))
28 | {
29 | listView.ItemSelected += OnItemSelected;
30 | }
31 | }
32 | }
33 |
34 | private static void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
35 | {
36 | var item = e.SelectedItem as SelectableItem;
37 | if (item != null)
38 | {
39 | // toggle the selection property
40 | item.IsSelected = !item.IsSelected;
41 | }
42 |
43 | // deselect the item
44 | ((ListView)sender).SelectedItem = null;
45 | }
46 |
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Xamarin.Forms.MultiSelectListView/Controls/MultiSelectObservableCollection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Linq;
5 | using System.Text;
6 |
7 | namespace Xamarin.Forms.MultiSelectListView
8 | {
9 | public class MultiSelectObservableCollection : ObservableCollection>
10 | {
11 | public MultiSelectObservableCollection()
12 | : base()
13 | {
14 | }
15 |
16 | public MultiSelectObservableCollection(IEnumerable collection)
17 | : base(collection.Select(c => new SelectableItem(c)))
18 | {
19 | }
20 |
21 | public MultiSelectObservableCollection(IEnumerable> collection)
22 | : base(collection)
23 | {
24 | }
25 |
26 | public IEnumerable SelectedItems => Items.Where(i => i.IsSelected).Select(i => i.Data);
27 |
28 | public IEnumerable UnselectedItems => Items.Where(i => !i.IsSelected).Select(i => i.Data);
29 |
30 | public void Add(T item, bool selected = false)
31 | {
32 | Add(new SelectableItem(item, selected));
33 | }
34 |
35 | public void Insert(int index, T item, bool selected = false)
36 | {
37 | if (item == null)
38 | throw new ArgumentNullException(nameof(item));
39 |
40 | Insert(index, new SelectableItem(item, selected));
41 | }
42 |
43 | public bool IsSelected(T item)
44 | {
45 | if (item == null)
46 | throw new ArgumentNullException(nameof(item));
47 |
48 | var idx = IndexOf(item);
49 | return idx != -1 && Items[idx].IsSelected;
50 | }
51 |
52 | public bool Contains(T item)
53 | {
54 | if (item == null)
55 | throw new ArgumentNullException(nameof(item));
56 |
57 | return IndexOf(item) != -1;
58 | }
59 |
60 | public int IndexOf(T item)
61 | {
62 | if (item == null)
63 | throw new ArgumentNullException(nameof(item));
64 |
65 | for (var i = 0; i < Count; i++)
66 | {
67 | if (item.Equals(Items[i].Data))
68 | {
69 | return i;
70 | }
71 | }
72 | return -1;
73 | }
74 |
75 | public bool Remove(T item)
76 | {
77 | if (item == null)
78 | throw new ArgumentNullException(nameof(item));
79 |
80 | var i = IndexOf(item);
81 | if (i != -1)
82 | {
83 | RemoveAt(i);
84 | return true;
85 | }
86 | return false;
87 | }
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/Xamarin.Forms.MultiSelectListView/Controls/SelectableCell.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace Xamarin.Forms.MultiSelectListView
6 | {
7 | [ContentProperty(nameof(DataView))]
8 | public class SelectableCell : ViewCell
9 | {
10 | private Grid rootGrid;
11 | private View dataView;
12 | private View checkView;
13 |
14 | public SelectableCell()
15 | {
16 | rootGrid = new Grid
17 | {
18 | Padding = 12,
19 | ColumnDefinitions =
20 | {
21 | new ColumnDefinition { Width = GridLength.Star },
22 | new ColumnDefinition { Width = GridLength.Auto }
23 | }
24 | };
25 |
26 | View = rootGrid;
27 |
28 | var check = new BoxView
29 | {
30 | Color = Color.CornflowerBlue,
31 | WidthRequest = 12,
32 | HeightRequest = 12,
33 | };
34 | CheckView = check;
35 |
36 | var text = new Label();
37 | text.SetBinding(Label.TextProperty, ".");
38 | DataView = text;
39 | }
40 |
41 | public View CheckView
42 | {
43 | get { return checkView; }
44 | set
45 | {
46 | if (checkView == value || View != rootGrid)
47 | return;
48 |
49 | OnPropertyChanging();
50 |
51 | if (checkView != null)
52 | {
53 | checkView.RemoveBinding(VisualElement.IsVisibleProperty);
54 | rootGrid.Children.Remove(checkView);
55 | }
56 |
57 | checkView = value;
58 |
59 | if (checkView != null)
60 | {
61 | checkView.SetBinding(VisualElement.IsVisibleProperty, nameof(SelectableItem.IsSelected));
62 | Grid.SetColumn(checkView, 1);
63 | Grid.SetColumnSpan(checkView, 1);
64 | Grid.SetRow(checkView, 0);
65 | Grid.SetRowSpan(checkView, 1);
66 | checkView.HorizontalOptions = LayoutOptions.End;
67 | checkView.VerticalOptions = LayoutOptions.Center;
68 | rootGrid.Children.Add(checkView);
69 | }
70 |
71 | OnPropertyChanged();
72 | }
73 | }
74 |
75 | public View DataView
76 | {
77 | get { return dataView; }
78 | set
79 | {
80 | if (dataView == value || View != rootGrid)
81 | return;
82 |
83 | OnPropertyChanging();
84 |
85 | if (dataView != null)
86 | {
87 | dataView.RemoveBinding(BindingContextProperty);
88 | rootGrid.Children.Remove(dataView);
89 | }
90 |
91 | dataView = value;
92 |
93 | if (dataView != null)
94 | {
95 | dataView.SetBinding(BindingContextProperty, nameof(SelectableItem.Data));
96 | Grid.SetColumn(dataView, 0);
97 | Grid.SetColumnSpan(dataView, 1);
98 | Grid.SetRow(dataView, 0);
99 | Grid.SetRowSpan(dataView, 1);
100 | dataView.HorizontalOptions = LayoutOptions.StartAndExpand;
101 | dataView.VerticalOptions = LayoutOptions.FillAndExpand;
102 | rootGrid.Children.Add(dataView);
103 | }
104 |
105 | OnPropertyChanged();
106 | }
107 | }
108 | }
109 | }
110 |
--------------------------------------------------------------------------------
/Xamarin.Forms.MultiSelectListView/Controls/SelectableItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace Xamarin.Forms.MultiSelectListView
6 | {
7 | public class SelectableItem : BindableObject
8 | {
9 | public static readonly BindableProperty DataProperty =
10 | BindableProperty.Create(nameof(Data), typeof(object), typeof(SelectableItem), null);
11 |
12 | public static readonly BindableProperty IsSelectedProperty =
13 | BindableProperty.Create(nameof(IsSelected), typeof(bool), typeof(SelectableItem), false);
14 |
15 | public SelectableItem(object data)
16 | {
17 | Data = data;
18 | }
19 |
20 | public SelectableItem(object data, bool isSelected)
21 | {
22 | Data = data;
23 | IsSelected = isSelected;
24 | }
25 |
26 | public object Data
27 | {
28 | get { return GetValue(DataProperty); }
29 | set { SetValue(DataProperty, value); }
30 | }
31 |
32 | public bool IsSelected
33 | {
34 | get { return (bool)GetValue(IsSelectedProperty); }
35 | set { SetValue(IsSelectedProperty, value); }
36 | }
37 | }
38 |
39 | public class SelectableItem : SelectableItem
40 | {
41 | public SelectableItem(T data)
42 | : base(data)
43 | {
44 | }
45 |
46 | public SelectableItem(T data, bool isSelected)
47 | : base(data, isSelected)
48 | {
49 | }
50 |
51 | public new T Data
52 | {
53 | get { return (T)base.Data; }
54 | set { base.Data = value; }
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/Xamarin.Forms.MultiSelectListView/MultiSelectListViewIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/56b4c9614e5b2f6e1d3e8262365e4067cb66cb85/Xamarin.Forms.MultiSelectListView/MultiSelectListViewIcon.ico
--------------------------------------------------------------------------------
/Xamarin.Forms.MultiSelectListView/Xamarin.Forms.MultiSelectListView.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 | true
6 | tbertuzzi
7 | KBits
8 | Multi-select ListView Control to Xamarin.Forms
9 | http://opensource.org/licenses/MS-PL
10 | https://github.com/TBertuzzi/Xamarin.Forms.MultiSelectListView
11 | Include SelectedItemBehavior
12 | Copyright ©2018 KBits
13 | xamarin xamarin.forms controls listview
14 | https://github.com/TBertuzzi/Xamarin.Forms.MultiSelectListView/blob/master/Resources/MultiSelectListViewIcon.png?raw=true
15 | https://github.com/TBertuzzi/Xamarin.Forms.MultiSelectListView
16 | MultiSelectListViewIcon.ico
17 | 2.2.0
18 | 2.2.0.0
19 | 2.2.0.0
20 | 2.2.0
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------