├── .gitignore
├── DnaXEi1wzw.gif
├── GridSplitterApp.sln
├── GridSplitterApp
├── GridSplitterApp.Droid
│ ├── Assets
│ │ └── AboutAssets.txt
│ ├── GridSplitterApp.Droid.csproj
│ ├── MainActivity.cs
│ ├── Properties
│ │ ├── AndroidManifest.xml
│ │ └── AssemblyInfo.cs
│ ├── Renderers
│ │ └── GridSplitterRenderer.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.Designer.cs
│ │ ├── drawable-hdpi
│ │ │ └── icon.png
│ │ ├── drawable-xhdpi
│ │ │ └── icon.png
│ │ ├── drawable-xxhdpi
│ │ │ └── icon.png
│ │ └── drawable
│ │ │ └── icon.png
│ └── packages.config
├── GridSplitterApp.WinPhone
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Assets
│ │ ├── AlignmentGrid.png
│ │ ├── ApplicationIcon.png
│ │ └── Tiles
│ │ │ ├── FlipCycleTileLarge.png
│ │ │ ├── FlipCycleTileMedium.png
│ │ │ ├── FlipCycleTileSmall.png
│ │ │ ├── IconicTileMediumLarge.png
│ │ │ └── IconicTileSmall.png
│ ├── GridSplitterApp.WinPhone.csproj
│ ├── LocalizedStrings.cs
│ ├── MainPage.xaml
│ ├── MainPage.xaml.cs
│ ├── Properties
│ │ ├── AppManifest.xml
│ │ ├── AssemblyInfo.cs
│ │ └── WMAppManifest.xml
│ ├── README_FIRST.txt
│ ├── Renderers
│ │ └── GridSplitterRenderer.cs
│ ├── Resources
│ │ ├── AppResources.Designer.cs
│ │ └── AppResources.resx
│ ├── SplashScreenImage.jpg
│ ├── Toolkit.Content
│ │ ├── ApplicationBar.Add.png
│ │ ├── ApplicationBar.Cancel.png
│ │ ├── ApplicationBar.Check.png
│ │ ├── ApplicationBar.Delete.png
│ │ └── ApplicationBar.Select.png
│ └── packages.config
├── GridSplitterApp.iOS
│ ├── AppDelegate.cs
│ ├── Entitlements.plist
│ ├── GridSplitterApp.iOS.csproj
│ ├── Info.plist
│ ├── Main.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Renderer
│ │ └── GridSplitterRenderer.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
└── GridSplitterApp
│ ├── App.cs
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Controls
│ └── GridSplitter.cs
│ ├── GridSplitterApp.csproj
│ ├── MainPage.xaml
│ ├── MainPage.xaml.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── TestPage.xaml
│ ├── TestPage.xaml.cs
│ ├── baboon.png
│ └── packages.config
├── README.md
└── mGkd879Oqv.gif
/.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 | [Xx]64/
19 | [Xx]86/
20 | [Bb]uild/
21 | bld/
22 | [Bb]in/
23 | [Oo]bj/
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 | artifacts/
46 |
47 | *_i.c
48 | *_p.c
49 | *_i.h
50 | *.ilk
51 | *.meta
52 | *.obj
53 | *.pch
54 | *.pdb
55 | *.pgc
56 | *.pgd
57 | *.rsp
58 | *.sbr
59 | *.tlb
60 | *.tli
61 | *.tlh
62 | *.tmp
63 | *.tmp_proj
64 | *.log
65 | *.vspscc
66 | *.vssscc
67 | .builds
68 | *.pidb
69 | *.svclog
70 | *.scc
71 |
72 | # Chutzpah Test files
73 | _Chutzpah*
74 |
75 | # Visual C++ cache files
76 | ipch/
77 | *.aps
78 | *.ncb
79 | *.opendb
80 | *.opensdf
81 | *.sdf
82 | *.cachefile
83 | *.VC.db
84 |
85 | # Visual Studio profiler
86 | *.psess
87 | *.vsp
88 | *.vspx
89 | *.sap
90 |
91 | # TFS 2012 Local Workspace
92 | $tf/
93 |
94 | # Guidance Automation Toolkit
95 | *.gpState
96 |
97 | # ReSharper is a .NET coding add-in
98 | _ReSharper*/
99 | *.[Rr]e[Ss]harper
100 | *.DotSettings.user
101 |
102 | # JustCode is a .NET coding add-in
103 | .JustCode
104 |
105 | # TeamCity is a build add-in
106 | _TeamCity*
107 |
108 | # DotCover is a Code Coverage Tool
109 | *.dotCover
110 |
111 | # NCrunch
112 | _NCrunch_*
113 | .*crunch*.local.xml
114 | nCrunchTemp_*
115 |
116 | # MightyMoose
117 | *.mm.*
118 | AutoTest.Net/
119 |
120 | # Web workbench (sass)
121 | .sass-cache/
122 |
123 | # Installshield output folder
124 | [Ee]xpress/
125 |
126 | # DocProject is a documentation generator add-in
127 | DocProject/buildhelp/
128 | DocProject/Help/*.HxT
129 | DocProject/Help/*.HxC
130 | DocProject/Help/*.hhc
131 | DocProject/Help/*.hhk
132 | DocProject/Help/*.hhp
133 | DocProject/Help/Html2
134 | DocProject/Help/html
135 |
136 | # Click-Once directory
137 | publish/
138 |
139 | # Publish Web Output
140 | *.[Pp]ublish.xml
141 | *.azurePubxml
142 |
143 | # TODO: Un-comment the next line if you do not want to checkin
144 | # your web deploy settings because they may include unencrypted
145 | # passwords
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # NuGet Packages
150 | *.nupkg
151 | # The packages folder can be ignored because of Package Restore
152 | **/packages/*
153 | # except build/, which is used as an MSBuild target.
154 | !**/packages/build/
155 | # Uncomment if necessary however generally it will be regenerated when needed
156 | #!**/packages/repositories.config
157 | # NuGet v3's project.json files produces more ignoreable files
158 | *.nuget.props
159 | *.nuget.targets
160 |
161 | # Microsoft Azure Build Output
162 | csx/
163 | *.build.csdef
164 |
165 | # Microsoft Azure Emulator
166 | ecf/
167 | rcf/
168 |
169 | # Windows Store app package directory
170 | AppPackages/
171 | BundleArtifacts/
172 |
173 | # Visual Studio cache files
174 | # files ending in .cache can be ignored
175 | *.[Cc]ache
176 | # but keep track of directories ending in .cache
177 | !*.[Cc]ache/
178 |
179 | # Others
180 | ClientBin/
181 | [Ss]tyle[Cc]op.*
182 | ~$*
183 | *~
184 | *.dbmdl
185 | *.dbproj.schemaview
186 | *.pfx
187 | *.publishsettings
188 | node_modules/
189 | orleans.codegen.cs
190 |
191 | # RIA/Silverlight projects
192 | Generated_Code/
193 |
194 | # Backup & report files from converting an old project file
195 | # to a newer Visual Studio version. Backup files are not needed,
196 | # because we have git ;-)
197 | _UpgradeReport_Files/
198 | Backup*/
199 | UpgradeLog*.XML
200 | UpgradeLog*.htm
201 |
202 | # SQL Server files
203 | *.mdf
204 | *.ldf
205 |
206 | # Business Intelligence projects
207 | *.rdl.data
208 | *.bim.layout
209 | *.bim_*.settings
210 |
211 | # Microsoft Fakes
212 | FakesAssemblies/
213 |
214 | # GhostDoc plugin setting file
215 | *.GhostDoc.xml
216 |
217 | # Node.js Tools for Visual Studio
218 | .ntvs_analysis.dat
219 |
220 | # Visual Studio 6 build log
221 | *.plg
222 |
223 | # Visual Studio 6 workspace options file
224 | *.opt
225 |
226 | # Visual Studio LightSwitch build output
227 | **/*.HTMLClient/GeneratedArtifacts
228 | **/*.DesktopClient/GeneratedArtifacts
229 | **/*.DesktopClient/ModelManifest.xml
230 | **/*.Server/GeneratedArtifacts
231 | **/*.Server/ModelManifest.xml
232 | _Pvt_Extensions
233 |
234 | # LightSwitch generated files
235 | GeneratedArtifacts/
236 | ModelManifest.xml
237 |
238 | # Paket dependency manager
239 | .paket/paket.exe
240 |
241 | # FAKE - F# Make
242 | .fake/
243 |
--------------------------------------------------------------------------------
/DnaXEi1wzw.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/DnaXEi1wzw.gif
--------------------------------------------------------------------------------
/GridSplitterApp.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GridSplitterApp", "GridSplitterApp\GridSplitterApp\GridSplitterApp.csproj", "{E774DB01-6487-4563-80D3-4AA602A1006A}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GridSplitterApp.iOS", "GridSplitterApp\GridSplitterApp.iOS\GridSplitterApp.iOS.csproj", "{56EF3417-5374-41F4-9840-0A68E3E68B28}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GridSplitterApp.Droid", "GridSplitterApp\GridSplitterApp.Droid\GridSplitterApp.Droid.csproj", "{19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GridSplitterApp.WinPhone", "GridSplitterApp\GridSplitterApp.WinPhone\GridSplitterApp.WinPhone.csproj", "{BACA7240-BCEE-4126-84C0-4A6D642459FD}"
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|Mixed Platforms = Ad-Hoc|Mixed Platforms
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|Mixed Platforms = AppStore|Mixed Platforms
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|Mixed Platforms = Debug|Mixed Platforms
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|Mixed Platforms = Release|Mixed Platforms
39 | Release|x86 = Release|x86
40 | EndGlobalSection
41 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
42 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
43 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
44 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
45 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
46 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
47 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Ad-Hoc|Mixed Platforms.ActiveCfg = Release|Any CPU
48 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Ad-Hoc|Mixed Platforms.Build.0 = Release|Any CPU
49 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
50 | {E774DB01-6487-4563-80D3-4AA602A1006A}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
51 | {E774DB01-6487-4563-80D3-4AA602A1006A}.AppStore|Any CPU.Build.0 = Release|Any CPU
52 | {E774DB01-6487-4563-80D3-4AA602A1006A}.AppStore|ARM.ActiveCfg = Release|Any CPU
53 | {E774DB01-6487-4563-80D3-4AA602A1006A}.AppStore|iPhone.ActiveCfg = Release|Any CPU
54 | {E774DB01-6487-4563-80D3-4AA602A1006A}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
55 | {E774DB01-6487-4563-80D3-4AA602A1006A}.AppStore|Mixed Platforms.ActiveCfg = Release|Any CPU
56 | {E774DB01-6487-4563-80D3-4AA602A1006A}.AppStore|Mixed Platforms.Build.0 = Release|Any CPU
57 | {E774DB01-6487-4563-80D3-4AA602A1006A}.AppStore|x86.ActiveCfg = Release|Any CPU
58 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
59 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Debug|Any CPU.Build.0 = Debug|Any CPU
60 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Debug|ARM.ActiveCfg = Debug|Any CPU
61 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Debug|iPhone.ActiveCfg = Debug|Any CPU
62 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
63 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
64 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
65 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Debug|x86.ActiveCfg = Debug|Any CPU
66 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Release|Any CPU.ActiveCfg = Release|Any CPU
67 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Release|Any CPU.Build.0 = Release|Any CPU
68 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Release|ARM.ActiveCfg = Release|Any CPU
69 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Release|iPhone.ActiveCfg = Release|Any CPU
70 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
71 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
72 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
73 | {E774DB01-6487-4563-80D3-4AA602A1006A}.Release|x86.ActiveCfg = Release|Any CPU
74 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
75 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Ad-Hoc|ARM.ActiveCfg = Ad-Hoc|iPhone
76 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
77 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
78 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
79 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
80 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Ad-Hoc|Mixed Platforms.ActiveCfg = Ad-Hoc|iPhone
81 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Ad-Hoc|Mixed Platforms.Build.0 = Ad-Hoc|iPhone
82 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Ad-Hoc|x86.ActiveCfg = Ad-Hoc|iPhone
83 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
84 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.AppStore|ARM.ActiveCfg = AppStore|iPhone
85 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
86 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.AppStore|iPhone.Build.0 = AppStore|iPhone
87 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
88 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
89 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.AppStore|Mixed Platforms.ActiveCfg = AppStore|iPhone
90 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.AppStore|Mixed Platforms.Build.0 = AppStore|iPhone
91 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.AppStore|x86.ActiveCfg = AppStore|iPhone
92 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Debug|Any CPU.ActiveCfg = Debug|iPhone
93 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Debug|ARM.ActiveCfg = Debug|iPhone
94 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Debug|iPhone.ActiveCfg = Debug|iPhone
95 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Debug|iPhone.Build.0 = Debug|iPhone
96 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
97 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
98 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Debug|Mixed Platforms.ActiveCfg = Debug|iPhone
99 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Debug|Mixed Platforms.Build.0 = Debug|iPhone
100 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Debug|x86.ActiveCfg = Debug|iPhone
101 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Release|Any CPU.ActiveCfg = Release|iPhone
102 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Release|ARM.ActiveCfg = Release|iPhone
103 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Release|iPhone.ActiveCfg = Release|iPhone
104 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Release|iPhone.Build.0 = Release|iPhone
105 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
106 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
107 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Release|Mixed Platforms.ActiveCfg = Release|iPhone
108 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Release|Mixed Platforms.Build.0 = Release|iPhone
109 | {56EF3417-5374-41F4-9840-0A68E3E68B28}.Release|x86.ActiveCfg = Release|iPhone
110 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
111 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
112 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
113 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
114 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
115 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
116 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|Mixed Platforms.ActiveCfg = Release|Any CPU
117 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|Mixed Platforms.Build.0 = Release|Any CPU
118 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|Mixed Platforms.Deploy.0 = Release|Any CPU
119 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
120 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
121 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|Any CPU.Build.0 = Release|Any CPU
122 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
123 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|ARM.ActiveCfg = Release|Any CPU
124 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|iPhone.ActiveCfg = Release|Any CPU
125 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
126 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|Mixed Platforms.ActiveCfg = Release|Any CPU
127 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|Mixed Platforms.Build.0 = Release|Any CPU
128 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|Mixed Platforms.Deploy.0 = Release|Any CPU
129 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.AppStore|x86.ActiveCfg = Release|Any CPU
130 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
131 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
132 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
133 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|ARM.ActiveCfg = Debug|Any CPU
134 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|iPhone.ActiveCfg = Debug|Any CPU
135 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
136 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
137 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
138 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU
139 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Debug|x86.ActiveCfg = Debug|Any CPU
140 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
141 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|Any CPU.Build.0 = Release|Any CPU
142 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|Any CPU.Deploy.0 = Release|Any CPU
143 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|ARM.ActiveCfg = Release|Any CPU
144 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|iPhone.ActiveCfg = Release|Any CPU
145 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
146 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
147 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
148 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU
149 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}.Release|x86.ActiveCfg = Release|Any CPU
150 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
151 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
152 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
153 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|ARM.ActiveCfg = Release|ARM
154 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|ARM.Build.0 = Release|ARM
155 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|ARM.Deploy.0 = Release|ARM
156 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
157 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
158 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|Mixed Platforms.ActiveCfg = Release|x86
159 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|Mixed Platforms.Build.0 = Release|x86
160 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|Mixed Platforms.Deploy.0 = Release|x86
161 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|x86.ActiveCfg = Release|x86
162 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|x86.Build.0 = Release|x86
163 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Ad-Hoc|x86.Deploy.0 = Release|x86
164 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
165 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|Any CPU.Build.0 = Release|Any CPU
166 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
167 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|ARM.ActiveCfg = Release|ARM
168 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|ARM.Build.0 = Release|ARM
169 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|ARM.Deploy.0 = Release|ARM
170 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|iPhone.ActiveCfg = Release|Any CPU
171 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
172 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|Mixed Platforms.ActiveCfg = Release|x86
173 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|Mixed Platforms.Build.0 = Release|x86
174 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|Mixed Platforms.Deploy.0 = Release|x86
175 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|x86.ActiveCfg = Release|x86
176 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|x86.Build.0 = Release|x86
177 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.AppStore|x86.Deploy.0 = Release|x86
178 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
179 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
180 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
181 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|ARM.ActiveCfg = Debug|ARM
182 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|ARM.Build.0 = Debug|ARM
183 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|ARM.Deploy.0 = Debug|ARM
184 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|iPhone.ActiveCfg = Debug|Any CPU
185 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
186 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
187 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
188 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
189 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|Mixed Platforms.Build.0 = Debug|x86
190 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|Mixed Platforms.Deploy.0 = Debug|x86
191 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|x86.ActiveCfg = Debug|x86
192 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|x86.Build.0 = Debug|x86
193 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Debug|x86.Deploy.0 = Debug|x86
194 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
195 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|Any CPU.Build.0 = Release|Any CPU
196 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|Any CPU.Deploy.0 = Release|Any CPU
197 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|ARM.ActiveCfg = Release|ARM
198 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|ARM.Build.0 = Release|ARM
199 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|ARM.Deploy.0 = Release|ARM
200 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|iPhone.ActiveCfg = Release|Any CPU
201 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
202 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|Mixed Platforms.ActiveCfg = Release|x86
203 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|Mixed Platforms.Build.0 = Release|x86
204 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|Mixed Platforms.Deploy.0 = Release|x86
205 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|x86.ActiveCfg = Release|x86
206 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|x86.Build.0 = Release|x86
207 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}.Release|x86.Deploy.0 = Release|x86
208 | EndGlobalSection
209 | GlobalSection(SolutionProperties) = preSolution
210 | HideSolutionNode = FALSE
211 | EndGlobalSection
212 | EndGlobal
213 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/Assets/AboutAssets.txt:
--------------------------------------------------------------------------------
1 | Any raw assets you want to be deployed with your application can be placed in
2 | this directory (and child directories) and given a Build Action of "AndroidAsset".
3 |
4 | These files will be deployed with you package and will be accessible using Android's
5 | AssetManager, like this:
6 |
7 | public class ReadAsset : Activity
8 | {
9 | protected override void OnCreate (Bundle bundle)
10 | {
11 | base.OnCreate (bundle);
12 |
13 | InputStream input = Assets.Open ("my_asset.txt");
14 | }
15 | }
16 |
17 | Additionally, some Android functions will automatically load asset files:
18 |
19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
20 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/GridSplitterApp.Droid.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {19E981C1-ACA0-4170-BCB0-7517B1CBFA0E}
8 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
9 | Library
10 | Properties
11 | GridSplitterApp.Droid
12 | GridSplitterApp.Droid
13 | 512
14 | true
15 | Resources\Resource.Designer.cs
16 | Off
17 | Properties\AndroidManifest.xml
18 | false
19 | armeabi,armeabi-v7a,x86
20 |
21 |
22 |
23 |
24 |
25 | v8.0
26 |
27 |
28 |
29 |
30 | true
31 | full
32 | false
33 | bin\Debug\
34 | DEBUG;TRACE
35 | prompt
36 | 4
37 | None
38 |
39 |
40 | pdbonly
41 | true
42 | bin\Release\
43 | TRACE
44 | prompt
45 | 4
46 | False
47 |
48 |
49 |
50 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\MonoAndroid10\FormsViewGroup.dll
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | ..\..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Animated.Vector.Drawable.dll
60 |
61 |
62 | ..\..\packages\Xamarin.Android.Support.Annotations.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Annotations.dll
63 |
64 |
65 | ..\..\packages\Xamarin.Android.Support.Compat.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Compat.dll
66 |
67 |
68 | ..\..\packages\Xamarin.Android.Support.Core.UI.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Core.UI.dll
69 |
70 |
71 | ..\..\packages\Xamarin.Android.Support.Core.Utils.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Core.Utils.dll
72 |
73 |
74 | ..\..\packages\Xamarin.Android.Support.Design.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Design.dll
75 |
76 |
77 | ..\..\packages\Xamarin.Android.Support.Fragment.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Fragment.dll
78 |
79 |
80 | ..\..\packages\Xamarin.Android.Support.Media.Compat.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Media.Compat.dll
81 |
82 |
83 | ..\..\packages\Xamarin.Android.Support.Transition.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Transition.dll
84 |
85 |
86 | ..\..\packages\Xamarin.Android.Support.v4.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v4.dll
87 |
88 |
89 | ..\..\packages\Xamarin.Android.Support.v7.AppCompat.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.AppCompat.dll
90 |
91 |
92 | ..\..\packages\Xamarin.Android.Support.v7.CardView.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.CardView.dll
93 |
94 |
95 | ..\..\packages\Xamarin.Android.Support.v7.MediaRouter.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.MediaRouter.dll
96 |
97 |
98 | ..\..\packages\Xamarin.Android.Support.v7.Palette.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.Palette.dll
99 |
100 |
101 | ..\..\packages\Xamarin.Android.Support.v7.RecyclerView.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.RecyclerView.dll
102 |
103 |
104 | ..\..\packages\Xamarin.Android.Support.Vector.Drawable.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Vector.Drawable.dll
105 |
106 |
107 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\MonoAndroid10\Xamarin.Forms.Core.dll
108 |
109 |
110 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\MonoAndroid10\Xamarin.Forms.Platform.dll
111 |
112 |
113 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll
114 |
115 |
116 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll
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 | GridSplitterApp
142 | {E774DB01-6487-4563-80D3-4AA602A1006A}
143 |
144 |
145 |
146 |
153 |
154 |
155 |
156 |
157 | 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}.
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/MainActivity.cs:
--------------------------------------------------------------------------------
1 | using Android.App;
2 | using Android.Content.PM;
3 | using Android.OS;
4 | using Xamarin.Forms;
5 | using Xamarin.Forms.Platform.Android;
6 |
7 | namespace GridSplitterApp.Droid
8 | {
9 | [Activity(Label = "GridSplitterApp", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
10 | public class MainActivity : FormsApplicationActivity
11 | {
12 | protected override void OnCreate(Bundle bundle)
13 | {
14 | base.OnCreate(bundle);
15 |
16 | Forms.Init(this, bundle);
17 | LoadApplication(new App());
18 | }
19 | }
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 | using Android.App;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("GridSplitterApp.Droid")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("GridSplitterApp.Droid")]
14 | [assembly: AssemblyCopyright("Copyright © 2014")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 | [assembly: ComVisible(false)]
18 |
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Build and Revision Numbers
27 | // by using the '*' as shown below:
28 | // [assembly: AssemblyVersion("1.0.*")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
32 | // Add some common permissions, these can be removed if not needed
33 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)]
34 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
35 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/Renderers/GridSplitterRenderer.cs:
--------------------------------------------------------------------------------
1 | using Android.Content;
2 | using Android.Support.V4.View;
3 | using Android.Views;
4 | using GridSplitterApp.Controls;
5 | using GridSplitterApp.Droid.Renderers;
6 | using Xamarin.Forms;
7 | using Xamarin.Forms.Platform.Android;
8 |
9 | [assembly: ExportRenderer(typeof(GridSplitter), typeof(GridSplitterRenderer))]
10 |
11 | namespace GridSplitterApp.Droid.Renderers
12 | {
13 | public class GridSplitterRenderer : VisualElementRenderer
14 | {
15 | private Point _lastPoint;
16 |
17 | public GridSplitterRenderer(Context context) : base(context)
18 | {
19 | }
20 |
21 | public override bool OnTouchEvent(Android.Views.MotionEvent e)
22 | {
23 | switch (e.Action)
24 | {
25 | case (int)MotionEventActions.Down:
26 | {
27 | _lastPoint = new Point(e.RawX, e.RawY);
28 | break;
29 | }
30 |
31 | case MotionEventActions.Move:
32 | {
33 | Element.UpdateGrid(Context.FromPixels(e.RawX - _lastPoint.X), Context.FromPixels(e.RawY - _lastPoint.Y));
34 | _lastPoint = new Point(e.RawX, e.RawY);
35 | break;
36 | }
37 | }
38 |
39 | return true;
40 | }
41 | }
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/Resources/AboutResources.txt:
--------------------------------------------------------------------------------
1 | Images, layout descriptions, binary blobs and string dictionaries can be included
2 | in your application as resource files. Various Android APIs are designed to
3 | operate on the resource IDs instead of dealing with images, strings or binary blobs
4 | directly.
5 |
6 | For example, a sample Android app that contains a user interface layout (main.xml),
7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
8 | would keep its resources in the "Resources" directory of the application:
9 |
10 | Resources/
11 | drawable-hdpi/
12 | icon.png
13 |
14 | drawable-ldpi/
15 | icon.png
16 |
17 | drawable-mdpi/
18 | icon.png
19 |
20 | layout/
21 | main.xml
22 |
23 | values/
24 | strings.xml
25 |
26 | In order to get the build system to recognize Android resources, set the build action to
27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but
28 | instead operate on resource IDs. When you compile an Android application that uses resources,
29 | the build system will package the resources for distribution and generate a class called
30 | "Resource" that contains the tokens for each one of the resources included. For example,
31 | for the above Resources layout, this is what the Resource class would expose:
32 |
33 | public class Resource {
34 | public class drawable {
35 | public const int icon = 0x123;
36 | }
37 |
38 | public class layout {
39 | public const int main = 0x456;
40 | }
41 |
42 | public class strings {
43 | public const int first_string = 0xabc;
44 | public const int second_string = 0xbcd;
45 | }
46 | }
47 |
48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
50 | string in the dictionary file values/strings.xml.
51 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/Resources/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.Droid/Resources/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/Resources/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.Droid/Resources/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/Resources/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.Droid/Resources/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/Resources/drawable/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.Droid/Resources/drawable/icon.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.Droid/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Diagnostics;
3 | using System.Resources;
4 | using System.Windows;
5 | using System.Windows.Markup;
6 | using System.Windows.Navigation;
7 | using Microsoft.Phone.Controls;
8 | using Microsoft.Phone.Shell;
9 | using GridSplitterApp.WinPhone.Resources;
10 |
11 | namespace GridSplitterApp.WinPhone
12 | {
13 | public partial class App : Application
14 | {
15 | ///
16 | /// Provides easy access to the root frame of the Phone Application.
17 | ///
18 | /// The root frame of the Phone Application.
19 | public static PhoneApplicationFrame RootFrame { get; private set; }
20 |
21 | ///
22 | /// Constructor for the Application object.
23 | ///
24 | public App()
25 | {
26 | // Global handler for uncaught exceptions.
27 | UnhandledException += Application_UnhandledException;
28 |
29 | // Standard XAML initialization
30 | InitializeComponent();
31 |
32 | // Phone-specific initialization
33 | InitializePhoneApplication();
34 |
35 | // Language display initialization
36 | InitializeLanguage();
37 |
38 | // Show graphics profiling information while debugging.
39 | if (Debugger.IsAttached)
40 | {
41 | // Display the current frame rate counters.
42 | Application.Current.Host.Settings.EnableFrameRateCounter = true;
43 |
44 | // Show the areas of the app that are being redrawn in each frame.
45 | //Application.Current.Host.Settings.EnableRedrawRegions = true;
46 |
47 | // Enable non-production analysis visualization mode,
48 | // which shows areas of a page that are handed off to GPU with a colored overlay.
49 | //Application.Current.Host.Settings.EnableCacheVisualization = true;
50 |
51 | // Prevent the screen from turning off while under the debugger by disabling
52 | // the application's idle detection.
53 | // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run
54 | // and consume battery power when the user is not using the phone.
55 | PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
56 | }
57 |
58 | }
59 |
60 | // Code to execute when the application is launching (eg, from Start)
61 | // This code will not execute when the application is reactivated
62 | private void Application_Launching(object sender, LaunchingEventArgs e)
63 | {
64 | }
65 |
66 | // Code to execute when the application is activated (brought to foreground)
67 | // This code will not execute when the application is first launched
68 | private void Application_Activated(object sender, ActivatedEventArgs e)
69 | {
70 | }
71 |
72 | // Code to execute when the application is deactivated (sent to background)
73 | // This code will not execute when the application is closing
74 | private void Application_Deactivated(object sender, DeactivatedEventArgs e)
75 | {
76 | }
77 |
78 | // Code to execute when the application is closing (eg, user hit Back)
79 | // This code will not execute when the application is deactivated
80 | private void Application_Closing(object sender, ClosingEventArgs e)
81 | {
82 | }
83 |
84 | // Code to execute if a navigation fails
85 | private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
86 | {
87 | if (Debugger.IsAttached)
88 | {
89 | // A navigation has failed; break into the debugger
90 | Debugger.Break();
91 | }
92 | }
93 |
94 | // Code to execute on Unhandled Exceptions
95 | private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
96 | {
97 | if (Debugger.IsAttached)
98 | {
99 | // An unhandled exception has occurred; break into the debugger
100 | Debugger.Break();
101 | }
102 | }
103 |
104 | #region Phone application initialization
105 |
106 | // Avoid double-initialization
107 | private bool phoneApplicationInitialized = false;
108 |
109 | // Do not add any additional code to this method
110 | private void InitializePhoneApplication()
111 | {
112 | if (phoneApplicationInitialized)
113 | return;
114 |
115 | // Create the frame but don't set it as RootVisual yet; this allows the splash
116 | // screen to remain active until the application is ready to render.
117 | RootFrame = new PhoneApplicationFrame();
118 | RootFrame.Navigated += CompleteInitializePhoneApplication;
119 |
120 | // Handle navigation failures
121 | RootFrame.NavigationFailed += RootFrame_NavigationFailed;
122 |
123 | // Handle reset requests for clearing the backstack
124 | RootFrame.Navigated += CheckForResetNavigation;
125 |
126 | // Ensure we don't initialize again
127 | phoneApplicationInitialized = true;
128 | }
129 |
130 | // Do not add any additional code to this method
131 | private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e)
132 | {
133 | // Set the root visual to allow the application to render
134 | if (RootVisual != RootFrame)
135 | RootVisual = RootFrame;
136 |
137 | // Remove this handler since it is no longer needed
138 | RootFrame.Navigated -= CompleteInitializePhoneApplication;
139 | }
140 |
141 | private void CheckForResetNavigation(object sender, NavigationEventArgs e)
142 | {
143 | // If the app has received a 'reset' navigation, then we need to check
144 | // on the next navigation to see if the page stack should be reset
145 | if (e.NavigationMode == NavigationMode.Reset)
146 | RootFrame.Navigated += ClearBackStackAfterReset;
147 | }
148 |
149 | private void ClearBackStackAfterReset(object sender, NavigationEventArgs e)
150 | {
151 | // Unregister the event so it doesn't get called again
152 | RootFrame.Navigated -= ClearBackStackAfterReset;
153 |
154 | // Only clear the stack for 'new' (forward) and 'refresh' navigations
155 | if (e.NavigationMode != NavigationMode.New && e.NavigationMode != NavigationMode.Refresh)
156 | return;
157 |
158 | // For UI consistency, clear the entire page stack
159 | while (RootFrame.RemoveBackEntry() != null)
160 | {
161 | ; // do nothing
162 | }
163 | }
164 |
165 | #endregion
166 |
167 | // Initialize the app's font and flow direction as defined in its localized resource strings.
168 | //
169 | // To ensure that the font of your application is aligned with its supported languages and that the
170 | // FlowDirection for each of those languages follows its traditional direction, ResourceLanguage
171 | // and ResourceFlowDirection should be initialized in each resx file to match these values with that
172 | // file's culture. For example:
173 | //
174 | // AppResources.es-ES.resx
175 | // ResourceLanguage's value should be "es-ES"
176 | // ResourceFlowDirection's value should be "LeftToRight"
177 | //
178 | // AppResources.ar-SA.resx
179 | // ResourceLanguage's value should be "ar-SA"
180 | // ResourceFlowDirection's value should be "RightToLeft"
181 | //
182 | // For more info on localizing Windows Phone apps see http://go.microsoft.com/fwlink/?LinkId=262072.
183 | //
184 | private void InitializeLanguage()
185 | {
186 | try
187 | {
188 | // Set the font to match the display language defined by the
189 | // ResourceLanguage resource string for each supported language.
190 | //
191 | // Fall back to the font of the neutral language if the Display
192 | // language of the phone is not supported.
193 | //
194 | // If a compiler error is hit then ResourceLanguage is missing from
195 | // the resource file.
196 | RootFrame.Language = XmlLanguage.GetLanguage(AppResources.ResourceLanguage);
197 |
198 | // Set the FlowDirection of all elements under the root frame based
199 | // on the ResourceFlowDirection resource string for each
200 | // supported language.
201 | //
202 | // If a compiler error is hit then ResourceFlowDirection is missing from
203 | // the resource file.
204 | FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.ResourceFlowDirection);
205 | RootFrame.FlowDirection = flow;
206 | }
207 | catch
208 | {
209 | // If an exception is caught here it is most likely due to either
210 | // ResourceLangauge not being correctly set to a supported language
211 | // code or ResourceFlowDirection is set to a value other than LeftToRight
212 | // or RightToLeft.
213 |
214 | if (Debugger.IsAttached)
215 | {
216 | Debugger.Break();
217 | }
218 |
219 | throw;
220 | }
221 | }
222 | }
223 | }
224 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Assets/AlignmentGrid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Assets/AlignmentGrid.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Assets/ApplicationIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Assets/ApplicationIcon.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/FlipCycleTileLarge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/FlipCycleTileLarge.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/FlipCycleTileMedium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/FlipCycleTileMedium.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/FlipCycleTileSmall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/FlipCycleTileSmall.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/IconicTileMediumLarge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/IconicTileMediumLarge.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/IconicTileSmall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Assets/Tiles/IconicTileSmall.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/GridSplitterApp.WinPhone.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {BACA7240-BCEE-4126-84C0-4A6D642459FD}
7 | {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
8 | Library
9 | Properties
10 | GridSplitterApp.WinPhone
11 | GridSplitterApp.WinPhone
12 | WindowsPhone
13 | v8.0
14 | $(TargetFrameworkVersion)
15 | true
16 |
17 |
18 | true
19 | true
20 | PhoneApp1_$(Configuration)_$(Platform).xap
21 | Properties\AppManifest.xml
22 | GridSplitterApp.WinPhone.App
23 | true
24 | 11.0
25 | true
26 | 367aad42
27 |
28 |
29 | true
30 | full
31 | false
32 | Bin\Debug
33 | DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE
34 | true
35 | true
36 | prompt
37 | 4
38 |
39 |
40 | pdbonly
41 | true
42 | Bin\Release
43 | TRACE;SILVERLIGHT;WINDOWS_PHONE
44 | true
45 | true
46 | prompt
47 | 4
48 |
49 |
50 | true
51 | full
52 | false
53 | Bin\x86\Debug
54 | DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE
55 | true
56 | true
57 | prompt
58 | 4
59 |
60 |
61 | pdbonly
62 | true
63 | Bin\x86\Release
64 | TRACE;SILVERLIGHT;WINDOWS_PHONE
65 | true
66 | true
67 | prompt
68 | 4
69 |
70 |
71 | true
72 | full
73 | false
74 | Bin\ARM\Debug
75 | DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE
76 | true
77 | true
78 | prompt
79 | 4
80 |
81 |
82 | pdbonly
83 | true
84 | Bin\ARM\Release
85 | TRACE;SILVERLIGHT;WINDOWS_PHONE
86 | true
87 | true
88 | prompt
89 | 4
90 |
91 |
92 |
93 | App.xaml
94 |
95 |
96 |
97 | MainPage.xaml
98 |
99 |
100 |
101 |
102 | True
103 | True
104 | AppResources.resx
105 |
106 |
107 |
108 |
109 | Designer
110 | MSBuild:Compile
111 |
112 |
113 | Designer
114 | MSBuild:Compile
115 |
116 |
117 |
118 |
119 |
120 |
121 | Designer
122 |
123 |
124 |
125 |
126 |
127 | PreserveNewest
128 |
129 |
130 |
131 | PreserveNewest
132 |
133 |
134 | PreserveNewest
135 |
136 |
137 | PreserveNewest
138 |
139 |
140 | PreserveNewest
141 |
142 |
143 | PreserveNewest
144 |
145 |
146 | PreserveNewest
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 | PublicResXFileCodeGenerator
157 | AppResources.Designer.cs
158 |
159 |
160 |
161 |
162 | GridSplitterApp
163 |
164 |
165 |
166 |
167 | ..\..\packages\WPtoolkit.4.2013.08.16\lib\wp8\Microsoft.Phone.Controls.Toolkit.dll
168 | True
169 |
170 |
171 | ..\..\packages\Xamarin.Forms.1.4.2.6359\lib\WP80\Xamarin.Forms.Core.dll
172 | True
173 |
174 |
175 | ..\..\packages\Xamarin.Forms.1.4.2.6359\lib\WP80\Xamarin.Forms.Platform.dll
176 | True
177 |
178 |
179 | ..\..\packages\Xamarin.Forms.1.4.2.6359\lib\WP80\Xamarin.Forms.Platform.WP8.dll
180 | True
181 |
182 |
183 | ..\..\packages\Xamarin.Forms.1.4.2.6359\lib\WP80\Xamarin.Forms.Xaml.dll
184 | True
185 |
186 |
187 |
188 |
189 |
196 |
197 |
198 |
199 |
200 | This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
201 |
202 |
203 |
204 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/LocalizedStrings.cs:
--------------------------------------------------------------------------------
1 | using GridSplitterApp.WinPhone.Resources;
2 |
3 | namespace GridSplitterApp.WinPhone
4 | {
5 | ///
6 | /// Provides access to string resources.
7 | ///
8 | public class LocalizedStrings
9 | {
10 | private static AppResources _localizedResources = new AppResources();
11 |
12 | public AppResources LocalizedResources { get { return _localizedResources; } }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
16 |
17 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Net;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Navigation;
8 | using Microsoft.Phone.Controls;
9 | using Microsoft.Phone.Shell;
10 |
11 | namespace GridSplitterApp.WinPhone
12 | {
13 | public partial class MainPage : global::Xamarin.Forms.Platform.WinPhone.FormsApplicationPage
14 | {
15 | public MainPage()
16 | {
17 | InitializeComponent();
18 | SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;
19 |
20 | global::Xamarin.Forms.Forms.Init();
21 | LoadApplication(new GridSplitterApp.App());
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Properties/AppManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 | using System.Resources;
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("GridSplitterApp.WinPhone")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("GridSplitterApp.WinPhone")]
14 | [assembly: AssemblyCopyright("Copyright © 2014")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 |
18 | // Setting ComVisible to false makes the types in this assembly not visible
19 | // to COM components. If you need to access a type in this assembly from
20 | // COM, set the ComVisible attribute to true on that type.
21 | [assembly: ComVisible(false)]
22 |
23 | // The following GUID is for the ID of the typelib if this project is exposed to COM
24 | [assembly: Guid("65077432-0c92-466b-b68d-911a8ec84f1d")]
25 |
26 | // Version information for an assembly consists of the following four values:
27 | //
28 | // Major Version
29 | // Minor Version
30 | // Build Number
31 | // Revision
32 | //
33 | // You can specify all the values or you can default the Revision and Build Numbers
34 | // by using the '*' as shown below:
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 | [assembly: NeutralResourcesLanguageAttribute("en-US")]
38 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Properties/WMAppManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Assets\ApplicationIcon.png
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | Assets\Tiles\FlipCycleTileSmall.png
21 | 0
22 | Assets\Tiles\FlipCycleTileMedium.png
23 | GridSplitterApp.WinPhone
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/README_FIRST.txt:
--------------------------------------------------------------------------------
1 | For the Windows Phone toolkit make sure that you have
2 | marked the icons in the "Toolkit.Content" folder as content. That way they
3 | can be used as the icons for the ApplicationBar control.
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Renderers/GridSplitterRenderer.cs:
--------------------------------------------------------------------------------
1 | using GridSplitterApp.Controls;
2 | using GridSplitterApp.WinPhone.Renderers;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Diagnostics;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using Xamarin.Forms;
10 | using Xamarin.Forms.Platform.WinPhone;
11 |
12 | [assembly: ExportRendererAttribute(typeof(GridSplitter), typeof(GridSplitterRenderer))]
13 |
14 | namespace GridSplitterApp.WinPhone.Renderers
15 | {
16 | public class GridSplitterRenderer : ViewRenderer
17 | {
18 | private System.Windows.Point? _lastPt;
19 |
20 | protected override void OnElementChanged(ElementChangedEventArgs e)
21 | {
22 | base.OnElementChanged(e);
23 |
24 | if (e.OldElement != null)
25 | {
26 | this.MouseLeftButtonDown -= GridSplitterRenderer_MouseLeftButtonDown;
27 | this.MouseLeftButtonUp -= GridSplitterRenderer_MouseLeftButtonUp;
28 | this.MouseMove -= GridSplitterRenderer_MouseMove;
29 | }
30 |
31 | if (e.NewElement != null)
32 | {
33 | this.MouseLeftButtonDown += GridSplitterRenderer_MouseLeftButtonDown;
34 | this.MouseLeftButtonUp += GridSplitterRenderer_MouseLeftButtonUp;
35 | this.MouseMove += GridSplitterRenderer_MouseMove;
36 | }
37 | }
38 |
39 | void GridSplitterRenderer_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
40 | {
41 | _lastPt = e.GetPosition(null);
42 | this.CaptureMouse();
43 | }
44 |
45 | void GridSplitterRenderer_MouseMove(object sender, System.Windows.Input.MouseEventArgs e)
46 | {
47 | if (_lastPt != null)
48 | {
49 | System.Windows.Point pt = e.GetPosition(null);
50 | (Element as GridSplitter).UpdateGrid(pt.X - _lastPt.Value.X, pt.Y - _lastPt.Value.Y);
51 | _lastPt = pt;
52 | }
53 | }
54 |
55 | void GridSplitterRenderer_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
56 | {
57 | _lastPt = null;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Resources/AppResources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17626
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace GridSplitterApp.WinPhone.Resources
12 | {
13 | using System;
14 |
15 |
16 | ///
17 | /// A strongly-typed resource class, for looking up localized strings, etc.
18 | ///
19 | // This class was auto-generated by the StronglyTypedResourceBuilder
20 | // class via a tool like ResGen or Visual Studio.
21 | // To add or remove a member, edit your .ResX file then rerun ResGen
22 | // with the /str option, or rebuild your VS project.
23 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
24 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
25 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
26 | public class AppResources
27 | {
28 |
29 | private static global::System.Resources.ResourceManager resourceMan;
30 |
31 | private static global::System.Globalization.CultureInfo resourceCulture;
32 |
33 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
34 | internal AppResources()
35 | {
36 | }
37 |
38 | ///
39 | /// Returns the cached ResourceManager instance used by this class.
40 | ///
41 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
42 | public static global::System.Resources.ResourceManager ResourceManager
43 | {
44 | get
45 | {
46 | if (object.ReferenceEquals(resourceMan, null))
47 | {
48 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GridSplitterApp.WinPhone.Resources.AppResources", typeof(AppResources).Assembly);
49 | resourceMan = temp;
50 | }
51 | return resourceMan;
52 | }
53 | }
54 |
55 | ///
56 | /// Overrides the current thread's CurrentUICulture property for all
57 | /// resource lookups using this strongly typed resource class.
58 | ///
59 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
60 | public static global::System.Globalization.CultureInfo Culture
61 | {
62 | get
63 | {
64 | return resourceCulture;
65 | }
66 | set
67 | {
68 | resourceCulture = value;
69 | }
70 | }
71 |
72 | ///
73 | /// Looks up a localized string similar to LeftToRight.
74 | ///
75 | public static string ResourceFlowDirection
76 | {
77 | get
78 | {
79 | return ResourceManager.GetString("ResourceFlowDirection", resourceCulture);
80 | }
81 | }
82 |
83 | ///
84 | /// Looks up a localized string similar to us-EN.
85 | ///
86 | public static string ResourceLanguage
87 | {
88 | get
89 | {
90 | return ResourceManager.GetString("ResourceLanguage", resourceCulture);
91 | }
92 | }
93 |
94 | ///
95 | /// Looks up a localized string similar to MY APPLICATION.
96 | ///
97 | public static string ApplicationTitle
98 | {
99 | get
100 | {
101 | return ResourceManager.GetString("ApplicationTitle", resourceCulture);
102 | }
103 | }
104 |
105 | ///
106 | /// Looks up a localized string similar to button.
107 | ///
108 | public static string AppBarButtonText
109 | {
110 | get
111 | {
112 | return ResourceManager.GetString("AppBarButtonText", resourceCulture);
113 | }
114 | }
115 |
116 | ///
117 | /// Looks up a localized string similar to menu item.
118 | ///
119 | public static string AppBarMenuItemText
120 | {
121 | get
122 | {
123 | return ResourceManager.GetString("AppBarMenuItemText", resourceCulture);
124 | }
125 | }
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Resources/AppResources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
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 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 | LeftToRight
122 | Controls the FlowDirection for all elements in the RootFrame. Set to the traditional direction of this resource file's language
123 |
124 |
125 | en-US
126 | Controls the Language and ensures that the font for all elements in the RootFrame aligns with the app's language. Set to the language code of this resource file's language.
127 |
128 |
129 | MY APPLICATION
130 |
131 |
132 | add
133 |
134 |
135 | Menu Item
136 |
137 |
138 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/SplashScreenImage.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/SplashScreenImage.jpg
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Add.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Cancel.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Check.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Check.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Delete.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.WinPhone/Toolkit.Content/ApplicationBar.Select.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.WinPhone/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.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 GridSplitterApp.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 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/GridSplitterApp.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | iPhoneSimulator
7 | {56EF3417-5374-41F4-9840-0A68E3E68B28}
8 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
9 | Exe
10 | GridSplitterApp.iOS
11 | Resources
12 | GridSplitterAppiOS
13 |
14 |
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\iPhoneSimulator\Debug
21 | DEBUG
22 | prompt
23 | 4
24 | false
25 | x86_64
26 | None
27 | true
28 |
29 |
30 | true
31 |
32 |
33 | none
34 | true
35 | bin\iPhoneSimulator\Release
36 | prompt
37 | 4
38 | None
39 | i386, x86_64
40 | false
41 | Entitlements.plist
42 |
43 |
44 | true
45 | full
46 | false
47 | bin\iPhone\Debug
48 | DEBUG
49 | prompt
50 | 4
51 | false
52 | ARMv7, ARM64
53 | iPhone Developer
54 | true
55 | Entitlements.plist
56 |
57 |
58 | none
59 | true
60 | bin\iPhone\Release
61 | prompt
62 | 4
63 | ARMv7, ARM64
64 | false
65 | iPhone Developer
66 | Entitlements.plist
67 |
68 |
69 | none
70 | True
71 | bin\iPhone\Ad-Hoc
72 | prompt
73 | 4
74 | False
75 | ARMv7, ARM64
76 | True
77 | Automatic:AdHoc
78 | iPhone Distribution
79 | Entitlements.plist
80 |
81 |
82 | none
83 | True
84 | bin\iPhone\AppStore
85 | prompt
86 | 4
87 | False
88 | ARMv7, ARM64
89 | Automatic:AppStore
90 | iPhone Distribution
91 | Entitlements.plist
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | Designer
107 |
108 |
109 |
110 |
111 | GridSplitterApp
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll
138 |
139 |
140 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll
141 |
142 |
143 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll
144 |
145 |
146 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll
147 |
148 |
149 |
150 |
151 |
152 |
153 | 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}.
154 |
155 |
156 |
157 |
158 |
159 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.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 | 9.0
25 | CFBundleDisplayName
26 | GridSplitterApp
27 | CFBundleVersion
28 | 1.0
29 | CFBundleIconFiles
30 |
31 | Icon-60@2x.png
32 | Icon-76.png
33 | Icon-76@2x.png
34 | Default.png
35 | Default@2x.png
36 | Default-568h@2x.png
37 | Default-Portrait.png
38 | Default-Portrait@2x.png
39 | Icon-Small-40.png
40 | Icon-Small-40@2x.png
41 | Icon-Small.png
42 |
43 | UILaunchStoryboardName
44 | LaunchScreen
45 | CFBundleShortVersionString
46 | 1
47 |
48 |
49 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.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 GridSplitterApp.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 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.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("GridSplitterApp.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("GridSplitterApp.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 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Renderer/GridSplitterRenderer.cs:
--------------------------------------------------------------------------------
1 | using CoreGraphics;
2 | using Foundation;
3 | using GridSplitterApp.iOS.Renderer;
4 | using GridSplitterApp.Controls;
5 | using System.Linq;
6 | using UIKit;
7 | using Xamarin.Forms;
8 | using Xamarin.Forms.Platform.iOS;
9 |
10 | [assembly: ExportRenderer(typeof(GridSplitter), typeof(GridSplitterRenderer))]
11 |
12 | namespace GridSplitterApp.iOS.Renderer
13 | {
14 | public class GridSplitterRenderer : VisualElementRenderer
15 | {
16 | private UIPanGestureRecognizer _panGestureRecognizer;
17 | private CGPoint? _oldPt;
18 |
19 | protected override void OnElementChanged(ElementChangedEventArgs e)
20 | {
21 | base.OnElementChanged(e);
22 |
23 | _panGestureRecognizer = new UIPanGestureRecognizer(OnPanGesture) { MaximumNumberOfTouches = 1, MinimumNumberOfTouches = 1 };
24 |
25 | if (e.NewElement == null)
26 | {
27 | if (_panGestureRecognizer != null)
28 | {
29 | RemoveGestureRecognizer(_panGestureRecognizer);
30 | }
31 | }
32 |
33 | if (e.OldElement == null)
34 | {
35 | AddGestureRecognizer(_panGestureRecognizer);
36 | UserInteractionEnabled = true;
37 | }
38 | }
39 |
40 | public override void TouchesBegan(NSSet touches, UIEvent evt)
41 | {
42 | base.TouchesBegan(touches, evt);
43 | _oldPt = (touches.First() as UITouch).LocationInView(UIApplication.SharedApplication.KeyWindow);
44 | }
45 |
46 | void OnPanGesture()
47 | {
48 | Point ptOffset = Point.Zero;
49 | CGPoint pt = _panGestureRecognizer.LocationInView(UIApplication.SharedApplication.KeyWindow);
50 |
51 | if (_oldPt != null)
52 | {
53 | ptOffset = new Point(pt.X - _oldPt.Value.X, pt.Y - _oldPt.Value.Y);
54 | }
55 |
56 | _oldPt = pt;
57 |
58 | Element.UpdateGrid(ptOffset.X, ptOffset.Y);
59 | }
60 | }
61 | }
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-60@2x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-60@3x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-76.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-76@2x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small-40.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small-40@2x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small-40@3x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small@2x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/Resources/Icon-Small@3x.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.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 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/iTunesArtwork:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/iTunesArtwork
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/iTunesArtwork@2x:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp.iOS/iTunesArtwork@2x
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp.iOS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/App.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | using Xamarin.Forms;
7 |
8 | namespace GridSplitterApp
9 | {
10 | public class App : Application
11 | {
12 | public App()
13 | {
14 | // The root page of your application
15 | MainPage = new ContentPage
16 | {
17 | Content = new StackLayout
18 | {
19 | VerticalOptions = LayoutOptions.Center,
20 | Children = {
21 | new Label {
22 | XAlign = TextAlignment.Center,
23 | Text = "Welcome to Xamarin Forms!"
24 | }
25 | }
26 | }
27 | };
28 | }
29 |
30 | protected override void OnStart()
31 | {
32 | // Handle when your app starts
33 | }
34 |
35 | protected override void OnSleep()
36 | {
37 | // Handle when your app sleeps
38 | }
39 |
40 | protected override void OnResume()
41 | {
42 | // Handle when your app resumes
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.Forms;
2 |
3 | namespace GridSplitterApp
4 | {
5 | public partial class App : Application
6 | {
7 | public App()
8 | {
9 | InitializeComponent();
10 |
11 | MainPage = new MainPage();
12 | }
13 | }
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/Controls/GridSplitter.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using System.Reflection;
3 | using Xamarin.Forms;
4 |
5 | namespace GridSplitterApp.Controls
6 | {
7 | public class GridSplitter : TemplatedView
8 | {
9 | static PropertyInfo RowDefinitionActualHeightProperty;
10 | static PropertyInfo ColumnDefinitionActualWidthProperty;
11 |
12 | public void UpdateGrid(double dragOffsetX, double dragOffsetY)
13 | {
14 | if (Parent as Grid == null)
15 | {
16 | return;
17 | }
18 |
19 | if (IsRowSplitter())
20 | {
21 | UpdateRow(dragOffsetY);
22 | }
23 | else
24 | UpdateColumn(dragOffsetX);
25 | }
26 |
27 | private bool IsRowSplitter()
28 | {
29 | return HorizontalOptions.Alignment == LayoutAlignment.Fill;
30 | }
31 |
32 | private void UpdateRow(double offsetY)
33 | {
34 | if (offsetY == 0)
35 | {
36 | return;
37 | }
38 |
39 | var grid = Parent as Grid;
40 | var row = Grid.GetRow(this);
41 | int rowCount = grid.RowDefinitions.Count();
42 | if (rowCount <= 1 ||
43 | row == 0 ||
44 | row == rowCount - 1 ||
45 | row + Grid.GetRowSpan(this) >= rowCount)
46 | {
47 | return;
48 | }
49 |
50 | RowDefinition rowAbove = grid.RowDefinitions[row - 1];
51 | var actualHeight = GetRowDefinitionActualHeight(rowAbove) + offsetY;
52 | if (actualHeight < 0)
53 | {
54 | actualHeight = 0;
55 | }
56 |
57 | rowAbove.Height = new GridLength(actualHeight);
58 | }
59 |
60 | private void UpdateColumn(double offsetX)
61 | {
62 | if (offsetX == 0)
63 | {
64 | return;
65 | }
66 |
67 | var grid = Parent as Grid;
68 | int column = Grid.GetColumn(this);
69 |
70 | int columnCount = grid.ColumnDefinitions.Count();
71 | if (columnCount <= 1 ||
72 | column == 0 ||
73 | column == columnCount - 1 ||
74 | column + Grid.GetColumnSpan(this) >= columnCount)
75 | {
76 | return;
77 | }
78 |
79 | ColumnDefinition columnLeft = grid.ColumnDefinitions[column - 1];
80 |
81 | double actualWidth = GetColumnDefinitionActualWidth(columnLeft) + offsetX;
82 | if (actualWidth < 0)
83 | {
84 | actualWidth = 0;
85 | }
86 |
87 | columnLeft.Width = new GridLength(actualWidth);
88 | }
89 |
90 | static private double GetRowDefinitionActualHeight(RowDefinition row)
91 | {
92 | double actualHeight;
93 |
94 | if (row.Height.IsAbsolute)
95 | {
96 | actualHeight = row.Height.Value;
97 | }
98 | else
99 | {
100 | if (RowDefinitionActualHeightProperty == null)
101 | {
102 | RowDefinitionActualHeightProperty = row.GetType().GetRuntimeProperties().First((p) => p.Name == "ActualHeight");
103 | }
104 |
105 | actualHeight = (double)RowDefinitionActualHeightProperty.GetValue(row);
106 | }
107 |
108 | return actualHeight;
109 | }
110 |
111 | static private double GetColumnDefinitionActualWidth(ColumnDefinition column)
112 | {
113 | double actualWidth;
114 |
115 | if (column.Width.IsAbsolute)
116 | {
117 | actualWidth = column.Width.Value;
118 | }
119 | else
120 | {
121 | if (ColumnDefinitionActualWidthProperty == null)
122 | {
123 | ColumnDefinitionActualWidthProperty = column.GetType().GetRuntimeProperties().First((p) => p.Name == "ActualWidth");
124 | }
125 |
126 | actualWidth = (double)ColumnDefinitionActualWidthProperty.GetValue(column);
127 | }
128 |
129 | return actualWidth;
130 | }
131 | }
132 | }
133 |
134 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/GridSplitterApp.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 10.0
6 | Debug
7 | AnyCPU
8 | {E774DB01-6487-4563-80D3-4AA602A1006A}
9 | Library
10 | Properties
11 | GridSplitterApp
12 | GridSplitterApp
13 | v4.5
14 | Profile78
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 | MainPage.xaml
40 |
41 |
42 |
43 |
44 | App.xaml
45 |
46 |
47 | TestPage.xaml
48 |
49 |
50 |
51 |
58 |
59 |
60 | MSBuild:UpdateDesignTimeXaml
61 | Designer
62 |
63 |
64 | MSBuild:UpdateDesignTimeXaml
65 |
66 |
67 |
68 | MSBuild:UpdateDesignTimeXaml
69 |
70 |
71 |
72 |
73 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Core.dll
74 |
75 |
76 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Platform.dll
77 |
78 |
79 | ..\..\packages\Xamarin.Forms.2.5.0.280555\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Xaml.dll
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 | 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}.
89 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
22 |
24 |
25 |
26 |
28 |
29 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.Forms;
2 |
3 | namespace GridSplitterApp
4 | {
5 | public partial class MainPage : ContentPage
6 | {
7 | public MainPage()
8 | {
9 | InitializeComponent();
10 |
11 | Image.Source = ImageSource.FromResource("GridSplitterApp.baboon.png");
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/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("GridSplitterApp")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("GridSplitterApp")]
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 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/TestPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
15 |
17 |
18 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/TestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.Forms;
2 |
3 | namespace GridSplitterApp
4 | {
5 | public partial class TestPage : ContentPage
6 | {
7 | public TestPage()
8 | {
9 | InitializeComponent();
10 | }
11 | }
12 | }
13 |
14 |
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/baboon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/GridSplitterApp/GridSplitterApp/baboon.png
--------------------------------------------------------------------------------
/GridSplitterApp/GridSplitterApp/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | GridSplitter control for Xamarin Forms
2 | ===================
3 |
4 | A control for Xamarin Forms that redistributes space between columns or rows of a Grid control.
5 |
6 | Platforms supported: iOS, Android, WinPhone
7 |
8 | Usage
9 | -------
10 |
11 | An example of a Grid with two rows and a GridSplitter control:
12 |
13 |
14 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
27 |
29 |
30 |
31 |
32 | Note that `` tells the GridSplitter control it should resize the adjancent rows.
33 |
34 | And here's the result on iOS for the XAML above:
35 |
36 | 
37 |
38 | Also note the `RowSpacing=0` which resets the default spacing between the cells of Grid. You might want to set this on your Grid when using the GridSplitter, otherwise it won't look good.
39 |
40 | If you would have to split two columns instead, you need to set `HorizontalOptions="Center"` on the GridSplitter:
41 |
42 |
43 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
56 |
58 |
59 |
60 |
61 |
62 | Another example of two Grid controls each with their own GridSplitter:
63 |
64 | 
65 |
66 | The XAML for this layout is included in the sample app: [/GridSplitterApp/GridSplitterApp/MainPage.xaml)](/GridSplitterApp/GridSplitterApp/MainPage.xaml)
67 | It also shows how you can easily change the style of the GridSplitter control.
68 |
69 | Add GridSplitter to your project
70 | -----------------------
71 |
72 | 1. Add GridSplitter control implementation to your Xamarin Forms PCL project:
73 | [/GridSplitterApp/GridSplitterApp/Controls/GridSplitter.cs](/GridSplitterApp/GridSplitterApp/Controls/GridSplitter.cs)
74 |
75 | 2. The control uses native renderes. You need to add the renderers to your Android and iOS project respectively:
76 | [/GridSplitterApp/GridSplitterApp.Droid/Renderers/GridSplitterRenderer.cs](/GridSplitterApp/GridSplitterApp.Droid/Renderers/GridSplitterRenderer.cs)
77 | [/GridSplitterApp/GridSplitterApp.iOS/Renderer/GridSplitterRenderer.cs](/GridSplitterApp/GridSplitterApp.iOS/Renderer/GridSplitterRenderer.cs)
78 |
79 | Note you might need to update some namespaces in your app.
80 |
--------------------------------------------------------------------------------
/mGkd879Oqv.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andreinitescu/GridSplitterApp/e844d65c6e626dcbf457326aa1f1e6098e18812c/mGkd879Oqv.gif
--------------------------------------------------------------------------------