├── .gitignore ├── Example ├── Droid │ ├── Assets │ │ └── AboutAssets.txt │ ├── DynamicWrapLayoutExample.Droid.csproj │ ├── MainActivity.cs │ ├── Properties │ │ ├── AndroidManifest.xml │ │ └── AssemblyInfo.cs │ ├── Resources │ │ ├── AboutResources.txt │ │ ├── Resource.designer.cs │ │ ├── drawable-hdpi │ │ │ └── icon.png │ │ ├── drawable-xhdpi │ │ │ └── icon.png │ │ ├── drawable-xxhdpi │ │ │ └── icon.png │ │ ├── drawable │ │ │ └── icon.png │ │ ├── layout │ │ │ ├── Tabbar.axml │ │ │ └── Toolbar.axml │ │ └── values │ │ │ └── styles.xml │ └── packages.config ├── DynamicWrapLayoutExample │ ├── App.xaml │ ├── App.xaml.cs │ ├── DynamicWrapLayoutExample.csproj │ ├── DynamicWrapLayoutExamplePage.xaml │ ├── DynamicWrapLayoutExamplePage.xaml.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── packages.config └── iOS │ ├── AppDelegate.cs │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json │ ├── DynamicWrapLayoutExample.iOS.csproj │ ├── Entitlements.plist │ ├── Info.plist │ ├── LaunchScreen.storyboard │ ├── Main.cs │ └── packages.config ├── LICENSE ├── README.md └── src └── SuaveControls ├── DynamicWrapLayout.NuGet └── DynamicWrapLayout.NuGet.nuproj ├── SuaveControls.sln └── SuaveControls ├── DynamicGridViewContentAlignment.cs ├── DynamicWrapLayout.cs ├── LayoutData.cs ├── Properties └── AssemblyInfo.cs ├── SuaveControls.DynamicWrapLayout.csproj └── packages.config /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # MSTest test Results 33 | [Tt]est[Rr]esult*/ 34 | [Bb]uild[Ll]og.* 35 | 36 | # NUNIT 37 | *.VisualState.xml 38 | TestResult.xml 39 | 40 | # Build Results of an ATL Project 41 | [Dd]ebugPS/ 42 | [Rr]eleasePS/ 43 | dlldata.c 44 | 45 | # .NET Core 46 | project.lock.json 47 | project.fragment.lock.json 48 | artifacts/ 49 | **/Properties/launchSettings.json 50 | 51 | *_i.c 52 | *_p.c 53 | *_i.h 54 | *.ilk 55 | *.meta 56 | *.obj 57 | *.pch 58 | *.pdb 59 | *.pgc 60 | *.pgd 61 | *.rsp 62 | *.sbr 63 | *.tlb 64 | *.tli 65 | *.tlh 66 | *.tmp 67 | *.tmp_proj 68 | *.log 69 | *.vspscc 70 | *.vssscc 71 | .builds 72 | *.pidb 73 | *.svclog 74 | *.scc 75 | 76 | # Chutzpah Test files 77 | _Chutzpah* 78 | 79 | # Visual C++ cache files 80 | ipch/ 81 | *.aps 82 | *.ncb 83 | *.opendb 84 | *.opensdf 85 | *.sdf 86 | *.cachefile 87 | *.VC.db 88 | *.VC.VC.opendb 89 | 90 | # Visual Studio profiler 91 | *.psess 92 | *.vsp 93 | *.vspx 94 | *.sap 95 | 96 | # TFS 2012 Local Workspace 97 | $tf/ 98 | 99 | # Guidance Automation Toolkit 100 | *.gpState 101 | 102 | # ReSharper is a .NET coding add-in 103 | _ReSharper*/ 104 | *.[Rr]e[Ss]harper 105 | *.DotSettings.user 106 | 107 | # JustCode is a .NET coding add-in 108 | .JustCode 109 | 110 | # TeamCity is a build add-in 111 | _TeamCity* 112 | 113 | # DotCover is a Code Coverage Tool 114 | *.dotCover 115 | 116 | # Visual Studio code coverage results 117 | *.coverage 118 | *.coveragexml 119 | 120 | # NCrunch 121 | _NCrunch_* 122 | .*crunch*.local.xml 123 | nCrunchTemp_* 124 | 125 | # MightyMoose 126 | *.mm.* 127 | AutoTest.Net/ 128 | 129 | # Web workbench (sass) 130 | .sass-cache/ 131 | 132 | # Installshield output folder 133 | [Ee]xpress/ 134 | 135 | # DocProject is a documentation generator add-in 136 | DocProject/buildhelp/ 137 | DocProject/Help/*.HxT 138 | DocProject/Help/*.HxC 139 | DocProject/Help/*.hhc 140 | DocProject/Help/*.hhk 141 | DocProject/Help/*.hhp 142 | DocProject/Help/Html2 143 | DocProject/Help/html 144 | 145 | # Click-Once directory 146 | publish/ 147 | 148 | # Publish Web Output 149 | *.[Pp]ublish.xml 150 | *.azurePubxml 151 | # TODO: Comment the next line if you want to checkin your web deploy settings 152 | # but database connection strings (with potential passwords) will be unencrypted 153 | *.pubxml 154 | *.publishproj 155 | 156 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 157 | # checkin your Azure Web App publish settings, but sensitive information contained 158 | # in these scripts will be unencrypted 159 | PublishScripts/ 160 | 161 | # NuGet Packages 162 | *.nupkg 163 | # The packages folder can be ignored because of Package Restore 164 | **/packages/* 165 | # except build/, which is used as an MSBuild target. 166 | !**/packages/build/ 167 | # Uncomment if necessary however generally it will be regenerated when needed 168 | #!**/packages/repositories.config 169 | # NuGet v3's project.json files produces more ignorable files 170 | *.nuget.props 171 | *.nuget.targets 172 | 173 | # Microsoft Azure Build Output 174 | csx/ 175 | *.build.csdef 176 | 177 | # Microsoft Azure Emulator 178 | ecf/ 179 | rcf/ 180 | 181 | # Windows Store app package directories and files 182 | AppPackages/ 183 | BundleArtifacts/ 184 | Package.StoreAssociation.xml 185 | _pkginfo.txt 186 | 187 | # Visual Studio cache files 188 | # files ending in .cache can be ignored 189 | *.[Cc]ache 190 | # but keep track of directories ending in .cache 191 | !*.[Cc]ache/ 192 | 193 | # Others 194 | ClientBin/ 195 | ~$* 196 | *~ 197 | *.dbmdl 198 | *.dbproj.schemaview 199 | *.jfm 200 | *.pfx 201 | *.publishsettings 202 | orleans.codegen.cs 203 | 204 | # Since there are multiple workflows, uncomment next line to ignore bower_components 205 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 206 | #bower_components/ 207 | 208 | # RIA/Silverlight projects 209 | Generated_Code/ 210 | 211 | # Backup & report files from converting an old project file 212 | # to a newer Visual Studio version. Backup files are not needed, 213 | # because we have git ;-) 214 | _UpgradeReport_Files/ 215 | Backup*/ 216 | UpgradeLog*.XML 217 | UpgradeLog*.htm 218 | 219 | # SQL Server files 220 | *.mdf 221 | *.ldf 222 | *.ndf 223 | 224 | # Business Intelligence projects 225 | *.rdl.data 226 | *.bim.layout 227 | *.bim_*.settings 228 | 229 | # Microsoft Fakes 230 | FakesAssemblies/ 231 | 232 | # GhostDoc plugin setting file 233 | *.GhostDoc.xml 234 | 235 | # Node.js Tools for Visual Studio 236 | .ntvs_analysis.dat 237 | node_modules/ 238 | 239 | # Typescript v1 declaration files 240 | typings/ 241 | 242 | # Visual Studio 6 build log 243 | *.plg 244 | 245 | # Visual Studio 6 workspace options file 246 | *.opt 247 | 248 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 249 | *.vbw 250 | 251 | # Visual Studio LightSwitch build output 252 | **/*.HTMLClient/GeneratedArtifacts 253 | **/*.DesktopClient/GeneratedArtifacts 254 | **/*.DesktopClient/ModelManifest.xml 255 | **/*.Server/GeneratedArtifacts 256 | **/*.Server/ModelManifest.xml 257 | _Pvt_Extensions 258 | 259 | # Paket dependency manager 260 | .paket/paket.exe 261 | paket-files/ 262 | 263 | # FAKE - F# Make 264 | .fake/ 265 | 266 | # JetBrains Rider 267 | .idea/ 268 | *.sln.iml 269 | 270 | # CodeRush 271 | .cr/ 272 | 273 | # Python Tools for Visual Studio (PTVS) 274 | __pycache__/ 275 | *.pyc 276 | 277 | # Cake - Uncomment if you are using it 278 | # tools/** 279 | # !tools/packages.config 280 | 281 | # Telerik's JustMock configuration file 282 | *.jmconfig 283 | 284 | # BizTalk build output 285 | *.btp.cs 286 | *.btm.cs 287 | *.odx.cs 288 | *.xsd.cs 289 | -------------------------------------------------------------------------------- /Example/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 your 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 | -------------------------------------------------------------------------------- /Example/Droid/DynamicWrapLayoutExample.Droid.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC} 8 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 9 | Library 10 | DynamicWrapLayoutExample.Droid 11 | DynamicWrapLayoutExample.Droid 12 | v7.1 13 | True 14 | Resources\Resource.designer.cs 15 | Resource 16 | Properties\AndroidManifest.xml 17 | Resources 18 | Assets 19 | false 20 | 21 | 22 | true 23 | full 24 | false 25 | bin\Debug 26 | DEBUG; 27 | prompt 28 | 4 29 | None 30 | arm64-v8a;armeabi;armeabi-v7a;x86 31 | 32 | 33 | true 34 | pdbonly 35 | true 36 | bin\Release 37 | prompt 38 | 4 39 | true 40 | false 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Annotations.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Annotations.dll 49 | 50 | 51 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Compat.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Compat.dll 52 | 53 | 54 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Core.UI.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Core.UI.dll 55 | 56 | 57 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Core.Utils.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Core.Utils.dll 58 | 59 | 60 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Media.Compat.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Media.Compat.dll 61 | 62 | 63 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Fragment.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Fragment.dll 64 | 65 | 66 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.v4.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v4.dll 67 | 68 | 69 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Vector.Drawable.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Vector.Drawable.dll 70 | 71 | 72 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Animated.Vector.Drawable.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Animated.Vector.Drawable.dll 73 | 74 | 75 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.v7.AppCompat.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.AppCompat.dll 76 | 77 | 78 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Transition.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Transition.dll 79 | 80 | 81 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.v7.RecyclerView.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.RecyclerView.dll 82 | 83 | 84 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.Design.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Design.dll 85 | 86 | 87 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.v7.CardView.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.CardView.dll 88 | 89 | 90 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.v7.Palette.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.Palette.dll 91 | 92 | 93 | ..\..\src\SuaveControls\packages\Xamarin.Android.Support.v7.MediaRouter.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.MediaRouter.dll 94 | 95 | 96 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\MonoAndroid10\FormsViewGroup.dll 97 | 98 | 99 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\MonoAndroid10\Xamarin.Forms.Core.dll 100 | 101 | 102 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll 103 | 104 | 105 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\MonoAndroid10\Xamarin.Forms.Platform.dll 106 | 107 | 108 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | {16C423B2-493F-470C-B12C-CE4F49C6C772} 134 | DynamicWrapLayoutExample 135 | 136 | 137 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8} 138 | SuaveControls.DynamicWrapLayout 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | -------------------------------------------------------------------------------- /Example/Droid/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.App; 4 | using Android.Content; 5 | using Android.Content.PM; 6 | using Android.Runtime; 7 | using Android.Views; 8 | using Android.Widget; 9 | using Android.OS; 10 | 11 | namespace DynamicWrapLayoutExample.Droid 12 | { 13 | [Activity(Label = "DynamicWrapLayoutExample.Droid", Icon = "@drawable/icon", Theme = "@style/MyTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] 14 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity 15 | { 16 | protected override void OnCreate(Bundle bundle) 17 | { 18 | TabLayoutResource = Resource.Layout.Tabbar; 19 | ToolbarResource = Resource.Layout.Toolbar; 20 | 21 | base.OnCreate(bundle); 22 | 23 | global::Xamarin.Forms.Forms.Init(this, bundle); 24 | 25 | LoadApplication(new App()); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Example/Droid/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Example/Droid/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using Android.App; 4 | 5 | // Information about this assembly is defined by the following attributes. 6 | // Change them to the values specific to your project. 7 | 8 | [assembly: AssemblyTitle("DynamicWrapLayoutExample.Droid")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("")] 13 | [assembly: AssemblyCopyright("")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". 18 | // The form "{Major}.{Minor}.*" will automatically update the build and revision, 19 | // and "{Major}.{Minor}.{Build}.*" will update just the revision. 20 | 21 | [assembly: AssemblyVersion("1.0.0")] 22 | 23 | // The following attributes are used to specify the signing key for the assembly, 24 | // if desired. See the Mono documentation for more information about signing. 25 | 26 | //[assembly: AssemblyDelaySign(false)] 27 | //[assembly: AssemblyKeyFile("")] 28 | -------------------------------------------------------------------------------- /Example/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.axml), 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/ 12 | icon.png 13 | 14 | layout/ 15 | main.axml 16 | 17 | values/ 18 | strings.xml 19 | 20 | In order to get the build system to recognize Android resources, set the build action to 21 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 22 | instead operate on resource IDs. When you compile an Android application that uses resources, 23 | the build system will package the resources for distribution and generate a class called "R" 24 | (this is an Android convention) that contains the tokens for each one of the resources 25 | included. For example, for the above Resources layout, this is what the R class would expose: 26 | 27 | public class R { 28 | public class drawable { 29 | public const int icon = 0x123; 30 | } 31 | 32 | public class layout { 33 | public const int main = 0x456; 34 | } 35 | 36 | public class strings { 37 | public const int first_string = 0xabc; 38 | public const int second_string = 0xbcd; 39 | } 40 | } 41 | 42 | You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main 43 | to reference the layout/main.axml file, or R.strings.first_string to reference the first 44 | string in the dictionary file values/strings.xml. 45 | -------------------------------------------------------------------------------- /Example/Droid/Resources/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SuavePirate/DynamicWrapLayout/6c350896e06246d3eec89896a55557104c480749/Example/Droid/Resources/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /Example/Droid/Resources/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SuavePirate/DynamicWrapLayout/6c350896e06246d3eec89896a55557104c480749/Example/Droid/Resources/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /Example/Droid/Resources/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SuavePirate/DynamicWrapLayout/6c350896e06246d3eec89896a55557104c480749/Example/Droid/Resources/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /Example/Droid/Resources/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SuavePirate/DynamicWrapLayout/6c350896e06246d3eec89896a55557104c480749/Example/Droid/Resources/drawable/icon.png -------------------------------------------------------------------------------- /Example/Droid/Resources/layout/Tabbar.axml: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Example/Droid/Resources/layout/Toolbar.axml: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Example/Droid/Resources/values/styles.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 5 | 6 | 24 | 27 | 28 | -------------------------------------------------------------------------------- /Example/Droid/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Example/DynamicWrapLayoutExample/App.xaml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Example/DynamicWrapLayoutExample/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace DynamicWrapLayoutExample 4 | { 5 | public partial class App : Application 6 | { 7 | public App() 8 | { 9 | InitializeComponent(); 10 | 11 | MainPage = new DynamicWrapLayoutExamplePage(); 12 | } 13 | 14 | protected override void OnStart() 15 | { 16 | // Handle when your app starts 17 | } 18 | 19 | protected override void OnSleep() 20 | { 21 | // Handle when your app sleeps 22 | } 23 | 24 | protected override void OnResume() 25 | { 26 | // Handle when your app resumes 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Example/DynamicWrapLayoutExample/DynamicWrapLayoutExample.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | {16C423B2-493F-470C-B12C-CE4F49C6C772} 7 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 8 | true 9 | Library 10 | DynamicWrapLayoutExample 11 | DynamicWrapLayoutExample 12 | v4.5 13 | Profile111 14 | 15 | 16 | true 17 | full 18 | false 19 | bin\Debug 20 | DEBUG; 21 | prompt 22 | 4 23 | 24 | 25 | true 26 | bin\Release 27 | prompt 28 | 4 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | App.xaml 37 | 38 | 39 | DynamicWrapLayoutExamplePage.xaml 40 | 41 | 42 | 43 | 44 | 45 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Core.dll 46 | 47 | 48 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Platform.dll 49 | 50 | 51 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Xaml.dll 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8} 60 | SuaveControls.DynamicWrapLayout 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /Example/DynamicWrapLayoutExample/DynamicWrapLayoutExamplePage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Example/DynamicWrapLayoutExample/DynamicWrapLayoutExamplePage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | using Xamarin.Forms; 3 | using Xamarin.Forms.Xaml; 4 | 5 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)] 6 | namespace DynamicWrapLayoutExample 7 | { 8 | public partial class DynamicWrapLayoutExamplePage : ContentPage 9 | { 10 | private ObservableCollection _items; 11 | 12 | public ObservableCollection Items 13 | { 14 | get 15 | { 16 | return _items; 17 | } 18 | set 19 | { 20 | _items = value; 21 | OnPropertyChanged(nameof(Items)); 22 | } 23 | } 24 | public DynamicWrapLayoutExamplePage() 25 | { 26 | InitializeComponent(); 27 | BindingContext = this; 28 | Items = new ObservableCollection(); 29 | 30 | for (var i = 0; i < 40; i++) 31 | Items.Add(i.ToString()); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Example/DynamicWrapLayoutExample/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // Information about this assembly is defined by the following attributes. 5 | // Change them to the values specific to your project. 6 | 7 | [assembly: AssemblyTitle("DynamicWrapLayoutExample")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("")] 12 | [assembly: AssemblyCopyright("")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". 17 | // The form "{Major}.{Minor}.*" will automatically update the build and revision, 18 | // and "{Major}.{Minor}.{Build}.*" will update just the revision. 19 | 20 | [assembly: AssemblyVersion("1.0.*")] 21 | 22 | // The following attributes are used to specify the signing key for the assembly, 23 | // if desired. See the Mono documentation for more information about signing. 24 | 25 | //[assembly: AssemblyDelaySign(false)] 26 | //[assembly: AssemblyKeyFile("")] 27 | -------------------------------------------------------------------------------- /Example/DynamicWrapLayoutExample/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Example/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 DynamicWrapLayoutExample.iOS 9 | { 10 | [Register("AppDelegate")] 11 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 12 | { 13 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) 14 | { 15 | global::Xamarin.Forms.Forms.Init(); 16 | 17 | LoadApplication(new App()); 18 | 19 | return base.FinishedLaunching(app, options); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Example/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | }, 93 | { 94 | "size" : "24x24", 95 | "idiom" : "watch", 96 | "scale" : "2x", 97 | "role" : "notificationCenter", 98 | "subtype" : "38mm" 99 | }, 100 | { 101 | "size" : "27.5x27.5", 102 | "idiom" : "watch", 103 | "scale" : "2x", 104 | "role" : "notificationCenter", 105 | "subtype" : "42mm" 106 | }, 107 | { 108 | "size" : "29x29", 109 | "idiom" : "watch", 110 | "role" : "companionSettings", 111 | "scale" : "2x" 112 | }, 113 | { 114 | "size" : "29x29", 115 | "idiom" : "watch", 116 | "role" : "companionSettings", 117 | "scale" : "3x" 118 | }, 119 | { 120 | "size" : "40x40", 121 | "idiom" : "watch", 122 | "scale" : "2x", 123 | "role" : "appLauncher", 124 | "subtype" : "38mm" 125 | }, 126 | { 127 | "size" : "44x44", 128 | "idiom" : "watch", 129 | "scale" : "2x", 130 | "role" : "longLook", 131 | "subtype" : "42mm" 132 | }, 133 | { 134 | "size" : "86x86", 135 | "idiom" : "watch", 136 | "scale" : "2x", 137 | "role" : "quickLook", 138 | "subtype" : "38mm" 139 | }, 140 | { 141 | "size" : "98x98", 142 | "idiom" : "watch", 143 | "scale" : "2x", 144 | "role" : "quickLook", 145 | "subtype" : "42mm" 146 | }, 147 | { 148 | "idiom" : "mac", 149 | "size" : "16x16", 150 | "scale" : "1x" 151 | }, 152 | { 153 | "idiom" : "mac", 154 | "size" : "16x16", 155 | "scale" : "2x" 156 | }, 157 | { 158 | "idiom" : "mac", 159 | "size" : "32x32", 160 | "scale" : "1x" 161 | }, 162 | { 163 | "idiom" : "mac", 164 | "size" : "32x32", 165 | "scale" : "2x" 166 | }, 167 | { 168 | "idiom" : "mac", 169 | "size" : "128x128", 170 | "scale" : "1x" 171 | }, 172 | { 173 | "idiom" : "mac", 174 | "size" : "128x128", 175 | "scale" : "2x" 176 | }, 177 | { 178 | "idiom" : "mac", 179 | "size" : "256x256", 180 | "scale" : "1x" 181 | }, 182 | { 183 | "idiom" : "mac", 184 | "size" : "256x256", 185 | "scale" : "2x" 186 | }, 187 | { 188 | "idiom" : "mac", 189 | "size" : "512x512", 190 | "scale" : "1x" 191 | }, 192 | { 193 | "idiom" : "mac", 194 | "size" : "512x512", 195 | "scale" : "2x" 196 | } 197 | ], 198 | "info" : { 199 | "version" : 1, 200 | "author" : "xcode" 201 | } 202 | } 203 | -------------------------------------------------------------------------------- /Example/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/iOS/DynamicWrapLayoutExample.iOS.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | iPhoneSimulator 7 | {25C1A180-D0CC-4921-9628-7DD7D6B85219} 8 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 9 | Exe 10 | DynamicWrapLayoutExample.iOS 11 | DynamicWrapLayoutExample.iOS 12 | Resources 13 | 14 | 15 | true 16 | full 17 | false 18 | bin\iPhoneSimulator\Debug 19 | DEBUG;ENABLE_TEST_CLOUD; 20 | prompt 21 | 4 22 | iPhone Developer 23 | true 24 | true 25 | true 26 | 32257 27 | None 28 | x86_64 29 | HttpClientHandler 30 | false 31 | 32 | 33 | pdbonly 34 | true 35 | bin\iPhone\Release 36 | 37 | prompt 38 | 4 39 | iPhone Developer 40 | true 41 | Entitlements.plist 42 | SdkOnly 43 | ARM64 44 | HttpClientHandler 45 | 46 | 47 | pdbonly 48 | true 49 | bin\iPhoneSimulator\Release 50 | 51 | prompt 52 | 4 53 | iPhone Developer 54 | true 55 | None 56 | x86_64 57 | HttpClientHandler 58 | 59 | 60 | true 61 | full 62 | false 63 | bin\iPhone\Debug 64 | DEBUG;ENABLE_TEST_CLOUD; 65 | prompt 66 | 4 67 | iPhone Developer 68 | true 69 | true 70 | true 71 | true 72 | true 73 | Entitlements.plist 74 | 24878 75 | SdkOnly 76 | ARM64 77 | HttpClientHandler 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll 86 | 87 | 88 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll 89 | 90 | 91 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll 92 | 93 | 94 | ..\..\src\SuaveControls\packages\Xamarin.Forms.2.4.0.280\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | {16C423B2-493F-470C-B12C-CE4F49C6C772} 119 | DynamicWrapLayoutExample 120 | 121 | 122 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8} 123 | SuaveControls.DynamicWrapLayout 124 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /Example/iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Example/iOS/Info.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | CFBundleDisplayName 6 | DynamicWrapLayoutExample 7 | CFBundleName 8 | DynamicWrapLayoutExample 9 | CFBundleIdentifier 10 | com.suavepirate.DynamicWrapLayoutExample 11 | CFBundleShortVersionString 12 | 1.0 13 | CFBundleVersion 14 | 1.0 15 | LSRequiresIPhoneOS 16 | 17 | MinimumOSVersion 18 | 8.0 19 | UIDeviceFamily 20 | 21 | 1 22 | 2 23 | 24 | UILaunchStoryboardName 25 | LaunchScreen 26 | UIRequiredDeviceCapabilities 27 | 28 | armv7 29 | 30 | UISupportedInterfaceOrientations 31 | 32 | UIInterfaceOrientationPortrait 33 | UIInterfaceOrientationLandscapeLeft 34 | UIInterfaceOrientationLandscapeRight 35 | 36 | UISupportedInterfaceOrientations~ipad 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationPortraitUpsideDown 40 | UIInterfaceOrientationLandscapeLeft 41 | UIInterfaceOrientationLandscapeRight 42 | 43 | XSAppIconAssets 44 | Assets.xcassets/AppIcon.appiconset 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/iOS/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 | -------------------------------------------------------------------------------- /Example/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 DynamicWrapLayoutExample.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 | -------------------------------------------------------------------------------- /Example/iOS/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Alex Dunn 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DynamicWrapLayout 2 | A Xamarin.Forms layout for creating dynamically wrapped views. Inspired by the `WrapLayout` example: https://developer.xamarin.com/samples/xamarin-forms/UserInterface/CustomLayout/WrapLayout/ 3 | 4 | ## Installation 5 | 6 | It's on NuGet! https://www.nuget.org/packages/DynamicWrapLayout/ 7 | ``` 8 | Install-Package DynamicWrapLayout 9 | ``` 10 | 11 | Be sure to install in all projects that use it. 12 | 13 | ## Usage 14 | 15 | There are two key properties that make this control useful - the `ItemsSource` (like a `ListView`) and the `DataTemplate` (although, you can also just add children to the view - it does both!) 16 | Be sure to wrap it in a `ScrollView` though 17 | 18 | **XAML** 19 | 20 | Add the `xmlns`: 21 | 22 | ``` 23 | xmlns:suave="clr-namespace:SuaveControls.DynamicWrapLayout;assembly=SuaveControls.DynamicWrapLayout" 24 | ``` 25 | 26 | Use it in your View: 27 | ``` 28 | 29 | 30 | 31 | 32 | 33 | 35 | 36 | 37 | 38 | 39 | ``` 40 | 41 | Don't like data-binding and want to just use child views? You can do that too! 42 | 43 | ``` 44 | 45 | 46 | 47 | 49 | 50 | 52 | 53 | 55 | 56 | 58 | 59 | 61 | 62 | 63 | ``` 64 | ## Features 65 | 66 | - Bindable child views 67 | - Bindable to collections 68 | - Handles layout changing well (try rotating the device) 69 | - Doesn't require custom renderers (All Xamarin.Forms baby!) 70 | 71 | ## What does this thing look like? 72 | 73 | Android: 74 | 75 | 76 | 77 | 78 | iOS: 79 | 80 | 81 | 82 | 83 | 84 | ## Notes 85 | This does not use any native view virtualization, which means performance does not scale well with extremely large data sets. 86 | 87 | ## Coming soon 88 | 89 | - `ItemSelected` event and `SelectedItem` bindable property (for now, you can add custom gestures and commands to your `DataTemplate` and handle the events yourself) 90 | - Better Collection Updating 91 | -------------------------------------------------------------------------------- /src/SuaveControls/DynamicWrapLayout.NuGet/DynamicWrapLayout.NuGet.nuproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72} 8 | A Xamarin.Forms layout to bind data to a wrapped data. Allows for observable child views and auto updating layouts. 9 | DynamicWrapLayout 10 | 2017.11.30 11 | SuavePirate 12 | false 13 | false 14 | Exe 15 | DynamicWrapLayout.NuGet 16 | false 17 | DynamicWrapLayout.NuGet 18 | v4.5 19 | SuavePirate 20 | Xamarin Xamarin.Forms Grid Wrap Dynamic 21 | DynamicWrapLayout 22 | en 23 | Initial Release 24 | A Xamarin.Forms layout for binding data to a grid 25 | https://github.com/SuavePirate/DynamicWrapLayout 26 | https://i0.wp.com/alexdunndev.files.wordpress.com/2017/11/xamagonwraplayout.png 27 | https://github.com/SuavePirate/DynamicWrapLayout/blob/master/LICENSE 28 | 29 | 30 | true 31 | full 32 | bin\Debug 33 | prompt 34 | 35 | 36 | bin\Release 37 | prompt 38 | 39 | 40 | 41 | 0.2.1 42 | All 43 | 44 | 45 | 46 | 47 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8} 48 | SuaveControls.DynamicWrapLayout 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/SuaveControls/SuaveControls.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SuaveControls.DynamicWrapLayout", "SuaveControls\SuaveControls.DynamicWrapLayout.csproj", "{1E1749E5-7858-4656-A13B-890E9C5BFFF8}" 5 | EndProject 6 | Project("{5DD5E4FA-CB73-4610-85AB-557B54E96AA9}") = "DynamicWrapLayout.NuGet", "DynamicWrapLayout.NuGet\DynamicWrapLayout.NuGet.nuproj", "{79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Example", "Example", "{2C1C7764-C561-453D-9CD7-F34D726C1067}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicWrapLayoutExample", "..\..\Example\DynamicWrapLayoutExample\DynamicWrapLayoutExample.csproj", "{16C423B2-493F-470C-B12C-CE4F49C6C772}" 11 | EndProject 12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicWrapLayoutExample.iOS", "..\..\Example\iOS\DynamicWrapLayoutExample.iOS.csproj", "{25C1A180-D0CC-4921-9628-7DD7D6B85219}" 13 | EndProject 14 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicWrapLayoutExample.Droid", "..\..\Example\Droid\DynamicWrapLayoutExample.Droid.csproj", "{F82B796F-15D5-4C5C-85D8-03300C67C7EC}" 15 | EndProject 16 | Global 17 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 18 | Debug|Any CPU = Debug|Any CPU 19 | Release|Any CPU = Release|Any CPU 20 | Debug|iPhoneSimulator = Debug|iPhoneSimulator 21 | Release|iPhone = Release|iPhone 22 | Release|iPhoneSimulator = Release|iPhoneSimulator 23 | Debug|iPhone = Debug|iPhone 24 | EndGlobalSection 25 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 26 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 27 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Debug|Any CPU.Build.0 = Debug|Any CPU 28 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Release|Any CPU.Build.0 = Release|Any CPU 30 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 31 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 32 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Release|iPhone.ActiveCfg = Release|Any CPU 33 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Release|iPhone.Build.0 = Release|Any CPU 34 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 35 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 36 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Debug|iPhone.ActiveCfg = Debug|Any CPU 37 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8}.Debug|iPhone.Build.0 = Debug|Any CPU 38 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 39 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Debug|Any CPU.Build.0 = Debug|Any CPU 40 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Release|Any CPU.ActiveCfg = Release|Any CPU 41 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Release|Any CPU.Build.0 = Release|Any CPU 42 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 43 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 44 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Release|iPhone.ActiveCfg = Release|Any CPU 45 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Release|iPhone.Build.0 = Release|Any CPU 46 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 47 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 48 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Debug|iPhone.ActiveCfg = Debug|Any CPU 49 | {79CB6EAF-EF7D-4C7A-A381-A4F490F15A72}.Debug|iPhone.Build.0 = Debug|Any CPU 50 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 51 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Debug|Any CPU.Build.0 = Debug|Any CPU 52 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Release|Any CPU.ActiveCfg = Release|Any CPU 53 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Release|Any CPU.Build.0 = Release|Any CPU 54 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 55 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 56 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Release|iPhone.ActiveCfg = Release|Any CPU 57 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Release|iPhone.Build.0 = Release|Any CPU 58 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 59 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 60 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Debug|iPhone.ActiveCfg = Debug|Any CPU 61 | {16C423B2-493F-470C-B12C-CE4F49C6C772}.Debug|iPhone.Build.0 = Debug|Any CPU 62 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator 63 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator 64 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Release|Any CPU.ActiveCfg = Release|iPhone 65 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Release|Any CPU.Build.0 = Release|iPhone 66 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator 67 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator 68 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Release|iPhone.ActiveCfg = Release|iPhone 69 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Release|iPhone.Build.0 = Release|iPhone 70 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator 71 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator 72 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Debug|iPhone.ActiveCfg = Debug|iPhone 73 | {25C1A180-D0CC-4921-9628-7DD7D6B85219}.Debug|iPhone.Build.0 = Debug|iPhone 74 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 75 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Debug|Any CPU.Build.0 = Debug|Any CPU 76 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Release|Any CPU.ActiveCfg = Release|Any CPU 77 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Release|Any CPU.Build.0 = Release|Any CPU 78 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 79 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 80 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Release|iPhone.ActiveCfg = Release|Any CPU 81 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Release|iPhone.Build.0 = Release|Any CPU 82 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 83 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 84 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Debug|iPhone.ActiveCfg = Debug|Any CPU 85 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC}.Debug|iPhone.Build.0 = Debug|Any CPU 86 | EndGlobalSection 87 | GlobalSection(NestedProjects) = preSolution 88 | {16C423B2-493F-470C-B12C-CE4F49C6C772} = {2C1C7764-C561-453D-9CD7-F34D726C1067} 89 | {25C1A180-D0CC-4921-9628-7DD7D6B85219} = {2C1C7764-C561-453D-9CD7-F34D726C1067} 90 | {F82B796F-15D5-4C5C-85D8-03300C67C7EC} = {2C1C7764-C561-453D-9CD7-F34D726C1067} 91 | EndGlobalSection 92 | EndGlobal 93 | -------------------------------------------------------------------------------- /src/SuaveControls/SuaveControls/DynamicGridViewContentAlignment.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace SuaveControls.DynamicWrapLayout 3 | { 4 | /// 5 | /// Dynamic grid view content alignment. 6 | /// 7 | public enum DynamicGridViewContentAlignment 8 | { 9 | Default, 10 | Center 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/SuaveControls/SuaveControls/DynamicWrapLayout.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using Xamarin.Forms; 5 | 6 | namespace SuaveControls.DynamicWrapLayout 7 | { 8 | /// 9 | /// Dynamic wrap layout. Used for creating a data bound list of items and templates 10 | /// that stack horizontally but wrap when done. 11 | /// Be careful using this with large amounts of data since there is no real view recycling 12 | /// This will likely be in a nuget package to the public since nothing like it exists as is 13 | /// 14 | public class DynamicWrapLayout : Layout 15 | { 16 | private Dictionary _layoutDataCache = new Dictionary(); 17 | 18 | #region Bindable Properties 19 | /// 20 | /// The column spacing property. 21 | /// 22 | public static readonly BindableProperty ColumnSpacingProperty = BindableProperty.Create( 23 | nameof(ColumnSpacing), 24 | typeof(double), 25 | typeof(DynamicWrapLayout), 26 | 5.0, 27 | propertyChanged: (bindable, oldvalue, newvalue) => 28 | { 29 | ((DynamicWrapLayout)bindable).InvalidateLayout(); 30 | }); 31 | 32 | /// 33 | /// The row spacing property. 34 | /// 35 | public static readonly BindableProperty RowSpacingProperty = BindableProperty.Create( 36 | nameof(RowSpacing), 37 | typeof(double), 38 | typeof(DynamicWrapLayout), 39 | 5.0, 40 | propertyChanged: (bindable, oldvalue, newvalue) => 41 | { 42 | ((DynamicWrapLayout)bindable).InvalidateLayout(); 43 | }); 44 | 45 | /// 46 | /// The items source property. 47 | /// 48 | public static readonly BindableProperty ItemsSourceProperty = BindableProperty.Create( 49 | nameof(ItemsSource), 50 | typeof(IEnumerable), 51 | typeof(DynamicWrapLayout), 52 | null); 53 | 54 | /// 55 | /// The item template property. 56 | /// 57 | public static readonly BindableProperty ItemTemplateProperty = BindableProperty.Create( 58 | nameof(ItemTemplate), 59 | typeof(DataTemplate), 60 | typeof(DynamicWrapLayout), 61 | null); 62 | 63 | /// 64 | /// The vertical content alignment property. 65 | /// 66 | public static readonly BindableProperty VerticalContentAlignmentProperty = BindableProperty.Create( 67 | nameof(VerticalContentAlignment), 68 | typeof(DynamicGridViewContentAlignment), 69 | typeof(DynamicWrapLayout), 70 | DynamicGridViewContentAlignment.Default); 71 | 72 | /// 73 | /// The horizontal content alignment property. 74 | /// 75 | public static readonly BindableProperty HorizontalContentAlignmentProperty = BindableProperty.Create( 76 | nameof(HorizontalContentAlignment), 77 | typeof(DynamicGridViewContentAlignment), 78 | typeof(DynamicWrapLayout), 79 | DynamicGridViewContentAlignment.Default); 80 | 81 | #endregion 82 | #region Properties 83 | /// 84 | /// Gets or sets the horizontal content alignment. 85 | /// 86 | /// The horizontal content alignment. 87 | public DynamicGridViewContentAlignment HorizontalContentAlignment 88 | { 89 | get { return (DynamicGridViewContentAlignment)GetValue(HorizontalContentAlignmentProperty); } 90 | set { SetValue(HorizontalContentAlignmentProperty, value); } 91 | } 92 | 93 | /// 94 | /// Gets or sets the vertical content alignment. 95 | /// 96 | /// The vertical content alignment. 97 | public DynamicGridViewContentAlignment VerticalContentAlignment 98 | { 99 | get { return (DynamicGridViewContentAlignment)GetValue(VerticalContentAlignmentProperty); } 100 | set { SetValue(VerticalContentAlignmentProperty, value); } 101 | } 102 | 103 | /// 104 | /// Gets or sets the items source. 105 | /// 106 | /// The items source. 107 | public IEnumerable ItemsSource 108 | { 109 | get { return (IEnumerable)GetValue(ItemsSourceProperty); } 110 | set { SetValue(ItemsSourceProperty, value); } 111 | } 112 | 113 | /// 114 | /// Gets or sets the item template. 115 | /// 116 | /// The item template. 117 | public DataTemplate ItemTemplate 118 | { 119 | get { return (DataTemplate)GetValue(ItemTemplateProperty); } 120 | set { SetValue(ItemTemplateProperty, value); } 121 | } 122 | 123 | /// 124 | /// Gets or sets the column spacing. 125 | /// 126 | /// The column spacing. 127 | public double ColumnSpacing 128 | { 129 | set { SetValue(ColumnSpacingProperty, value); } 130 | get { return (double)GetValue(ColumnSpacingProperty); } 131 | } 132 | 133 | /// 134 | /// Gets or sets the row spacing. 135 | /// 136 | /// The row spacing. 137 | public double RowSpacing 138 | { 139 | set { SetValue(RowSpacingProperty, value); } 140 | get { return (double)GetValue(RowSpacingProperty); } 141 | } 142 | 143 | #endregion 144 | 145 | /// 146 | /// Called when measuring for layout 147 | /// 148 | /// The measure. 149 | /// Width constraint. 150 | /// Height constraint. 151 | protected override SizeRequest OnMeasure(double widthConstraint, double heightConstraint) 152 | { 153 | LayoutData layoutData = GetLayoutData(widthConstraint, heightConstraint); 154 | if (layoutData.VisibleChildCount == 0) 155 | { 156 | return new SizeRequest(); 157 | } 158 | 159 | Size totalSize = new Size(layoutData.CellSize.Width * layoutData.Columns + ColumnSpacing * (layoutData.Columns - 1), 160 | layoutData.CellSize.Height * layoutData.Rows + RowSpacing * (layoutData.Rows - 1)); 161 | return new SizeRequest(totalSize); 162 | } 163 | 164 | /// 165 | /// Layouts the children. This is where the magic happens 166 | /// 167 | /// The x coordinate. 168 | /// The y coordinate. 169 | /// Width. 170 | /// Height. 171 | protected override void LayoutChildren(double x, double y, double width, double height) 172 | { 173 | LayoutData layoutData = GetLayoutData(width, height); 174 | 175 | if (layoutData.VisibleChildCount == 0) 176 | { 177 | return; 178 | } 179 | 180 | double xChild = x; 181 | double yChild = y; 182 | int row = 0; 183 | int column = 0; 184 | 185 | foreach (View child in Children) 186 | { 187 | if (!child.IsVisible) 188 | { 189 | continue; 190 | } 191 | 192 | LayoutChildIntoBoundingRegion(child, new Rectangle(new Point(xChild, yChild), layoutData.CellSize)); 193 | 194 | if (++column == layoutData.Columns) 195 | { 196 | column = 0; 197 | row++; 198 | xChild = x; 199 | yChild += RowSpacing + layoutData.CellSize.Height; 200 | } 201 | else 202 | { 203 | xChild += ColumnSpacing + layoutData.CellSize.Width; 204 | } 205 | } 206 | } 207 | 208 | /// 209 | /// Gets the layout data. 210 | /// 211 | /// The layout data. 212 | /// Width. 213 | /// Height. 214 | private LayoutData GetLayoutData(double width, double height) 215 | { 216 | Size size = new Size(width, height); 217 | 218 | // Check if cached information is available. 219 | if (_layoutDataCache.ContainsKey(size)) 220 | { 221 | return _layoutDataCache[size]; 222 | } 223 | 224 | int visibleChildCount = 0; 225 | Size maxChildSize = new Size(); 226 | int rows = 0; 227 | int columns = 0; 228 | LayoutData layoutData = new LayoutData(); 229 | 230 | // Enumerate through all the children. 231 | foreach (View child in Children) 232 | { 233 | // Skip invisible children. 234 | if (!child.IsVisible) 235 | continue; 236 | 237 | // Count the visible children. 238 | visibleChildCount++; 239 | 240 | // Get the child's requested size. 241 | SizeRequest childSizeRequest = child.Measure(Double.PositiveInfinity, Double.PositiveInfinity); 242 | 243 | // Accumulate the maximum child size. 244 | maxChildSize.Width = Math.Max(maxChildSize.Width, childSizeRequest.Request.Width); 245 | maxChildSize.Height = Math.Max(maxChildSize.Height, childSizeRequest.Request.Height); 246 | } 247 | 248 | if (visibleChildCount != 0) 249 | { 250 | // Calculate the number of rows and columns. 251 | if (Double.IsPositiveInfinity(width)) 252 | { 253 | columns = visibleChildCount; 254 | rows = 1; 255 | } 256 | else 257 | { 258 | columns = (int)((width + ColumnSpacing) / (maxChildSize.Width + ColumnSpacing)); 259 | columns = Math.Max(1, columns); 260 | rows = (visibleChildCount + columns - 1) / columns; 261 | } 262 | 263 | // Now maximize the cell size based on the layout size. 264 | Size cellSize = new Size(); 265 | 266 | if (Double.IsPositiveInfinity(width)) 267 | { 268 | cellSize.Width = maxChildSize.Width; 269 | } 270 | else 271 | { 272 | cellSize.Width = (width - ColumnSpacing * (columns - 1)) / columns; 273 | } 274 | 275 | if (Double.IsPositiveInfinity(height)) 276 | { 277 | cellSize.Height = maxChildSize.Height; 278 | } 279 | else 280 | { 281 | cellSize.Height = (height - RowSpacing * (rows - 1)) / rows; 282 | } 283 | 284 | layoutData = new LayoutData(visibleChildCount, cellSize, rows, columns); 285 | } 286 | 287 | _layoutDataCache.Add(size, layoutData); 288 | return layoutData; 289 | } 290 | 291 | /// 292 | /// Creates the grid. 293 | /// 294 | private void CreateGrid() 295 | { 296 | // Check for data 297 | if (ItemsSource == null || ItemsSource.Count() == 0) 298 | { 299 | return; 300 | } 301 | 302 | CreateCells(); 303 | } 304 | 305 | /// 306 | /// Creates the cell view. 307 | /// 308 | /// The cell view. 309 | /// Item. 310 | private View CreateCellView(object item) 311 | { 312 | var view = (View)ItemTemplate.CreateContent(); 313 | var bindableObject = (BindableObject)view; 314 | 315 | if (bindableObject != null) 316 | { 317 | bindableObject.BindingContext = item; 318 | } 319 | 320 | return view; 321 | } 322 | 323 | /// 324 | /// Creates the cells. 325 | /// 326 | private void CreateCells() 327 | { 328 | // clear them before we add them to avoid duplications in the lifecycle from caching. 329 | Children.Clear(); 330 | 331 | foreach (var item in ItemsSource) 332 | { 333 | Children.Add(CreateCellView(item)); 334 | } 335 | } 336 | 337 | /// 338 | /// Invalidates the layout. 339 | /// 340 | protected override void InvalidateLayout() 341 | { 342 | base.InvalidateLayout(); 343 | 344 | // Discard all layout information for children added or removed. 345 | _layoutDataCache.Clear(); 346 | } 347 | 348 | /// 349 | /// Called when child object is invalidated 350 | /// 351 | protected override void OnChildMeasureInvalidated() 352 | { 353 | base.OnChildMeasureInvalidated(); 354 | 355 | // Discard all layout information for child size changed. 356 | _layoutDataCache.Clear(); 357 | } 358 | 359 | 360 | /// 361 | /// Called when the binding context changes 362 | /// 363 | protected override void OnBindingContextChanged() 364 | { 365 | base.OnBindingContextChanged(); 366 | 367 | CreateGrid(); 368 | } 369 | 370 | /// 371 | /// Called when the item source property changes 372 | /// 373 | /// Property name. 374 | protected override void OnPropertyChanged(string propertyName) 375 | { 376 | if (propertyName == ItemsSourceProperty.PropertyName) 377 | { 378 | CreateGrid(); 379 | } 380 | 381 | base.OnPropertyChanged(propertyName); 382 | } 383 | } 384 | } 385 | -------------------------------------------------------------------------------- /src/SuaveControls/SuaveControls/LayoutData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Xamarin.Forms; 3 | 4 | namespace SuaveControls.DynamicWrapLayout 5 | { 6 | /// 7 | /// Layout data. 8 | /// 9 | struct LayoutData 10 | { 11 | /// 12 | /// Gets the visible child count. 13 | /// 14 | /// The visible child count. 15 | public int VisibleChildCount { get; private set; } 16 | 17 | /// 18 | /// Gets the size of the cell. 19 | /// 20 | /// The size of the cell. 21 | public Size CellSize { get; private set; } 22 | 23 | /// 24 | /// Gets the rows. 25 | /// 26 | /// The rows. 27 | public int Rows { get; private set; } 28 | 29 | /// 30 | /// Gets the columns. 31 | /// 32 | /// The columns. 33 | public int Columns { get; private set; } 34 | 35 | /// 36 | /// Initializes a new instance of the struct. 37 | /// 38 | /// Visible child count. 39 | /// Cell size. 40 | /// Rows. 41 | /// Columns. 42 | public LayoutData(int visibleChildCount, Size cellSize, int rows, int columns) : this() 43 | { 44 | VisibleChildCount = visibleChildCount; 45 | CellSize = cellSize; 46 | Rows = rows; 47 | Columns = columns; 48 | } 49 | 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/SuaveControls/SuaveControls/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // Information about this assembly is defined by the following attributes. 5 | // Change them to the values specific to your project. 6 | 7 | [assembly: AssemblyTitle("SuaveControls")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("")] 12 | [assembly: AssemblyCopyright("")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". 17 | // The form "{Major}.{Minor}.*" will automatically update the build and revision, 18 | // and "{Major}.{Minor}.{Build}.*" will update just the revision. 19 | 20 | [assembly: AssemblyVersion("1.0.*")] 21 | 22 | // The following attributes are used to specify the signing key for the assembly, 23 | // if desired. See the Mono documentation for more information about signing. 24 | 25 | //[assembly: AssemblyDelaySign(false)] 26 | //[assembly: AssemblyKeyFile("")] 27 | -------------------------------------------------------------------------------- /src/SuaveControls/SuaveControls/SuaveControls.DynamicWrapLayout.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {1E1749E5-7858-4656-A13B-890E9C5BFFF8} 8 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 9 | Library 10 | SuaveControls 11 | SuaveControls.DynamicWrapLayout 12 | v4.5 13 | Profile111 14 | 15 | 16 | true 17 | full 18 | false 19 | bin\Debug 20 | DEBUG; 21 | prompt 22 | 4 23 | 24 | 25 | true 26 | bin\Release 27 | prompt 28 | 4 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | ..\packages\Xamarin.Forms.2.4.0.280\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Core.dll 39 | 40 | 41 | ..\packages\Xamarin.Forms.2.4.0.280\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Platform.dll 42 | 43 | 44 | ..\packages\Xamarin.Forms.2.4.0.280\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Xaml.dll 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/SuaveControls/SuaveControls/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | --------------------------------------------------------------------------------