├── .gitattributes
├── .gitignore
├── ControlDesigner.UWP
├── App.xaml
├── App.xaml.cs
├── Assets
│ ├── LockScreenLogo.scale-200.png
│ ├── SplashScreen.scale-200.png
│ ├── Square150x150Logo.scale-200.png
│ ├── Square44x44Logo.scale-200.png
│ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ ├── StoreLogo.png
│ └── Wide310x150Logo.scale-200.png
├── ControlDesigner.UWP.csproj
├── MainPage.xaml
├── MainPage.xaml.cs
├── Package.appxmanifest
├── Properties
│ ├── AssemblyInfo.cs
│ └── Default.rd.xml
├── add.png
└── xamarin_logo.png
├── ControlDesigner.sln
├── ControlDesigner
├── ControlDesigner.Android
│ ├── Assets
│ │ └── AboutAssets.txt
│ ├── ControlDesigner.Android.csproj
│ ├── MainActivity.cs
│ ├── Properties
│ │ ├── AndroidManifest.xml
│ │ └── AssemblyInfo.cs
│ └── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.designer.cs
│ │ ├── drawable-hdpi
│ │ ├── cancel.png
│ │ ├── code.png
│ │ ├── edit.png
│ │ ├── eye.png
│ │ ├── info.png
│ │ ├── layout_icon.png
│ │ ├── list_icon.png
│ │ └── menu.png
│ │ ├── drawable-mdpi
│ │ └── info.png
│ │ ├── drawable-xhdpi
│ │ ├── cancel.png
│ │ ├── code.png
│ │ ├── edit.png
│ │ ├── eye.png
│ │ ├── info.png
│ │ ├── layout_icon.png
│ │ ├── list_icon.png
│ │ └── menu.png
│ │ ├── drawable-xxhdpi
│ │ ├── cancel.png
│ │ ├── code.png
│ │ ├── edit.png
│ │ ├── eye.png
│ │ ├── info.png
│ │ ├── layout_icon.png
│ │ ├── list_icon.png
│ │ └── menu.png
│ │ ├── drawable-xxxhdpi
│ │ ├── cancel.png
│ │ ├── code.png
│ │ ├── edit.png
│ │ ├── eye.png
│ │ ├── info.png
│ │ ├── layout_icon.png
│ │ ├── list_icon.png
│ │ └── menu.png
│ │ ├── drawable
│ │ ├── Icon.png
│ │ ├── cancel.xml
│ │ ├── code.xml
│ │ ├── edit.xml
│ │ ├── eye.xml
│ │ ├── info.xml
│ │ ├── layout_icon.xml
│ │ ├── list_icon.xml
│ │ ├── menu.xml
│ │ └── xamarin_logo.png
│ │ ├── layout
│ │ ├── Tabbar.axml
│ │ └── Toolbar.axml
│ │ ├── mipmap-anydpi-v26
│ │ ├── icon.xml
│ │ └── icon_round.xml
│ │ ├── mipmap-hdpi
│ │ ├── Icon.png
│ │ ├── ic_launcher.png
│ │ └── launcher_foreground.png
│ │ ├── mipmap-ldpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ ├── Icon.png
│ │ ├── ic_launcher.png
│ │ └── launcher_foreground.png
│ │ ├── mipmap-xxhdpi
│ │ ├── Icon.png
│ │ ├── ic_launcher.png
│ │ └── launcher_foreground.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── Icon.png
│ │ ├── ic_launcher.png
│ │ └── launcher_foreground.png
│ │ └── values
│ │ ├── colors.xml
│ │ └── styles.xml
├── ControlDesigner.iOS
│ ├── AppDelegate.cs
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── Icon1024.png
│ │ │ ├── Icon120.png
│ │ │ ├── Icon152.png
│ │ │ ├── Icon167.png
│ │ │ ├── Icon180.png
│ │ │ ├── Icon20.png
│ │ │ ├── Icon29.png
│ │ │ ├── Icon40.png
│ │ │ ├── Icon58.png
│ │ │ ├── Icon60.png
│ │ │ ├── Icon76.png
│ │ │ ├── Icon80.png
│ │ │ └── Icon87.png
│ ├── ControlDesigner.iOS.csproj
│ ├── Entitlements.plist
│ ├── Info.plist
│ ├── Main.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── Resources
│ │ ├── Default-568h@2x.png
│ │ ├── Default-Portrait.png
│ │ ├── Default-Portrait@2x.png
│ │ ├── Default.png
│ │ ├── Default@2x.png
│ │ ├── LaunchScreen.storyboard
│ │ ├── code.png
│ │ ├── code@2x.png
│ │ ├── code@3x.png
│ │ ├── edit.png
│ │ ├── edit@2x.png
│ │ ├── edit@3x.png
│ │ ├── eye.png
│ │ ├── eye@2x.png
│ │ ├── eye@3x.png
│ │ ├── info.png
│ │ ├── info@2x.png
│ │ ├── info@3x.png
│ │ ├── layout_icon.png
│ │ ├── layout_icon@2x.png
│ │ ├── layout_icon@3x.png
│ │ ├── list_icon.png
│ │ ├── list_icon@2x.png
│ │ ├── list_icon@3x.png
│ │ ├── menu.png
│ │ ├── menu@2x.png
│ │ ├── menu@3x.png
│ │ ├── tab_about.png
│ │ ├── tab_about@2x.png
│ │ ├── tab_about@3x.png
│ │ ├── tab_feed.png
│ │ ├── tab_feed@2x.png
│ │ ├── tab_feed@3x.png
│ │ ├── xamarin_logo.png
│ │ ├── xamarin_logo@2x.png
│ │ └── xamarin_logo@3x.png
└── ControlDesigner
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Configuration.cs
│ ├── ControlDesigner.csproj
│ ├── Controls
│ ├── NestedView.xaml
│ └── NestedView.xaml.cs
│ ├── Helpers
│ ├── Converters.cs
│ └── DialogHelper.cs
│ ├── Pages
│ └── EditorPage.cs
│ ├── ViewModels
│ ├── BaseViewModel.cs
│ ├── ControlDetailViewModel.cs
│ ├── InnerViewModel
│ │ └── PropertyViewModel.cs
│ ├── LayoutSelectionViewModel.cs
│ ├── MasterViewModel.cs
│ ├── NavigationViewModel.cs
│ └── PropertiesViewModel.cs
│ └── Views
│ ├── EditingPage.cs
│ ├── HierarchyPage.xaml
│ ├── HierarchyPage.xaml.cs
│ ├── LandingPage.xaml
│ ├── LandingPage.xaml.cs
│ ├── LayoutSelectionPage.xaml
│ ├── LayoutSelectionPage.xaml.cs
│ ├── MasterPage.xaml
│ ├── MasterPage.xaml.cs
│ ├── PreviewPage.xaml
│ ├── PreviewPage.xaml.cs
│ ├── PropertiesView.xaml
│ └── PropertiesView.xaml.cs
└── README.md
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | bld/
21 | [Bb]in/
22 | [Oo]bj/
23 | [Ll]og/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | project.fragment.lock.json
46 | artifacts/
47 |
48 | *_i.c
49 | *_p.c
50 | *_i.h
51 | *.ilk
52 | *.meta
53 | *.obj
54 | *.pch
55 | *.pdb
56 | *.pgc
57 | *.pgd
58 | *.rsp
59 | *.sbr
60 | *.tlb
61 | *.tli
62 | *.tlh
63 | *.tmp
64 | *.tmp_proj
65 | *.log
66 | *.vspscc
67 | *.vssscc
68 | .builds
69 | *.pidb
70 | *.svclog
71 | *.scc
72 |
73 | # Chutzpah Test files
74 | _Chutzpah*
75 |
76 | # Visual C++ cache files
77 | ipch/
78 | *.aps
79 | *.ncb
80 | *.opendb
81 | *.opensdf
82 | *.sdf
83 | *.cachefile
84 | *.VC.db
85 | *.VC.VC.opendb
86 |
87 | # Visual Studio profiler
88 | *.psess
89 | *.vsp
90 | *.vspx
91 | *.sap
92 |
93 | # TFS 2012 Local Workspace
94 | $tf/
95 |
96 | # Guidance Automation Toolkit
97 | *.gpState
98 |
99 | # ReSharper is a .NET coding add-in
100 | _ReSharper*/
101 | *.[Rr]e[Ss]harper
102 | *.DotSettings.user
103 |
104 | # JustCode is a .NET coding add-in
105 | .JustCode
106 |
107 | # TeamCity is a build add-in
108 | _TeamCity*
109 |
110 | # DotCover is a Code Coverage Tool
111 | *.dotCover
112 |
113 | # NCrunch
114 | _NCrunch_*
115 | .*crunch*.local.xml
116 | nCrunchTemp_*
117 |
118 | # MightyMoose
119 | *.mm.*
120 | AutoTest.Net/
121 |
122 | # Web workbench (sass)
123 | .sass-cache/
124 |
125 | # Installshield output folder
126 | [Ee]xpress/
127 |
128 | # DocProject is a documentation generator add-in
129 | DocProject/buildhelp/
130 | DocProject/Help/*.HxT
131 | DocProject/Help/*.HxC
132 | DocProject/Help/*.hhc
133 | DocProject/Help/*.hhk
134 | DocProject/Help/*.hhp
135 | DocProject/Help/Html2
136 | DocProject/Help/html
137 |
138 | # Click-Once directory
139 | publish/
140 |
141 | # Publish Web Output
142 | *.[Pp]ublish.xml
143 | *.azurePubxml
144 | # TODO: Comment the next line if you want to checkin your web deploy settings
145 | # but database connection strings (with potential passwords) will be unencrypted
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
150 | # checkin your Azure Web App publish settings, but sensitive information contained
151 | # in these scripts will be unencrypted
152 | PublishScripts/
153 |
154 | # NuGet Packages
155 | *.nupkg
156 | # The packages folder can be ignored because of Package Restore
157 | **/packages/*
158 | # except build/, which is used as an MSBuild target.
159 | !**/packages/build/
160 | # Uncomment if necessary however generally it will be regenerated when needed
161 | #!**/packages/repositories.config
162 | # NuGet v3's project.json files produces more ignoreable files
163 | *.nuget.props
164 | *.nuget.targets
165 |
166 | # Microsoft Azure Build Output
167 | csx/
168 | *.build.csdef
169 |
170 | # Microsoft Azure Emulator
171 | ecf/
172 | rcf/
173 |
174 | # Windows Store app package directories and files
175 | AppPackages/
176 | BundleArtifacts/
177 | Package.StoreAssociation.xml
178 | _pkginfo.txt
179 |
180 | # Visual Studio cache files
181 | # files ending in .cache can be ignored
182 | *.[Cc]ache
183 | # but keep track of directories ending in .cache
184 | !*.[Cc]ache/
185 |
186 | # Others
187 | ClientBin/
188 | ~$*
189 | *~
190 | *.dbmdl
191 | *.dbproj.schemaview
192 | *.jfm
193 | *.pfx
194 | *.publishsettings
195 | node_modules/
196 | orleans.codegen.cs
197 |
198 | # Since there are multiple workflows, uncomment next line to ignore bower_components
199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
200 | #bower_components/
201 |
202 | # RIA/Silverlight projects
203 | Generated_Code/
204 |
205 | # Backup & report files from converting an old project file
206 | # to a newer Visual Studio version. Backup files are not needed,
207 | # because we have git ;-)
208 | _UpgradeReport_Files/
209 | Backup*/
210 | UpgradeLog*.XML
211 | UpgradeLog*.htm
212 |
213 | # SQL Server files
214 | *.mdf
215 | *.ldf
216 |
217 | # Business Intelligence projects
218 | *.rdl.data
219 | *.bim.layout
220 | *.bim_*.settings
221 |
222 | # Microsoft Fakes
223 | FakesAssemblies/
224 |
225 | # GhostDoc plugin setting file
226 | *.GhostDoc.xml
227 |
228 | # Node.js Tools for Visual Studio
229 | .ntvs_analysis.dat
230 |
231 | # Visual Studio 6 build log
232 | *.plg
233 |
234 | # Visual Studio 6 workspace options file
235 | *.opt
236 |
237 | # Visual Studio LightSwitch build output
238 | **/*.HTMLClient/GeneratedArtifacts
239 | **/*.DesktopClient/GeneratedArtifacts
240 | **/*.DesktopClient/ModelManifest.xml
241 | **/*.Server/GeneratedArtifacts
242 | **/*.Server/ModelManifest.xml
243 | _Pvt_Extensions
244 |
245 | # Paket dependency manager
246 | .paket/paket.exe
247 | paket-files/
248 |
249 | # FAKE - F# Make
250 | .fake/
251 |
252 | # JetBrains Rider
253 | .idea/
254 | *.sln.iml
255 |
256 | # CodeRush
257 | .cr/
258 |
259 | # Python Tools for Visual Studio (PTVS)
260 | __pycache__/
261 | *.pyc
--------------------------------------------------------------------------------
/ControlDesigner.UWP/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ControlDesigner.UWP/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using Windows.ApplicationModel;
7 | using Windows.ApplicationModel.Activation;
8 | using Windows.Foundation;
9 | using Windows.Foundation.Collections;
10 | using Windows.UI.Xaml;
11 | using Windows.UI.Xaml.Controls;
12 | using Windows.UI.Xaml.Controls.Primitives;
13 | using Windows.UI.Xaml.Data;
14 | using Windows.UI.Xaml.Input;
15 | using Windows.UI.Xaml.Media;
16 | using Windows.UI.Xaml.Navigation;
17 |
18 | namespace ControlDesigner.UWP
19 | {
20 | ///
21 | /// Provides application-specific behavior to supplement the default Application class.
22 | ///
23 | sealed partial class App : Application
24 | {
25 | ///
26 | /// Initializes the singleton application object. This is the first line of authored code
27 | /// executed, and as such is the logical equivalent of main() or WinMain().
28 | ///
29 | public App()
30 | {
31 | this.InitializeComponent();
32 | this.Suspending += OnSuspending;
33 | }
34 |
35 | ///
36 | /// Invoked when the application is launched normally by the end user. Other entry points
37 | /// will be used such as when the application is launched to open a specific file.
38 | ///
39 | /// Details about the launch request and process.
40 | protected override void OnLaunched(LaunchActivatedEventArgs e)
41 | {
42 | Frame rootFrame = Window.Current.Content as Frame;
43 |
44 | // Do not repeat app initialization when the Window already has content,
45 | // just ensure that the window is active
46 | if (rootFrame == null)
47 | {
48 | // Create a Frame to act as the navigation context and navigate to the first page
49 | rootFrame = new Frame();
50 |
51 | rootFrame.NavigationFailed += OnNavigationFailed;
52 |
53 | Xamarin.Forms.Forms.Init(e);
54 |
55 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
56 | {
57 | //TODO: Load state from previously suspended application
58 | }
59 |
60 | // Place the frame in the current Window
61 | Window.Current.Content = rootFrame;
62 | }
63 |
64 | if (e.PrelaunchActivated == false)
65 | {
66 | if (rootFrame.Content == null)
67 | {
68 | // When the navigation stack isn't restored navigate to the first page,
69 | // configuring the new page by passing required information as a navigation
70 | // parameter
71 | rootFrame.Navigate(typeof(MainPage), e.Arguments);
72 | }
73 | // Ensure the current window is active
74 | Window.Current.Activate();
75 | }
76 | }
77 |
78 | ///
79 | /// Invoked when Navigation to a certain page fails
80 | ///
81 | /// The Frame which failed navigation
82 | /// Details about the navigation failure
83 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
84 | {
85 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
86 | }
87 |
88 | ///
89 | /// Invoked when application execution is being suspended. Application state is saved
90 | /// without knowing whether the application will be terminated or resumed with the contents
91 | /// of memory still intact.
92 | ///
93 | /// The source of the suspend request.
94 | /// Details about the suspend request.
95 | private void OnSuspending(object sender, SuspendingEventArgs e)
96 | {
97 | var deferral = e.SuspendingOperation.GetDeferral();
98 | //TODO: Save application state and stop any background activity
99 | deferral.Complete();
100 | }
101 | }
102 | }
103 |
--------------------------------------------------------------------------------
/ControlDesigner.UWP/Assets/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner.UWP/Assets/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/ControlDesigner.UWP/Assets/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner.UWP/Assets/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/ControlDesigner.UWP/Assets/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner.UWP/Assets/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/ControlDesigner.UWP/Assets/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner.UWP/Assets/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/ControlDesigner.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/ControlDesigner.UWP/Assets/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner.UWP/Assets/StoreLogo.png
--------------------------------------------------------------------------------
/ControlDesigner.UWP/Assets/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner.UWP/Assets/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/ControlDesigner.UWP/ControlDesigner.UWP.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | x86
7 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}
8 | AppContainerExe
9 | Properties
10 | ControlDesigner.UWP
11 | ControlDesigner.UWP
12 | en-US
13 | UAP
14 | 10.0.16299.0
15 | 10.0.16299.0
16 | 14
17 | true
18 | 512
19 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
20 | ControlDesigner.UWP_TemporaryKey.pfx
21 |
22 |
23 | true
24 | bin\ARM\Debug\
25 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
26 | ;2008
27 | full
28 | ARM
29 | false
30 | prompt
31 | true
32 |
33 |
34 | bin\ARM\Release\
35 | TRACE;NETFX_CORE;WINDOWS_UWP
36 | true
37 | ;2008
38 | pdbonly
39 | ARM
40 | false
41 | prompt
42 | true
43 | true
44 |
45 |
46 | true
47 | bin\x64\Debug\
48 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
49 | ;2008
50 | full
51 | x64
52 | false
53 | prompt
54 | true
55 |
56 |
57 | bin\x64\Release\
58 | TRACE;NETFX_CORE;WINDOWS_UWP
59 | true
60 | ;2008
61 | pdbonly
62 | x64
63 | false
64 | prompt
65 | true
66 | true
67 |
68 |
69 | true
70 | bin\x86\Debug\
71 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
72 | ;2008
73 | full
74 | x86
75 | false
76 | prompt
77 | true
78 |
79 |
80 | bin\x86\Release\
81 | TRACE;NETFX_CORE;WINDOWS_UWP
82 | true
83 | ;2008
84 | pdbonly
85 | x86
86 | false
87 | prompt
88 | true
89 | true
90 |
91 |
92 |
93 | App.xaml
94 |
95 |
96 | MainPage.xaml
97 |
98 |
99 |
100 |
101 |
102 | Designer
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | MSBuild:Compile
117 | Designer
118 |
119 |
120 | MSBuild:Compile
121 | Designer
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 | {705c631e-c917-4f53-8ce3-e86a94773097}
131 | ControlDesigner
132 |
133 |
134 |
135 | 14.0
136 |
137 |
138 |
--------------------------------------------------------------------------------
/ControlDesigner.UWP/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/ControlDesigner.UWP/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using Windows.Foundation;
7 | using Windows.Foundation.Collections;
8 | using Windows.UI.Xaml;
9 | using Windows.UI.Xaml.Controls;
10 | using Windows.UI.Xaml.Controls.Primitives;
11 | using Windows.UI.Xaml.Data;
12 | using Windows.UI.Xaml.Input;
13 | using Windows.UI.Xaml.Media;
14 | using Windows.UI.Xaml.Navigation;
15 |
16 | // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
17 |
18 | namespace ControlDesigner.UWP
19 | {
20 | ///
21 | /// An empty page that can be used on its own or navigated to within a Frame.
22 | ///
23 | public sealed partial class MainPage : global::Xamarin.Forms.Platform.UWP.WindowsPage
24 | {
25 | public MainPage()
26 | {
27 | this.InitializeComponent();
28 |
29 | LoadApplication(new global::ControlDesigner.App());
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/ControlDesigner.UWP/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
15 |
16 |
17 | ControlDesigner.UWP
18 | docto
19 | Assets\StoreLogo.png
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/ControlDesigner.UWP/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("ControlDesigner.UWP")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ControlDesigner.UWP")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Version information for an assembly consists of the following four values:
18 | //
19 | // Major Version
20 | // Minor Version
21 | // Build Number
22 | // Revision
23 | //
24 | // You can specify all the values or you can default the Build and Revision Numbers
25 | // by using the '*' as shown below:
26 | // [assembly: AssemblyVersion("1.0.*")]
27 | [assembly: AssemblyVersion("1.0.0.0")]
28 | [assembly: AssemblyFileVersion("1.0.0.0")]
29 | [assembly: ComVisible(false)]
--------------------------------------------------------------------------------
/ControlDesigner.UWP/Properties/Default.rd.xml:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/ControlDesigner.UWP/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner.UWP/add.png
--------------------------------------------------------------------------------
/ControlDesigner.UWP/xamarin_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner.UWP/xamarin_logo.png
--------------------------------------------------------------------------------
/ControlDesigner.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27703.2035
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ControlDesigner.Android", "ControlDesigner\ControlDesigner.Android\ControlDesigner.Android.csproj", "{65C23B16-333B-4929-9816-575565B22E9F}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ControlDesigner.iOS", "ControlDesigner\ControlDesigner.iOS\ControlDesigner.iOS.csproj", "{6A4587AF-CA34-461C-9613-F5467914AA70}"
9 | EndProject
10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ControlDesigner", "ControlDesigner\ControlDesigner\ControlDesigner.csproj", "{705C631E-C917-4F53-8CE3-E86A94773097}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ControlDesigner.UWP", "ControlDesigner.UWP\ControlDesigner.UWP.csproj", "{D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}"
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Debug|ARM = Debug|ARM
18 | Debug|iPhone = Debug|iPhone
19 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
20 | Debug|x64 = Debug|x64
21 | Debug|x86 = Debug|x86
22 | Release|Any CPU = Release|Any CPU
23 | Release|ARM = Release|ARM
24 | Release|iPhone = Release|iPhone
25 | Release|iPhoneSimulator = Release|iPhoneSimulator
26 | Release|x64 = Release|x64
27 | Release|x86 = Release|x86
28 | EndGlobalSection
29 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
30 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
32 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
33 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|ARM.ActiveCfg = Debug|Any CPU
34 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|ARM.Build.0 = Debug|Any CPU
35 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|ARM.Deploy.0 = Debug|Any CPU
36 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|iPhone.ActiveCfg = Debug|Any CPU
37 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|iPhone.Build.0 = Debug|Any CPU
38 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|iPhone.Deploy.0 = Debug|Any CPU
39 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
40 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
41 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
42 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|x64.ActiveCfg = Debug|Any CPU
43 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|x64.Build.0 = Debug|Any CPU
44 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|x64.Deploy.0 = Debug|Any CPU
45 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|x86.ActiveCfg = Debug|Any CPU
46 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|x86.Build.0 = Debug|Any CPU
47 | {65C23B16-333B-4929-9816-575565B22E9F}.Debug|x86.Deploy.0 = Debug|Any CPU
48 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
49 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|Any CPU.Build.0 = Release|Any CPU
50 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|Any CPU.Deploy.0 = Release|Any CPU
51 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|ARM.ActiveCfg = Release|Any CPU
52 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|ARM.Build.0 = Release|Any CPU
53 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|ARM.Deploy.0 = Release|Any CPU
54 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|iPhone.ActiveCfg = Release|Any CPU
55 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|iPhone.Build.0 = Release|Any CPU
56 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|iPhone.Deploy.0 = Release|Any CPU
57 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
58 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
59 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
60 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|x64.ActiveCfg = Release|Any CPU
61 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|x64.Build.0 = Release|Any CPU
62 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|x64.Deploy.0 = Release|Any CPU
63 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|x86.ActiveCfg = Release|Any CPU
64 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|x86.Build.0 = Release|Any CPU
65 | {65C23B16-333B-4929-9816-575565B22E9F}.Release|x86.Deploy.0 = Release|Any CPU
66 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
67 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
68 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|Any CPU.Deploy.0 = Debug|iPhoneSimulator
69 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|ARM.ActiveCfg = Debug|iPhone
70 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|iPhone.ActiveCfg = Debug|iPhone
71 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|iPhone.Build.0 = Debug|iPhone
72 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|iPhone.Deploy.0 = Debug|iPhone
73 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
74 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
75 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator
76 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|x64.ActiveCfg = Debug|iPhone
77 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Debug|x86.ActiveCfg = Debug|iPhone
78 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|Any CPU.ActiveCfg = Release|iPhone
79 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|Any CPU.Build.0 = Release|iPhone
80 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|Any CPU.Deploy.0 = Release|iPhone
81 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|ARM.ActiveCfg = Release|iPhoneSimulator
82 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|iPhone.ActiveCfg = Release|iPhone
83 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|iPhone.Build.0 = Release|iPhone
84 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|iPhone.Deploy.0 = Release|iPhone
85 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
86 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
87 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator
88 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|x64.ActiveCfg = Release|iPhoneSimulator
89 | {6A4587AF-CA34-461C-9613-F5467914AA70}.Release|x86.ActiveCfg = Release|iPhoneSimulator
90 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
91 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|Any CPU.Build.0 = Debug|Any CPU
92 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
93 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|ARM.ActiveCfg = Debug|Any CPU
94 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|ARM.Build.0 = Debug|Any CPU
95 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|iPhone.ActiveCfg = Debug|Any CPU
96 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|iPhone.Build.0 = Debug|Any CPU
97 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|iPhone.Deploy.0 = Debug|Any CPU
98 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
99 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
100 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
101 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|x64.ActiveCfg = Debug|Any CPU
102 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|x64.Build.0 = Debug|Any CPU
103 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|x86.ActiveCfg = Debug|Any CPU
104 | {705C631E-C917-4F53-8CE3-E86A94773097}.Debug|x86.Build.0 = Debug|Any CPU
105 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|Any CPU.ActiveCfg = Release|Any CPU
106 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|Any CPU.Build.0 = Release|Any CPU
107 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|Any CPU.Deploy.0 = Release|Any CPU
108 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|ARM.ActiveCfg = Release|Any CPU
109 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|ARM.Build.0 = Release|Any CPU
110 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|iPhone.ActiveCfg = Release|Any CPU
111 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|iPhone.Build.0 = Release|Any CPU
112 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|iPhone.Deploy.0 = Release|Any CPU
113 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
114 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
115 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
116 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|x64.ActiveCfg = Release|Any CPU
117 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|x64.Build.0 = Release|Any CPU
118 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|x86.ActiveCfg = Release|Any CPU
119 | {705C631E-C917-4F53-8CE3-E86A94773097}.Release|x86.Build.0 = Release|Any CPU
120 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|Any CPU.ActiveCfg = Debug|x86
121 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|ARM.ActiveCfg = Debug|ARM
122 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|ARM.Build.0 = Debug|ARM
123 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|ARM.Deploy.0 = Debug|ARM
124 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|iPhone.ActiveCfg = Debug|x86
125 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|iPhoneSimulator.ActiveCfg = Debug|x86
126 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|x64.ActiveCfg = Debug|x64
127 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|x64.Build.0 = Debug|x64
128 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|x64.Deploy.0 = Debug|x64
129 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|x86.ActiveCfg = Debug|x86
130 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|x86.Build.0 = Debug|x86
131 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Debug|x86.Deploy.0 = Debug|x86
132 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|Any CPU.ActiveCfg = Release|x86
133 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|ARM.ActiveCfg = Release|ARM
134 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|ARM.Build.0 = Release|ARM
135 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|ARM.Deploy.0 = Release|ARM
136 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|iPhone.ActiveCfg = Release|x86
137 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|iPhoneSimulator.ActiveCfg = Release|x86
138 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|x64.ActiveCfg = Release|x64
139 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|x64.Build.0 = Release|x64
140 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|x64.Deploy.0 = Release|x64
141 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|x86.ActiveCfg = Release|x86
142 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|x86.Build.0 = Release|x86
143 | {D502EE92-13CE-41BB-92F6-1D9F4C9A2A30}.Release|x86.Deploy.0 = Release|x86
144 | EndGlobalSection
145 | GlobalSection(SolutionProperties) = preSolution
146 | HideSolutionNode = FALSE
147 | EndGlobalSection
148 | GlobalSection(ExtensibilityGlobals) = postSolution
149 | SolutionGuid = {AB65B884-F344-4BEA-98BA-61C3171E926C}
150 | EndGlobalSection
151 | EndGlobal
152 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Assets/AboutAssets.txt:
--------------------------------------------------------------------------------
1 | Any raw assets you want to be deployed with your application can be placed in
2 | this directory (and child directories) and given a Build Action of "AndroidAsset".
3 |
4 | These files will be deployed with you package and will be accessible using Android's
5 | AssetManager, like this:
6 |
7 | public class ReadAsset : Activity
8 | {
9 | protected override void OnCreate (Bundle bundle)
10 | {
11 | base.OnCreate (bundle);
12 |
13 | InputStream input = Assets.Open ("my_asset.txt");
14 | }
15 | }
16 |
17 | Additionally, some Android functions will automatically load asset files:
18 |
19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
20 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/ControlDesigner.Android.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {65C23B16-333B-4929-9816-575565B22E9F}
7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
8 | {6968b3a4-1835-46a3-ac5c-1ae33b475983}
9 | Library
10 | ControlDesigner.Droid
11 | ControlDesigner.Android
12 | True
13 | Resources\Resource.designer.cs
14 | Resource
15 | Properties\AndroidManifest.xml
16 | Resources
17 | Assets
18 | false
19 | v8.1
20 |
21 |
22 |
23 |
24 | true
25 | full
26 | false
27 | bin\Debug
28 | DEBUG;
29 | prompt
30 | 4
31 | None
32 |
33 |
34 | true
35 | pdbonly
36 | true
37 | bin\Release
38 | prompt
39 | 4
40 | true
41 | false
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | 1.0.4
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | 1.1.2
62 |
63 |
64 | 2.3.0
65 |
66 |
67 | 1.3.0
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 | {CAD328C2-3F53-4C4E-B36E-84AFBA0E854D}
103 | ControlDesigner
104 |
105 |
106 |
107 |
108 |
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 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
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 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/MainActivity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | using Android.App;
4 | using Android.Content.PM;
5 | using Android.Runtime;
6 | using Android.Views;
7 | using Android.Widget;
8 | using Android.OS;
9 |
10 | namespace ControlDesigner.Droid
11 | {
12 | [Activity(Label = "Xamarin Forms Page Builder", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
13 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
14 | {
15 | protected override void OnCreate(Bundle bundle)
16 | {
17 | TabLayoutResource = Resource.Layout.Tabbar;
18 | ToolbarResource = Resource.Layout.Toolbar;
19 |
20 | base.OnCreate(bundle);
21 |
22 | global::Xamarin.Forms.Forms.Init(this, bundle);
23 | LoadApplication(new App());
24 | }
25 | }
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 | using Android.App;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("ControlDesigner.Android")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("ControlDesigner.Android")]
14 | [assembly: AssemblyCopyright("Copyright © 2014")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 | [assembly: ComVisible(false)]
18 |
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Build and Revision Numbers
27 | // by using the '*' as shown below:
28 | // [assembly: AssemblyVersion("1.0.*")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
32 | // Add some common permissions, these can be removed if not needed
33 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)]
34 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
35 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/AboutResources.txt:
--------------------------------------------------------------------------------
1 | Images, layout descriptions, binary blobs and string dictionaries can be included
2 | in your application as resource files. Various Android APIs are designed to
3 | operate on the resource IDs instead of dealing with images, strings or binary blobs
4 | directly.
5 |
6 | For example, a sample Android app that contains a user interface layout (main.xml),
7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
8 | would keep its resources in the "Resources" directory of the application:
9 |
10 | Resources/
11 | drawable-hdpi/
12 | icon.png
13 |
14 | drawable-ldpi/
15 | icon.png
16 |
17 | drawable-mdpi/
18 | icon.png
19 |
20 | layout/
21 | main.xml
22 |
23 | values/
24 | strings.xml
25 |
26 | In order to get the build system to recognize Android resources, set the build action to
27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but
28 | instead operate on resource IDs. When you compile an Android application that uses resources,
29 | the build system will package the resources for distribution and generate a class called
30 | "Resource" that contains the tokens for each one of the resources included. For example,
31 | for the above Resources layout, this is what the Resource class would expose:
32 |
33 | public class Resource {
34 | public class drawable {
35 | public const int icon = 0x123;
36 | }
37 |
38 | public class layout {
39 | public const int main = 0x456;
40 | }
41 |
42 | public class strings {
43 | public const int first_string = 0xabc;
44 | public const int second_string = 0xbcd;
45 | }
46 | }
47 |
48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
50 | string in the dictionary file values/strings.xml.
51 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/cancel.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/code.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/edit.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/eye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/eye.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/info.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/layout_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/layout_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/list_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/list_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-hdpi/menu.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-mdpi/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-mdpi/info.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/cancel.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/code.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/edit.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/eye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/eye.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/info.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/layout_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/layout_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/list_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/list_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xhdpi/menu.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/cancel.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/code.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/edit.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/eye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/eye.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/info.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/layout_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/layout_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/list_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/list_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxhdpi/menu.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/cancel.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/code.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/edit.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/eye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/eye.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/info.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/layout_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/layout_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/list_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/list_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable-xxxhdpi/menu.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable/Icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/cancel.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/code.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/edit.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/eye.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/info.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/layout_icon.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/list_icon.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/menu.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/drawable/xamarin_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/drawable/xamarin_logo.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/layout/Tabbar.axml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/layout/Toolbar.axml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-anydpi-v26/icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-anydpi-v26/icon_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-hdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-hdpi/Icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-hdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-hdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xhdpi/Icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxhdpi/Icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxxhdpi/Icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 | #3F51B5
5 | #303F9F
6 | #FF4081
7 |
8 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.Android/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
26 |
27 |
30 |
31 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.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 ControlDesigner.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 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {
4 | "scale": "2x",
5 | "size": "20x20",
6 | "idiom": "iphone",
7 | "filename": "Icon40.png"
8 | },
9 | {
10 | "scale": "3x",
11 | "size": "20x20",
12 | "idiom": "iphone",
13 | "filename": "Icon60.png"
14 | },
15 | {
16 | "scale": "2x",
17 | "size": "29x29",
18 | "idiom": "iphone",
19 | "filename": "Icon58.png"
20 | },
21 | {
22 | "scale": "3x",
23 | "size": "29x29",
24 | "idiom": "iphone",
25 | "filename": "Icon87.png"
26 | },
27 | {
28 | "scale": "2x",
29 | "size": "40x40",
30 | "idiom": "iphone",
31 | "filename": "Icon80.png"
32 | },
33 | {
34 | "scale": "3x",
35 | "size": "40x40",
36 | "idiom": "iphone",
37 | "filename": "Icon120.png"
38 | },
39 | {
40 | "scale": "2x",
41 | "size": "60x60",
42 | "idiom": "iphone",
43 | "filename": "Icon120.png"
44 | },
45 | {
46 | "scale": "3x",
47 | "size": "60x60",
48 | "idiom": "iphone",
49 | "filename": "Icon180.png"
50 | },
51 | {
52 | "scale": "1x",
53 | "size": "20x20",
54 | "idiom": "ipad",
55 | "filename": "Icon20.png"
56 | },
57 | {
58 | "scale": "2x",
59 | "size": "20x20",
60 | "idiom": "ipad",
61 | "filename": "Icon40.png"
62 | },
63 | {
64 | "scale": "1x",
65 | "size": "29x29",
66 | "idiom": "ipad",
67 | "filename": "Icon29.png"
68 | },
69 | {
70 | "scale": "2x",
71 | "size": "29x29",
72 | "idiom": "ipad",
73 | "filename": "Icon58.png"
74 | },
75 | {
76 | "scale": "1x",
77 | "size": "40x40",
78 | "idiom": "ipad",
79 | "filename": "Icon40.png"
80 | },
81 | {
82 | "scale": "2x",
83 | "size": "40x40",
84 | "idiom": "ipad",
85 | "filename": "Icon80.png"
86 | },
87 | {
88 | "scale": "1x",
89 | "size": "76x76",
90 | "idiom": "ipad",
91 | "filename": "Icon76.png"
92 | },
93 | {
94 | "scale": "2x",
95 | "size": "76x76",
96 | "idiom": "ipad",
97 | "filename": "Icon152.png"
98 | },
99 | {
100 | "scale": "2x",
101 | "size": "83.5x83.5",
102 | "idiom": "ipad",
103 | "filename": "Icon167.png"
104 | },
105 | {
106 | "scale": "1x",
107 | "size": "1024x1024",
108 | "idiom": "ios-marketing",
109 | "filename": "Icon1024.png"
110 | }
111 | ],
112 | "properties": {},
113 | "info": {
114 | "version": 1,
115 | "author": "xcode"
116 | }
117 | }
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/ControlDesigner.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {6A4587AF-CA34-461C-9613-F5467914AA70}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | {89a4fe7c-635d-49c9-8d8c-5cd363c0d68d}
11 | Exe
12 | ControlDesigner.iOS
13 | Resources
14 | ControlDesigner.iOS
15 |
16 |
17 |
18 |
19 | true
20 | full
21 | false
22 | bin\iPhoneSimulator\Debug
23 | DEBUG
24 | prompt
25 | 4
26 | false
27 | x86_64
28 | None
29 | true
30 |
31 |
32 | none
33 | true
34 | bin\iPhoneSimulator\Release
35 | prompt
36 | 4
37 | None
38 | x86_64
39 | false
40 |
41 |
42 | true
43 | full
44 | false
45 | bin\iPhone\Debug
46 | DEBUG
47 | prompt
48 | 4
49 | false
50 | ARM64
51 | iPhone Developer
52 | true
53 | Entitlements.plist
54 |
55 |
56 | none
57 | true
58 | bin\iPhone\Release
59 | prompt
60 | 4
61 | ARM64
62 | false
63 | iPhone Developer
64 | Entitlements.plist
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | false
76 |
77 |
78 | false
79 |
80 |
81 | false
82 |
83 |
84 | false
85 |
86 |
87 | false
88 |
89 |
90 | false
91 |
92 |
93 | false
94 |
95 |
96 | false
97 |
98 |
99 | false
100 |
101 |
102 | false
103 |
104 |
105 | false
106 |
107 |
108 | false
109 |
110 |
111 | false
112 |
113 |
114 | false
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 | 1.0.4
136 |
137 |
138 |
139 | 1.1.2
140 |
141 |
142 | 2.3.0
143 |
144 |
145 | 1.3.0
146 |
147 |
148 |
149 |
150 |
151 | {CAD328C2-3F53-4C4E-B36E-84AFBA0E854D}
152 | ControlDesigner
153 |
154 |
155 |
156 |
157 |
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 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | UIDeviceFamily
6 |
7 | 1
8 | 2
9 |
10 | UISupportedInterfaceOrientations
11 |
12 | UIInterfaceOrientationPortrait
13 | UIInterfaceOrientationLandscapeLeft
14 | UIInterfaceOrientationLandscapeRight
15 |
16 | UISupportedInterfaceOrientations~ipad
17 |
18 | UIInterfaceOrientationPortrait
19 | UIInterfaceOrientationPortraitUpsideDown
20 | UIInterfaceOrientationLandscapeLeft
21 | UIInterfaceOrientationLandscapeRight
22 |
23 | MinimumOSVersion
24 | 8.0
25 | CFBundleDisplayName
26 | ControlDesigner
27 | CFBundleIdentifier
28 | com.companyname.ControlDesigner
29 | CFBundleVersion
30 | 1.0
31 | UILaunchStoryboardName
32 | LaunchScreen
33 | CFBundleName
34 | ControlDesigner
35 | XSAppIconAssets
36 | Assets.xcassets/AppIcon.appiconset
37 |
38 |
39 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.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 ControlDesigner.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 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.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("ControlDesigner.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ControlDesigner.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 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.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 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/code.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/code@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/code@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/code@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/code@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/edit.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/edit@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/edit@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/edit@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/edit@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/eye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/eye.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/eye@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/eye@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/eye@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/eye@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/info.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/info@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/info@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/info@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/info@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/layout_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/layout_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/layout_icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/layout_icon@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/layout_icon@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/layout_icon@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/list_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/list_icon.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/list_icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/list_icon@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/list_icon@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/list_icon@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/menu.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/menu@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/menu@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/menu@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/menu@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/tab_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/tab_about.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/tab_about@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/tab_about@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/tab_about@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/tab_about@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/tab_feed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/tab_feed.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/tab_feed@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/tab_feed@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/tab_feed@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/tab_feed@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/xamarin_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/xamarin_logo.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/xamarin_logo@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/xamarin_logo@2x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner.iOS/Resources/xamarin_logo@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/enisn/XamarinForms.PageBuilder/a490dc452d6101722af0f97587666e8fbb189dc8/ControlDesigner/ControlDesigner.iOS/Resources/xamarin_logo@3x.png
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | #2196F3
13 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Xamarin.Forms;
3 | using ControlDesigner.Views;
4 | using Xamarin.Forms.Xaml;
5 |
6 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)]
7 | namespace ControlDesigner
8 | {
9 | public partial class App : Application
10 | {
11 |
12 | public App()
13 | {
14 | InitializeComponent();
15 |
16 |
17 | MainPage = new MasterDetailPage
18 | {
19 | Master = new MasterPage(),
20 | Detail = new NavigationPage( new LandingPage())
21 | };
22 | }
23 |
24 | protected override void OnStart()
25 | {
26 | // Handle when your app starts
27 | }
28 |
29 | protected override void OnSleep()
30 | {
31 | // Handle when your app sleeps
32 | }
33 |
34 | protected override void OnResume()
35 | {
36 | // Handle when your app resumes
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Configuration.cs:
--------------------------------------------------------------------------------
1 | using Plugin.InputKit.Shared.Controls;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 | using Xamarin.Forms;
6 |
7 | namespace ControlDesigner
8 | {
9 | public class Configuration
10 | {
11 | public static readonly Type[] supportedControls = new[]
12 | {
13 | typeof(ActivityIndicator),
14 | typeof(BoxView),
15 | typeof(Button),
16 | typeof(DatePicker),
17 | typeof(Editor),
18 | typeof(Entry),
19 | typeof(Image),
20 | typeof(Label),
21 | typeof(OpenGLView),
22 | typeof(Picker),
23 | typeof(ProgressBar),
24 | typeof(SearchBar),
25 | typeof(Slider),
26 | typeof(Stepper),
27 | typeof(Switch),
28 | typeof(TimePicker),
29 | typeof(WebView),
30 |
31 | typeof(ContentView),
32 | typeof(ScrollView),
33 | typeof(Frame),
34 | typeof(StackLayout),
35 | typeof(FlexLayout),
36 | typeof(Grid),
37 |
38 | typeof(CheckBox),
39 | typeof(RadioButtonGroupView),
40 | typeof(RadioButton),
41 | typeof(AdvancedEntry),
42 | typeof(AdvancedSlider),
43 | typeof(FormView),
44 | };
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/ControlDesigner.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | PreviewPage.xaml
18 |
19 |
20 |
21 |
22 |
23 | MSBuild:UpdateDesignTimeXaml
24 |
25 |
26 | MSBuild:UpdateDesignTimeXaml
27 |
28 |
29 | MSBuild:UpdateDesignTimeXaml
30 |
31 |
32 | MSBuild:UpdateDesignTimeXaml
33 |
34 |
35 | MSBuild:UpdateDesignTimeXaml
36 |
37 |
38 | MSBuild:UpdateDesignTimeXaml
39 |
40 |
41 | MSBuild:UpdateDesignTimeXaml
42 |
43 |
44 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Controls/NestedView.xaml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Controls/NestedView.xaml.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.ViewModels;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Diagnostics;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 |
9 | using Xamarin.Forms;
10 | using Xamarin.Forms.Xaml;
11 |
12 | namespace ControlDesigner.Controls
13 | {
14 | [XamlCompilation(XamlCompilationOptions.Compile)]
15 | public partial class NestedView : ContentView
16 | {
17 | public NestedView()
18 | {
19 | InitializeComponent();
20 | }
21 | public NestedView(object context)
22 | {
23 | this.BindingContext = context;
24 | InitializeComponent();
25 | if (context is Layout)
26 | {
27 | (context as Layout).ChildAdded -= NestedView_ChildAdded;
28 | (context as Layout).ChildAdded += NestedView_ChildAdded;
29 | (context as Layout).ChildRemoved -= NestedView_ChildRemoved;
30 | (context as Layout).ChildRemoved += NestedView_ChildRemoved;
31 | }
32 | if (context is ContentView)
33 | {
34 | (context as ContentView).ChildAdded -= NestedView_ChildAdded;
35 | (context as ContentView).ChildAdded += NestedView_ChildAdded;
36 | (context as ContentView).ChildRemoved -= NestedView_ChildRemoved;
37 | (context as ContentView).ChildRemoved += NestedView_ChildRemoved;
38 | }
39 | }
40 |
41 |
42 | private void NestedView_ChildAdded(object sender, ElementEventArgs e)
43 | {
44 | try
45 | {
46 | slChildren.Children.Add(new NestedView(e.Element));
47 | }
48 | catch (Exception ex)
49 | {
50 | Debug.WriteLine(ex.ToString());
51 | }
52 | }
53 |
54 | private void NestedView_ChildRemoved(object sender, ElementEventArgs e)
55 | {
56 | try
57 | {
58 | slChildren.Children.Remove(slChildren.Children.FirstOrDefault(x => x.BindingContext == e.Element));
59 | }
60 | catch (Exception ex)
61 | {
62 | Debug.WriteLine(ex.ToString());
63 | }
64 | }
65 |
66 | private void Element_Tapped(object sender, EventArgs e)
67 | {
68 | PropertiesViewModel.OnTappedAControl(this.BindingContext);
69 | }
70 | }
71 | }
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Helpers/Converters.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Globalization;
4 | using System.Text;
5 | using Xamarin.Forms;
6 |
7 | namespace ControlDesigner.Helpers
8 | {
9 | public class ViewToNameConverter : IValueConverter
10 | {
11 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
12 | {
13 | return value?.GetType().Name;
14 | }
15 |
16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
17 | {
18 | return targetType.Name;
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Helpers/DialogHelper.cs:
--------------------------------------------------------------------------------
1 | using Plugin.InputKit.Shared.Controls;
2 | using Rg.Plugins.Popup.Pages;
3 | using Rg.Plugins.Popup.Services;
4 | using System;
5 | using System.Collections;
6 | using System.Collections.Generic;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using Xamarin.Forms;
10 |
11 | namespace ControlDesigner.Helpers
12 | {
13 | public class DialogHelper
14 | {
15 | ///
16 | /// Textbox açarak kullanıcıdan string tipinde input alır ve sonucu return eder.
17 | ///
18 | /// Başlık olarak gözükecek yazı
19 | /// Başlığın altında yer alacak açıklama
20 | /// Bu değer textbox'ın içinde yer alacak yazı, boş textbox için null bırakılmalı.
21 | ///
22 | public static Task GetUserInputAsync(string title = "", string message = "Bir Değer Girin;", string editorContent = "")
23 | {
24 | var tcs = new TaskCompletionSource();
25 |
26 | var lblTitle = new Label { Text = title, Margin = 10, HorizontalOptions = LayoutOptions.Center, FontAttributes = FontAttributes.Bold, FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)) };
27 | var lblMessage = new Label { Text = message };
28 | var txtInput = new Editor { Text = editorContent, HeightRequest = 80, BackgroundColor = Color.White };
29 |
30 | var btnOk = new Button
31 | {
32 | Text = "TAMAM",
33 | HorizontalOptions = LayoutOptions.FillAndExpand,
34 | BackgroundColor = Color.Accent,
35 | TextColor = Color.White
36 | };
37 | btnOk.Clicked += async (s, e) =>
38 | {
39 | // close page
40 | var result = txtInput.Text;
41 | await PopupNavigation.PopAsync();
42 | // pass result
43 | tcs.SetResult(result);
44 | };
45 |
46 | var btnCancel = new Button
47 | {
48 | Text = "İPTAL",
49 | HorizontalOptions = LayoutOptions.FillAndExpand,
50 | BackgroundColor = Color.FromRgb(0.8, 0.8, 0.8)
51 | };
52 | btnCancel.Clicked += async (s, e) =>
53 | {
54 | await PopupNavigation.PopAsync();
55 | tcs.SetResult(null);
56 | };
57 |
58 | var slButtons = new StackLayout
59 | {
60 | Orientation = StackOrientation.Horizontal,
61 | Children = { btnOk, btnCancel },
62 | };
63 |
64 | var layout = new StackLayout
65 | {
66 | BackgroundColor = Color.White,
67 | Margin = new Thickness(25),
68 | Padding = new Thickness(10),
69 | VerticalOptions = LayoutOptions.CenterAndExpand,
70 | Children = { lblTitle, lblMessage, new Grid { Padding = 0.8, BackgroundColor = Color.FromHex("#005da4"), Children = { txtInput } }, slButtons },
71 | };
72 |
73 | // create and show page
74 | var page = new PopupPage();
75 | page.Content = layout;
76 | page.CloseWhenBackgroundIsClicked = false;
77 | PopupNavigation.PushAsync(page);
78 | // open keyboard
79 | txtInput.Focus();
80 |
81 |
82 | // code is waiting her, until result is passed with tcs.SetResult() in btn-Clicked
83 | // then proc returns the result
84 | return tcs.Task;
85 | }
86 |
87 | internal static Task PickControlAsync()
88 | {
89 | return GetRadioButtonResult("Choose a control to add:",Configuration.supportedControls);
90 | }
91 |
92 | internal static Task GetDateTimeAsync(string title, DateTime selectedDate = default(DateTime))
93 | {
94 | TaskCompletionSource tcs = new TaskCompletionSource();
95 |
96 | DatePicker dPicker = new DatePicker { Date = selectedDate };
97 |
98 | Button button = new Button
99 | {
100 | Text = "TAMAM",
101 | CornerRadius = 20,
102 | HorizontalOptions = LayoutOptions.FillAndExpand,
103 | BackgroundColor = Color.Accent,
104 | TextColor = Color.White
105 | };
106 | Button btnCancel = new Button
107 | {
108 | Text = "İPTAL",
109 | CornerRadius = 20,
110 | HorizontalOptions = LayoutOptions.FillAndExpand,
111 | BackgroundColor = Color.White,
112 | TextColor = Color.Accent
113 | };
114 |
115 | button.Clicked += (s, e) =>
116 | {
117 | tcs.SetResult(dPicker.Date);
118 | PopupNavigation.PopAsync();
119 | };
120 | btnCancel.Clicked += (s, e) =>
121 | {
122 | tcs.TrySetResult(default(DateTime));
123 | PopupNavigation.PopAsync();
124 | };
125 |
126 | Frame frame = new Frame
127 | {
128 | Margin = 25,
129 | BackgroundColor = Color.WhiteSmoke,
130 | VerticalOptions = LayoutOptions.CenterAndExpand,
131 | Content = new StackLayout
132 | {
133 | Spacing = 12,
134 | Children =
135 | {
136 | new Label{ Text= title,Margin=10, HorizontalOptions = LayoutOptions.Center, FontSize = Device.GetNamedSize(NamedSize.Large,typeof(Label))},
137 | dPicker,
138 | new StackLayout { Orientation = StackOrientation.Horizontal, Children={ button, btnCancel } }
139 | }
140 | }
141 | };
142 | var popupPage = new PopupPage { Content = frame };
143 |
144 | return tcs.Task;
145 | }
146 |
147 |
148 | internal static Task GetThichnessAsync(string title, Thickness current = default(Thickness))
149 | {
150 | TaskCompletionSource tcs = new TaskCompletionSource();
151 |
152 | Entry txtTop = new Entry { Text = current.Top.ToString(), Keyboard = Keyboard.Numeric };
153 | Entry txtLeft = new Entry { Text = current.Left.ToString(), Keyboard = Keyboard.Numeric, HorizontalOptions= LayoutOptions.FillAndExpand };
154 | Entry txtRight = new Entry { Text = current.Right.ToString(), Keyboard = Keyboard.Numeric, HorizontalOptions = LayoutOptions.FillAndExpand };
155 | Entry txtBottom = new Entry { Text = current.Bottom.ToString(), Keyboard = Keyboard.Numeric };
156 |
157 | Button button = new Button
158 | {
159 | Text = "TAMAM",
160 | CornerRadius = 20,
161 | HorizontalOptions = LayoutOptions.FillAndExpand,
162 | BackgroundColor = Color.Accent,
163 | TextColor = Color.White
164 | };
165 | Button btnCancel = new Button
166 | {
167 | Text = "İPTAL",
168 | CornerRadius = 20,
169 | HorizontalOptions = LayoutOptions.FillAndExpand,
170 | BackgroundColor = Color.White,
171 | TextColor = Color.Accent
172 | };
173 |
174 | button.Clicked += (s, e) =>
175 | {
176 | tcs.SetResult(new Thickness(Convert.ToDouble(txtLeft.Text), Convert.ToDouble(txtTop.Text), Convert.ToDouble(txtRight.Text), Convert.ToDouble(txtBottom.Text)));
177 | PopupNavigation.PopAsync();
178 | };
179 | btnCancel.Clicked += (s, e) =>
180 | {
181 | tcs.TrySetResult(default(Thickness));
182 | PopupNavigation.PopAsync();
183 | };
184 |
185 | Frame frame = new Frame
186 | {
187 | Margin = 25,
188 | BackgroundColor = Color.WhiteSmoke,
189 | VerticalOptions = LayoutOptions.CenterAndExpand,
190 | Content = new StackLayout
191 | {
192 | Spacing = 12,
193 | Children =
194 | {
195 | new Label{ Text= title,Margin=10, HorizontalOptions = LayoutOptions.Center, FontSize = Device.GetNamedSize(NamedSize.Large,typeof(Label))},
196 | txtTop,
197 | new StackLayout{ Orientation = StackOrientation.Horizontal,
198 | Children =
199 | {
200 | txtLeft, txtRight
201 | } },
202 | txtBottom,
203 | new StackLayout { Orientation = StackOrientation.Horizontal, Children={ button, btnCancel } }
204 | }
205 | }
206 | };
207 | var popupPage = new PopupPage { Content = frame };
208 | PopupNavigation.PushAsync(popupPage);
209 | return tcs.Task;
210 | }
211 |
212 |
213 |
214 | ///
215 | /// Picker'ın içini doldurmak için.
216 | ///
217 | /// The picker result async.
218 | /// Title.
219 | /// Message.
220 | /// Collection.
221 | /// Display.
222 | /// The 1st type parameter.
223 | public static Task GetPickerResultAsync(string title, string message, IList collection, T selectedItem = default(T), string display = null)
224 | {
225 | TaskCompletionSource tcs = new TaskCompletionSource();
226 | Picker picker;
227 | if (display == null)
228 | {
229 | picker = new Picker { ItemsSource = (IList)collection, BackgroundColor = Color.White, SelectedItem = selectedItem };
230 | }
231 | else
232 | {
233 | picker = new Picker { ItemsSource = (IList)collection, ItemDisplayBinding = new Binding(display), BackgroundColor = Color.White, SelectedItem = selectedItem };
234 |
235 | }
236 |
237 | Button button = new Button
238 | {
239 | Text = "TAMAM",
240 | CornerRadius = 20,
241 | HorizontalOptions = LayoutOptions.FillAndExpand,
242 | BackgroundColor = Color.Accent,
243 | TextColor = Color.White
244 | };
245 | Button btnCancel = new Button
246 | {
247 | Text = "TEMİZLE",
248 | CornerRadius = 20,
249 | HorizontalOptions = LayoutOptions.FillAndExpand,
250 | BackgroundColor = Color.White,
251 | TextColor = Color.Accent
252 | };
253 | button.Clicked += (s, e) =>
254 | {
255 | tcs.SetResult((T)picker.SelectedItem);
256 | PopupNavigation.PopAsync();
257 | };
258 | btnCancel.Clicked += (s, e) =>
259 | {
260 | tcs.TrySetResult(default(T));
261 | PopupNavigation.PopAsync();
262 | };
263 | Frame frame = new Frame
264 | {
265 | Margin = 25,
266 | BackgroundColor = Color.WhiteSmoke,
267 | VerticalOptions = LayoutOptions.CenterAndExpand,
268 | Content = new StackLayout
269 | {
270 | Spacing = 12,
271 | Children =
272 | {
273 | new Label{ Text= title,Margin=10, HorizontalOptions = LayoutOptions.Center, FontSize = Device.GetNamedSize(NamedSize.Large,typeof(Label))},
274 | picker,
275 | new StackLayout { Orientation = StackOrientation.Horizontal, Children={ button, btnCancel } }
276 | }
277 | }
278 | };
279 | var popupPage = new PopupPage { Content = frame };
280 | popupPage.Disappearing += (s, e) =>
281 | {
282 | //tcs.SetResult((T)picker.SelectedItem);
283 | };
284 |
285 |
286 | PopupNavigation.PushAsync(popupPage);
287 |
288 | return tcs.Task;
289 | }
290 |
291 | ///
292 | /// Gets the radio button result.
293 | ///
294 | /// The radio button result.
295 | /// Title.
296 | /// Source.
297 | /// Selected item.
298 | /// The 1st type parameter.
299 | public static Task GetRadioButtonResult(string title, IEnumerable source, T selectedItem = default(T)) /*where T: new()*/
300 | {
301 | TaskCompletionSource tcs = new TaskCompletionSource();
302 | RadioButtonGroupView rgv = new RadioButtonGroupView { Margin = new Thickness(30, 5), };
303 | Button btn = new Button { Text = "UYGULA", Margin = new Thickness(20, 0), CornerRadius = 20, BackgroundColor = Color.Accent, TextColor = Color.White, };
304 | foreach (var item in source)
305 | rgv.Children.Add(new RadioButton(item, null, item.Equals(selectedItem)) { Color = Color.Accent });
306 |
307 | btn.Clicked += (s, e) =>
308 | {
309 | tcs.TrySetResult((T)rgv.SelectedItem);
310 | PopupNavigation.PopAsync();
311 | };
312 |
313 | Frame frame = new Frame
314 | {
315 | BorderColor = Color.Transparent,
316 | BackgroundColor =Color.WhiteSmoke,
317 | Margin = 25,
318 | VerticalOptions = LayoutOptions.CenterAndExpand,
319 | Content = new StackLayout
320 | {
321 | Padding = new Thickness(5),
322 | Children =
323 | {
324 | new Label { Text=title, FontSize=18, HorizontalOptions = LayoutOptions.Center, FontAttributes=FontAttributes.Bold },
325 | new ScrollView { Content = rgv },
326 | btn
327 | }
328 | }
329 | };
330 |
331 | var popupPage = new PopupPage { Content = frame, CloseWhenBackgroundIsClicked = false };
332 | PopupNavigation.PushAsync(popupPage);
333 | popupPage.Disappearing += (s, e) => tcs.TrySetResult((T)rgv.SelectedItem);
334 |
335 |
336 | return tcs.Task;
337 | }
338 | }
339 | }
340 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Pages/EditorPage.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.ViewModels;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Runtime.CompilerServices;
5 | using System.Text;
6 | using Xamarin.Forms;
7 |
8 | namespace ControlDesigner.Pages
9 | {
10 | public class EditorPage : ContentPage
11 | {
12 | public EditorPage()
13 | {
14 |
15 | }
16 | protected override void OnPropertyChanged([CallerMemberName] string propertyName = null)
17 | {
18 | base.OnPropertyChanged(propertyName);
19 | if (propertyName == "Content")
20 | {
21 | (this.Content as Layout).ChildAdded += PropertiesViewModel.OnChildrenAdded;
22 | }
23 | }
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/ViewModels/BaseViewModel.cs:
--------------------------------------------------------------------------------
1 |
2 | using Plugin.SavableObject.Shared;
3 | using System.ComponentModel;
4 | using System.Runtime.CompilerServices;
5 |
6 | namespace ControlDesigner.ViewModels
7 | {
8 | public class BaseViewModel : SavableObject, INotifyPropertyChanged
9 | {
10 | public event PropertyChangedEventHandler PropertyChanged;
11 | public void OnPropertyChanged([CallerMemberName]string propertyName = "") => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
12 | [IgnoreSave] public NavigationViewModel Navigation { get => NavigationViewModel.Instance; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/ViewModels/ControlDetailViewModel.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.Helpers;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Reflection;
5 | using System.Text;
6 | using Xamarin.Forms;
7 |
8 | namespace ControlDesigner.ViewModels
9 | {
10 | public class ControlDetailViewModel : BaseViewModel
11 | {
12 | private View _control;
13 |
14 | public ControlDetailViewModel()
15 | {
16 | InitCommands();
17 | }
18 | public ControlDetailViewModel(object control) : this()
19 | {
20 | if (control is View)
21 | {
22 | this.Control = control as View;
23 | }
24 |
25 |
26 | }
27 | void InitCommands()
28 | {
29 | EditPropertiesCommand = new Command(EditProperties);
30 | }
31 |
32 |
33 |
34 | public Command EditPropertiesCommand { get; set; }
35 | public View Control { get => _control; set { _control = value; OnPropertyChanged(); } }
36 |
37 | private void EditProperties(object obj)
38 | {
39 | Navigation.PushPropertiesPopup(obj);
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/ViewModels/InnerViewModel/PropertyViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Reflection;
4 | using System.Text;
5 |
6 | namespace ControlDesigner.ViewModels.InnerViewModel
7 | {
8 | public class PropertyViewModel : BaseViewModel
9 | {
10 | private string _value;
11 |
12 | public PropertyInfo ReflectedProperty { get; set; }
13 | public object Property { get; set; }
14 | public string PropertyName { get; set; }
15 | public Type Type { get; set; }
16 | public string Name { get; set; }
17 | public string Value { get => _value; set { _value = value; OnPropertyChanged(); } }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/ViewModels/LayoutSelectionViewModel.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.Views;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Collections.ObjectModel;
5 | using System.Text;
6 | using Xamarin.Forms;
7 |
8 | namespace ControlDesigner.ViewModels
9 | {
10 | public class LayoutSelectionViewModel : BaseViewModel
11 | {
12 | private IList _layoutsList;
13 | private View _selectedLayout;
14 |
15 | public LayoutSelectionViewModel()
16 | {
17 |
18 | LayoutsList = LayoutsList != null ?
19 | new ObservableCollection(LayoutsList) :
20 | new ObservableCollection()
21 | {
22 | new FlexLayout(),
23 | new StackLayout(),
24 | new Grid(),
25 | new AbsoluteLayout(),
26 | new RelativeLayout(),
27 | };
28 |
29 | }
30 |
31 | public IList LayoutsList { get => _layoutsList; set { _layoutsList = value; OnPropertyChanged(); } }
32 | public View SelectedLayout { get => _selectedLayout; set { _selectedLayout = value; LayoutSelected(value); OnPropertyChanged(); } }
33 | public Command SaveCommand { get; set; }
34 | private void LayoutSelected(View value)
35 | {
36 | if (value == null) return;
37 | Navigation.PushPage(new EditingPage(value));
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/ViewModels/MasterViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Text;
5 | using Xamarin.Forms;
6 |
7 | namespace ControlDesigner.ViewModels
8 | {
9 | public class MasterViewModel : BaseViewModel
10 | {
11 | public MasterViewModel()
12 | {
13 | ViewsList = new ObservableCollection()
14 | {
15 | new Label(),
16 | new Button(),
17 | new Slider(),
18 | new Entry(),
19 | new Frame(),
20 | new Stepper(),
21 | new Xamarin.Forms.SearchBar(),
22 | new Xamarin.Forms.ProgressBar(),
23 | new Xamarin.Forms.Picker(),
24 | new Xamarin.Forms.Image(),
25 | new Xamarin.Forms.Editor(),
26 | new Xamarin.Forms.DatePicker(),
27 | new Xamarin.Forms.BoxView(),
28 | };
29 |
30 |
31 |
32 |
33 | }
34 | public IList ViewsList{ get; set; }
35 | private View _selectedVew;
36 |
37 | public View SelectedView
38 | {
39 | get { return _selectedVew; }
40 | set { _selectedVew = value; if (value == null) return; Navigation.GoControlDetailCommand.Execute(value); }
41 | }
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/ViewModels/NavigationViewModel.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.Views;
2 | using Rg.Plugins.Popup.Services;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using Xamarin.Forms;
8 |
9 | namespace ControlDesigner.ViewModels
10 | {
11 | public class NavigationViewModel
12 | {
13 | public static NavigationViewModel Instance = new NavigationViewModel();
14 | public static bool ShemeIsValid => Application.Current.MainPage is MasterDetailPage && (Application.Current.MainPage as MasterDetailPage).Detail is NavigationPage;
15 | public static NavigationPage NavPage => ShemeIsValid ? (Application.Current.MainPage as MasterDetailPage).Detail as NavigationPage : null;
16 | public static MasterDetailPage MasPage => Application.Current.MainPage is MasterDetailPage ? Application.Current.MainPage as MasterDetailPage : null;
17 | public Command GoControlDetailCommand { get; set; }
18 | public Command PushPropertiesPopupCommand { get; private set; }
19 | public Command OpenUriCommand { get; set; }
20 | public Command GoAboutCommand { get; set; }
21 |
22 | public Task DisplayAlert(string title, string message, string cancel)
23 | {
24 | return Application.Current.MainPage.DisplayAlert(title, message, cancel);
25 | }
26 | public Task DisplayAlert(string title, string message, string accept, string cancel)
27 | {
28 | return Application.Current.MainPage.DisplayAlert(title, message, accept, cancel);
29 | }
30 | public NavigationViewModel()
31 | {
32 | PushPopupCommand = new Command(PushPopup);
33 | PopPopupCommand = new Command(PopPopup);
34 |
35 | GoControlDetailCommand = new Command(GoControlDetail);
36 | PushPropertiesPopupCommand = new Command(PushPropertiesPopup);
37 | OpenUriCommand = new Command(OpenUri);
38 | GoAboutCommand = new Command(GoAbout);
39 | }
40 |
41 | private void GoAbout(object obj)
42 | {
43 | PushPopup(new Frame { BackgroundColor = Color.White, VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.Center, Margin = 25,
44 | Content = new StackLayout
45 | {
46 | Children =
47 | {
48 | new Label { Text ="Developed by Enis Necipoğlu" , FontAttributes = FontAttributes.Bold, HorizontalOptions = LayoutOptions.Center, TextColor = Color.FromHex("#212121") },
49 | new Button { Text = "CLOSE", BackgroundColor = Color.Transparent, Command = new Command(()=> PopPopup() ) }
50 | }
51 | }
52 | });
53 | }
54 |
55 | private void OpenUri(object obj)
56 | {
57 | try
58 | {
59 | Device.OpenUri(new Uri(obj.ToString()));
60 | }
61 | catch (Exception ex)
62 | {
63 | System.Diagnostics.Debug.WriteLine(ex.ToString());
64 | }
65 | }
66 |
67 | public void PushPropertiesPopup(object obj)
68 | {
69 | PushPopup(new PropertiesView(obj));
70 | }
71 |
72 | public void GoControlDetail(object obj)
73 | {
74 | PushPage(new PreviewPage(obj));
75 | }
76 |
77 | public void SetDetail(Page page)
78 | {
79 | MasPage.Detail = page;
80 | }
81 | public void PushPage(Page page)
82 | {
83 | NavPage.PushAsync(page);
84 | }
85 | public void PopPage()
86 | {
87 | NavPage.PopAsync();
88 | }
89 | public void PopToRoot()
90 | {
91 | NavPage.PopToRootAsync();
92 | }
93 |
94 | #region PopupService
95 | public Command PushPopupCommand { get; set; }
96 | public Command PopPopupCommand { get; set; }
97 | public void PushPopup(View view)
98 | {
99 | PopupNavigation.PushAsync(new Rg.Plugins.Popup.Pages.PopupPage { Content = view });
100 | }
101 | public void PushPopup(object obj)
102 | {
103 | if (obj is View)
104 | PushPopup(obj);
105 | }
106 | public void PopPopup()
107 | {
108 | PopupNavigation.PopAsync();
109 | }
110 | public void PopPopuopToRoot()
111 | {
112 | PopupNavigation.PopAllAsync();
113 | }
114 | #endregion
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/ViewModels/PropertiesViewModel.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.Helpers;
2 | using ControlDesigner.ViewModels.InnerViewModel;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Collections.ObjectModel;
6 | using System.Diagnostics;
7 | using System.Linq;
8 | using System.Reflection;
9 | using System.Text;
10 | using System.Threading.Tasks;
11 | using Xamarin.Forms;
12 |
13 | namespace ControlDesigner.ViewModels
14 | {
15 | public class PropertiesViewModel : BaseViewModel
16 | {
17 | #region StaticArea
18 | public static void OnChildrenAdded(object sender, ElementEventArgs e)
19 | {
20 | (e.Element as View).GestureRecognizers.Clear();
21 | (e.Element as View).GestureRecognizers.Add(new TapGestureRecognizer
22 | {
23 | Command = new Command(() => OnTappedAControl(e.Element)),
24 | });
25 |
26 | if (e.Element is VisualElement)
27 | {
28 | (e.Element as VisualElement).Focused += (s, args) => OnTappedAControl(s);
29 | (e.Element as VisualElement).Unfocus();
30 | }
31 | if (e.Element is Button)
32 | (e.Element as Button).Clicked += (s, args) => OnTappedAControl(s);
33 | }
34 | public static void OnTappedAControl(object control)
35 | {
36 | NavigationViewModel.Instance.PushPropertiesPopup(control);
37 | }
38 | #endregion
39 |
40 |
41 |
42 | private PropertyInfo _propChildren, _propContent;
43 | private View _control;
44 | private IList _propertiesList;
45 | private PropertyViewModel _selectedProperty;
46 |
47 | public PropertiesViewModel()
48 | {
49 | PropertiesList = new ObservableCollection();
50 | InitCommands();
51 | }
52 |
53 | public PropertiesViewModel(object context) : this()
54 | {
55 | if (context is View)
56 | {
57 | this.Control = context as View;
58 | InitProeprties();
59 |
60 | _propChildren = context.GetType().GetProperty("Children", typeof(IList));
61 | _propContent = context.GetType().GetProperty("Content", typeof(View));
62 | OnPropertyChanged(nameof(DoesHaveChildren));
63 | OnPropertyChanged(nameof(DoesHaveContent));
64 | }
65 |
66 | }
67 | private void InitCommands()
68 | {
69 | RemoveControlCommand = new Command(RemoveControl);
70 | AddChildrenCommand = new Command(AddChildren);
71 | ClearChildrenCommand = new Command(ClearChildren);
72 | SetContentCommand = new Command(SetContent);
73 | ClearContentCommand = new Command(ClearContent);
74 | }
75 |
76 | public IList PropertiesList { get => _propertiesList; set { _propertiesList = value; OnPropertyChanged(); } }
77 | public PropertyViewModel SelectedProperty { get => _selectedProperty; set { _selectedProperty = value; PropertySelected(value); OnPropertyChanged(); } }
78 |
79 | public bool DoesHaveChildren { get => _propChildren != null; }
80 | public bool DoesHaveContent { get => _propContent != null; }
81 |
82 | public Command RemoveControlCommand { get; set; }
83 | public Command AddChildrenCommand { get; set; }
84 | public Command ClearChildrenCommand { get; set; }
85 | public Command SetContentCommand { get; set; }
86 | public Command ClearContentCommand { get; set; }
87 | public View Control
88 | {
89 | get { return _control; }
90 | set { _control = value; OnPropertyChanged(); }
91 | }
92 |
93 | void InitProeprties()
94 | {
95 | var reflectedProps = Control.GetType().GetProperties();
96 | foreach (var property in reflectedProps)
97 | {
98 | try
99 | {
100 | if (property.CanRead && property.CanWrite)
101 | PropertiesList.Add(new PropertyViewModel
102 | {
103 | Name = property.Name,
104 | ReflectedProperty = property,
105 | PropertyName = property.Name,
106 | Type = property.PropertyType,
107 | Value = property.GetValue(this.Control)?.ToString(),
108 | });
109 | }
110 | catch (Exception ex)
111 | {
112 | Debug.WriteLine(ex.ToString());
113 | }
114 | }
115 | }
116 |
117 | async void PropertySelected(PropertyViewModel prop)
118 | {
119 | if (prop == null) return;
120 |
121 | try
122 | {
123 | if (prop.Type == typeof(Boolean))
124 | {
125 | bool newVal = await DialogHelper.GetRadioButtonResult("Choose new value:", new[] { true, false }, (bool)prop.ReflectedProperty.GetValue(this.Control));
126 | prop.ReflectedProperty.SetValue(this.Control, newVal);
127 | prop.Value = newVal.ToString();
128 | return;
129 | }
130 |
131 | if (prop.Type == typeof(String))
132 | {
133 | var _newVal = await DialogHelper.GetUserInputAsync("Type new value:", "", prop.ReflectedProperty.GetValue(this.Control)?.ToString());
134 | if (_newVal == null) return;
135 | prop.ReflectedProperty.SetValue(this.Control, _newVal);
136 | prop.Value = _newVal;
137 | return;
138 | }
139 |
140 | if (prop.Type == typeof(Color))
141 | {
142 | Color? newVal = await Plugin.DialogKit.CrossDiaglogKit.Current.GetColorAsync("Choose new color:", "", typeof(Color).GetFields().Select(s => (Color)s.GetValue(null)).ToArray());
143 | if (newVal != null)
144 | {
145 | prop.ReflectedProperty.SetValue(this.Control, newVal);
146 | prop.Value = newVal.ToString();
147 | }
148 | return;
149 | }
150 | if (prop.Type == typeof(LayoutOptions))
151 | {
152 | string s_newVal = await DialogHelper.GetRadioButtonResult("Choose new value:", typeof(LayoutOptions).GetFields().Select(s => s.Name).ToList(), prop.ReflectedProperty.Name);
153 | prop.ReflectedProperty.SetValue(this.Control, (LayoutOptions)typeof(LayoutOptions).GetField(s_newVal)?.GetValue(null));
154 | prop.Value = s_newVal.ToString();
155 | return;
156 | }
157 |
158 | if (prop.Type == typeof(Keyboard))
159 | {
160 | string s_newVal = await DialogHelper.GetRadioButtonResult("Choose new value:", typeof(Keyboard).GetFields().Select(s => s.Name).ToList(), prop.ReflectedProperty.Name);
161 | prop.ReflectedProperty.SetValue(this.Control, (Keyboard)typeof(Keyboard).GetField(s_newVal)?.GetValue(null));
162 | prop.Value = s_newVal.ToString();
163 | return;
164 | }
165 | #region Enums
166 | if (prop.Type.IsEnum)
167 | {
168 | var newVal = Enum.Parse(prop.Type,
169 | await DialogHelper.GetRadioButtonResult("Choose new value:", prop.Type.GetEnumNames(), prop.ReflectedProperty.GetValue(this.Control).ToString())
170 | );
171 | prop.ReflectedProperty.SetValue(this.Control, newVal);
172 | prop.Value = newVal.ToString();
173 | return;
174 | }
175 |
176 |
177 | //if (prop.Type == typeof(TextAlignment))
178 | //{
179 | // TextAlignment newVal = (TextAlignment)Enum.Parse(typeof(TextAlignment),
180 | // await DialogHelper.GetRadioButtonResult("Choose new value:", typeof(TextAlignment).GetEnumNames(), prop.ReflectedProperty.GetValue(this.Control).ToString())
181 | // );
182 | // prop.ReflectedProperty.SetValue(this.Control, newVal);
183 | // prop.Value = newVal.ToString();
184 | // return;
185 | //}
186 | //if (prop.Type == typeof(Aspect))
187 | //{
188 | // Aspect newVal = (Aspect)Enum.Parse(typeof(Aspect),
189 | // await DialogHelper.GetRadioButtonResult("Choose new value:", typeof(Aspect).GetEnumNames(), prop.ReflectedProperty.GetValue(this.Control).ToString())
190 | // );
191 | // prop.ReflectedProperty.SetValue(this.Control, newVal);
192 | // prop.Value = newVal.ToString();
193 | // return;
194 | //}
195 | //if (prop.Type == typeof(FontAttributes))
196 | //{
197 | // FontAttributes newVal = (FontAttributes)Enum.Parse(typeof(FontAttributes),
198 | // await DialogHelper.GetRadioButtonResult("Choose new value:", typeof(FontAttributes).GetEnumNames(), prop.ReflectedProperty.GetValue(this.Control).ToString())
199 | // );
200 | // prop.ReflectedProperty.SetValue(this.Control, newVal);
201 | // return;
202 | //}
203 | #endregion
204 |
205 |
206 | if (prop.Type == typeof(Thickness))
207 | {
208 | Thickness newVal = await DialogHelper.GetThichnessAsync("Choose new DateTime", (Thickness)prop.ReflectedProperty.GetValue(this.Control));
209 | prop.ReflectedProperty.SetValue(this.Control, newVal);
210 | return;
211 | }
212 |
213 | if (prop.Type == typeof(DateTime))
214 | {
215 | DateTime newVal = await DialogHelper.GetDateTimeAsync("Choose new DateTime", (DateTime)prop.ReflectedProperty.GetValue(this.Control));
216 | prop.ReflectedProperty.SetValue(this.Control, newVal);
217 | return;
218 | }
219 |
220 | if (prop.Type.IsValueType)
221 | {
222 | float _newVal = Convert.ToSingle(await DialogHelper.GetUserInputAsync("Type new value", "", prop.ReflectedProperty.GetValue(this.Control).ToString()));
223 | prop.ReflectedProperty.SetValue(this.Control, Convert.ChangeType(_newVal, prop.Type));
224 | prop.Value = _newVal.ToString();
225 |
226 | return;
227 | }
228 | else
229 | {
230 | var _newVal = await DialogHelper.GetUserInputAsync("Type new value:", "", prop.ReflectedProperty.GetValue(this.Control)?.ToString());
231 | prop.ReflectedProperty.SetValue(this.Control, Convert.ChangeType(_newVal, prop.Type));
232 | prop.Value = _newVal;
233 | }
234 | }
235 | catch (Exception ex)
236 | {
237 | System.Diagnostics.Debug.WriteLine(ex.ToString());
238 | }
239 |
240 | }
241 |
242 |
243 |
244 | #region LayoutOptions
245 |
246 |
247 | private void ClearContent(object obj)
248 | {
249 | _propContent.SetValue(this.Control, null);
250 | }
251 |
252 | private async void SetContent(object obj)
253 | {
254 | Type controlType = await DialogHelper.PickControlAsync(); //PICK CONTROL
255 | var newControl = (View)Activator.CreateInstance(controlType);
256 | _propContent.SetValue(this.Control, newControl);
257 | if (newControl is Layout)
258 | (newControl as Layout).ChildAdded += OnChildrenAdded;
259 | Navigation.PopPopuopToRoot();
260 | Navigation.PushPropertiesPopup(newControl);
261 | }
262 |
263 | private void ClearChildren(object obj)
264 | {
265 | (_propChildren.GetValue(this.Control) as IList).Clear();
266 | }
267 |
268 | private async void AddChildren(object obj)
269 | {
270 | Type controlType = await DialogHelper.PickControlAsync(); //PICK CONTROL
271 |
272 | var newControl = Activator.CreateInstance(controlType);
273 | (_propChildren.GetValue(this.Control) as IList).Add(newControl as View);
274 | if (newControl is Layout)
275 | (newControl as Layout).ChildAdded += OnChildrenAdded;
276 |
277 | Navigation.PopPopuopToRoot();
278 | Navigation.PushPropertiesPopup(newControl);
279 | }
280 |
281 | private void RemoveControl(object obj)
282 | {
283 | try
284 | {
285 | var parent = this.Control.GetType().GetProperty("Parent")?.GetValue(this.Control);
286 | (parent?.GetType().GetProperty("Children", typeof(IList))?.GetValue(parent) as IList).Remove(this.Control);
287 | Navigation.PopPopup();
288 | }
289 | catch (Exception ex)
290 | {
291 | System.Diagnostics.Debug.WriteLine(ex.ToString());
292 | }
293 | }
294 | #endregion
295 |
296 | }
297 | }
298 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/EditingPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using Xamarin.Forms;
5 |
6 | namespace ControlDesigner.Views
7 | {
8 | class EditingPage : CarouselPage
9 | {
10 | public EditingPage()
11 | {
12 | this.Children.Add(new PreviewPage());
13 | this.Children.Add(new ContentPage());
14 | }
15 | public EditingPage(object context)
16 | {
17 | this.Children.Add(new PreviewPage(context));
18 | this.Children.Add(new HierarchyPage(context));
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/HierarchyPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/HierarchyPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.Controls;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | using Xamarin.Forms;
9 | using Xamarin.Forms.Xaml;
10 |
11 | namespace ControlDesigner.Views
12 | {
13 | [XamlCompilation(XamlCompilationOptions.Compile)]
14 | public partial class HierarchyPage : ContentPage
15 | {
16 | public HierarchyPage()
17 | {
18 | InitializeComponent();
19 |
20 | }
21 | public HierarchyPage(object context)
22 | {
23 | InitializeComponent();
24 | this.Content = new StackLayout
25 | {
26 | Children =
27 | {
28 | new NestedView(context),
29 | }
30 | };
31 | }
32 |
33 | private void SwipeNextPage(object sender, EventArgs e)
34 | {
35 |
36 | if (this.Parent is CarouselPage)
37 | (this.Parent as CarouselPage).CurrentPage = (this.Parent as CarouselPage).Children[0];
38 |
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/LandingPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/LandingPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.ViewModels;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | using Xamarin.Forms;
9 | using Xamarin.Forms.Xaml;
10 |
11 | namespace ControlDesigner.Views
12 | {
13 | [XamlCompilation(XamlCompilationOptions.Compile)]
14 | public partial class LandingPage : ContentPage
15 | {
16 | public LandingPage ()
17 | {
18 | InitializeComponent ();
19 | }
20 |
21 | private void Button_Clicked(object sender, EventArgs e)
22 | {
23 | Navigation.PushAsync(new LayoutSelectionPage());
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/LayoutSelectionPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/LayoutSelectionPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using Xamarin.Forms;
8 | using Xamarin.Forms.Xaml;
9 |
10 | namespace ControlDesigner.Views
11 | {
12 | [XamlCompilation(XamlCompilationOptions.Compile)]
13 | public partial class LayoutSelectionPage : ContentPage
14 | {
15 | public LayoutSelectionPage ()
16 | {
17 | InitializeComponent ();
18 | }
19 |
20 | private void ListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
21 | {
22 | (sender as ListView).SelectedItem = null;
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/MasterPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | https://github.com/enisn/XamarinForms.PageBuilder
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/MasterPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using Xamarin.Forms;
8 | using Xamarin.Forms.Xaml;
9 |
10 | namespace ControlDesigner.Views
11 | {
12 | [XamlCompilation(XamlCompilationOptions.Compile)]
13 | public partial class MasterPage : ContentPage
14 | {
15 | public MasterPage ()
16 | {
17 | InitializeComponent ();
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/PreviewPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/PreviewPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.Pages;
2 | using ControlDesigner.ViewModels;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 |
9 | using Xamarin.Forms;
10 | using Xamarin.Forms.Xaml;
11 |
12 | namespace ControlDesigner.Views
13 | {
14 | [XamlCompilation(XamlCompilationOptions.Compile)]
15 | public partial class PreviewPage : EditorPage
16 | {
17 | public PreviewPage()
18 | {
19 | InitializeComponent ();
20 | }
21 | public PreviewPage(object control) : this()
22 | {
23 | this.BindingContext = new ControlDetailViewModel(control);
24 | }
25 |
26 | private void SwipeNextPage(object sender, EventArgs e)
27 | {
28 | if (this.Parent is CarouselPage)
29 | (this.Parent as CarouselPage).CurrentPage = (this.Parent as CarouselPage).Children[1];
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/PropertiesView.xaml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ControlDesigner/ControlDesigner/Views/PropertiesView.xaml.cs:
--------------------------------------------------------------------------------
1 | using ControlDesigner.ViewModels;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | using Xamarin.Forms;
9 | using Xamarin.Forms.Xaml;
10 |
11 | namespace ControlDesigner.Views
12 | {
13 | [XamlCompilation(XamlCompilationOptions.Compile)]
14 | public partial class PropertiesView : ContentView
15 | {
16 | public PropertiesView ()
17 | {
18 | InitializeComponent ();
19 | }
20 | public PropertiesView(object param) : this()
21 | {
22 | this.BindingContext = new PropertiesViewModel(param);
23 | }
24 |
25 | private void Eye_Clicked(object sender, EventArgs e)
26 | {
27 | this.Opacity = this.Opacity == 1 ? 0.5 : 1;
28 | }
29 |
30 | private void ListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
31 | {
32 | (sender as ListView).SelectedItem = null;
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # XamarinForms.PageBuilder
2 | Xamarin forms pages can be created easily on your phone! Isn't it awesome ?
3 |
4 | Get it on Google Play: https://play.google.com/store/apps/details?id=com.enisnecipoglu.pagebuilder
5 |
6 | This is under development!
7 | More description and documentation will be added.
8 |
9 |
--------------------------------------------------------------------------------