├── .DS_Store
├── ._.DS_Store
├── .gitattributes
├── .gitignore
├── CustomAlert.sln
├── CustomAlert
├── CustomAlert.Droid
│ ├── Assets
│ │ └── AboutAssets.txt
│ ├── CustomAlert.Droid.csproj
│ ├── MainActivity.cs
│ ├── Properties
│ │ ├── AndroidManifest.xml
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.Designer.cs
│ │ ├── drawable-hdpi
│ │ │ └── icon.png
│ │ ├── drawable-xhdpi
│ │ │ └── icon.png
│ │ ├── drawable-xxhdpi
│ │ │ └── icon.png
│ │ ├── drawable
│ │ │ └── icon.png
│ │ ├── layout
│ │ │ ├── tabs.xml
│ │ │ └── toolbar.xml
│ │ ├── values-v21
│ │ │ └── styles.xml
│ │ └── values
│ │ │ ├── colors.xml
│ │ │ └── styles.xml
│ └── packages.config
├── CustomAlert.iOS
│ ├── AppDelegate.cs
│ ├── CustomAlert.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
│ │ ├── Icon-60@2x.png
│ │ ├── Icon-60@3x.png
│ │ ├── Icon-76.png
│ │ ├── Icon-76@2x.png
│ │ ├── Icon-Small-40.png
│ │ ├── Icon-Small-40@2x.png
│ │ ├── Icon-Small-40@3x.png
│ │ ├── Icon-Small.png
│ │ ├── Icon-Small@2x.png
│ │ ├── Icon-Small@3x.png
│ │ └── LaunchScreen.storyboard
│ ├── iTunesArtwork
│ ├── iTunesArtwork@2x
│ └── packages.config
└── CustomAlert
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Controls
│ ├── AlertView.xaml
│ └── AlertView.xaml.cs
│ ├── CustomAlert.csproj
│ ├── Helper
│ └── Constants.cs
│ ├── Images
│ ├── fail.png
│ ├── info.png
│ └── success.png
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── ViewModels
│ └── MainPageViewModel.cs
│ ├── Views
│ ├── MainPage.xaml
│ └── MainPage.xaml.cs
│ └── packages.config
├── README.md
└── Screenshots
├── .DS_Store
├── ._.DS_Store
├── ._iOS_1.png
├── ._iOS_2.png
├── ._iOS_3.png
├── ._iOS_4.png
├── Droid.png
├── Droid_1.JPG
├── Droid_2.JPG
├── Droid_3.JPG
├── Droid_4.JPG
├── iOS.png
├── iOS_1.png
├── iOS_2.png
├── iOS_3.png
└── iOS_4.png
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/.DS_Store
--------------------------------------------------------------------------------
/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/._.DS_Store
--------------------------------------------------------------------------------
/.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 | [Xx]64/
19 | [Xx]86/
20 | [Bb]uild/
21 | bld/
22 | [Bb]in/
23 | [Oo]bj/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | artifacts/
46 |
47 | *_i.c
48 | *_p.c
49 | *_i.h
50 | *.ilk
51 | *.meta
52 | *.obj
53 | *.pch
54 | *.pdb
55 | *.pgc
56 | *.pgd
57 | *.rsp
58 | *.sbr
59 | *.tlb
60 | *.tli
61 | *.tlh
62 | *.tmp
63 | *.tmp_proj
64 | *.log
65 | *.vspscc
66 | *.vssscc
67 | .builds
68 | *.pidb
69 | *.svclog
70 | *.scc
71 |
72 | # Chutzpah Test files
73 | _Chutzpah*
74 |
75 | # Visual C++ cache files
76 | ipch/
77 | *.aps
78 | *.ncb
79 | *.opendb
80 | *.opensdf
81 | *.sdf
82 | *.cachefile
83 | *.VC.db
84 |
85 | # Visual Studio profiler
86 | *.psess
87 | *.vsp
88 | *.vspx
89 | *.sap
90 |
91 | # TFS 2012 Local Workspace
92 | $tf/
93 |
94 | # Guidance Automation Toolkit
95 | *.gpState
96 |
97 | # ReSharper is a .NET coding add-in
98 | _ReSharper*/
99 | *.[Rr]e[Ss]harper
100 | *.DotSettings.user
101 |
102 | # JustCode is a .NET coding add-in
103 | .JustCode
104 |
105 | # TeamCity is a build add-in
106 | _TeamCity*
107 |
108 | # DotCover is a Code Coverage Tool
109 | *.dotCover
110 |
111 | # NCrunch
112 | _NCrunch_*
113 | .*crunch*.local.xml
114 | nCrunchTemp_*
115 |
116 | # MightyMoose
117 | *.mm.*
118 | AutoTest.Net/
119 |
120 | # Web workbench (sass)
121 | .sass-cache/
122 |
123 | # Installshield output folder
124 | [Ee]xpress/
125 |
126 | # DocProject is a documentation generator add-in
127 | DocProject/buildhelp/
128 | DocProject/Help/*.HxT
129 | DocProject/Help/*.HxC
130 | DocProject/Help/*.hhc
131 | DocProject/Help/*.hhk
132 | DocProject/Help/*.hhp
133 | DocProject/Help/Html2
134 | DocProject/Help/html
135 |
136 | # Click-Once directory
137 | publish/
138 |
139 | # Publish Web Output
140 | *.[Pp]ublish.xml
141 | *.azurePubxml
142 |
143 | # TODO: Un-comment the next line if you do not want to checkin
144 | # your web deploy settings because they may include unencrypted
145 | # passwords
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # NuGet Packages
150 | *.nupkg
151 | # The packages folder can be ignored because of Package Restore
152 | **/packages/*
153 | # except build/, which is used as an MSBuild target.
154 | !**/packages/build/
155 | # Uncomment if necessary however generally it will be regenerated when needed
156 | #!**/packages/repositories.config
157 | # NuGet v3's project.json files produces more ignoreable files
158 | *.nuget.props
159 | *.nuget.targets
160 |
161 | # Microsoft Azure Build Output
162 | csx/
163 | *.build.csdef
164 |
165 | # Microsoft Azure Emulator
166 | ecf/
167 | rcf/
168 |
169 | # Microsoft Azure ApplicationInsights config file
170 | ApplicationInsights.config
171 |
172 | # Windows Store app package directory
173 | AppPackages/
174 | BundleArtifacts/
175 |
176 | # Visual Studio cache files
177 | # files ending in .cache can be ignored
178 | *.[Cc]ache
179 | # but keep track of directories ending in .cache
180 | !*.[Cc]ache/
181 |
182 | # Others
183 | ClientBin/
184 | [Ss]tyle[Cc]op.*
185 | ~$*
186 | *~
187 | *.dbmdl
188 | *.dbproj.schemaview
189 | *.pfx
190 | *.publishsettings
191 | node_modules/
192 | orleans.codegen.cs
193 |
194 | # RIA/Silverlight projects
195 | Generated_Code/
196 |
197 | # Backup & report files from converting an old project file
198 | # to a newer Visual Studio version. Backup files are not needed,
199 | # because we have git ;-)
200 | _UpgradeReport_Files/
201 | Backup*/
202 | UpgradeLog*.XML
203 | UpgradeLog*.htm
204 |
205 | # SQL Server files
206 | *.mdf
207 | *.ldf
208 |
209 | # Business Intelligence projects
210 | *.rdl.data
211 | *.bim.layout
212 | *.bim_*.settings
213 |
214 | # Microsoft Fakes
215 | FakesAssemblies/
216 |
217 | # GhostDoc plugin setting file
218 | *.GhostDoc.xml
219 |
220 | # Node.js Tools for Visual Studio
221 | .ntvs_analysis.dat
222 |
223 | # Visual Studio 6 build log
224 | *.plg
225 |
226 | # Visual Studio 6 workspace options file
227 | *.opt
228 |
229 | # Visual Studio LightSwitch build output
230 | **/*.HTMLClient/GeneratedArtifacts
231 | **/*.DesktopClient/GeneratedArtifacts
232 | **/*.DesktopClient/ModelManifest.xml
233 | **/*.Server/GeneratedArtifacts
234 | **/*.Server/ModelManifest.xml
235 | _Pvt_Extensions
236 |
237 | # LightSwitch generated files
238 | GeneratedArtifacts/
239 | ModelManifest.xml
240 |
241 | # Paket dependency manager
242 | .paket/paket.exe
243 |
244 | # FAKE - F# Make
245 | .fake/
--------------------------------------------------------------------------------
/CustomAlert.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomAlert", "CustomAlert\CustomAlert\CustomAlert.csproj", "{113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomAlert.Droid", "CustomAlert\CustomAlert.Droid\CustomAlert.Droid.csproj", "{9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomAlert.iOS", "CustomAlert\CustomAlert.iOS\CustomAlert.iOS.csproj", "{1714FE3A-2BE8-450A-9D1E-AFB9E745644C}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
15 | Ad-Hoc|iPhone = Ad-Hoc|iPhone
16 | Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
17 | AppStore|Any CPU = AppStore|Any CPU
18 | AppStore|iPhone = AppStore|iPhone
19 | AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
20 | Debug|Any CPU = Debug|Any CPU
21 | Debug|iPhone = Debug|iPhone
22 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
23 | Release|Any CPU = Release|Any CPU
24 | Release|iPhone = Release|iPhone
25 | Release|iPhoneSimulator = Release|iPhoneSimulator
26 | EndGlobalSection
27 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
28 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
29 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
30 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
31 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
32 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
33 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
34 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
35 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.AppStore|Any CPU.Build.0 = Release|Any CPU
36 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.AppStore|iPhone.ActiveCfg = Release|Any CPU
37 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.AppStore|iPhone.Build.0 = Release|Any CPU
38 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
39 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
40 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
42 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Debug|iPhone.ActiveCfg = Debug|Any CPU
43 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Debug|iPhone.Build.0 = Debug|Any CPU
44 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
45 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
46 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
47 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Release|Any CPU.Build.0 = Release|Any CPU
48 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Release|iPhone.ActiveCfg = Release|Any CPU
49 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Release|iPhone.Build.0 = Release|Any CPU
50 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
51 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
52 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
53 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
54 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
55 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
56 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
57 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
58 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
59 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
60 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
61 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
62 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.AppStore|Any CPU.Build.0 = Release|Any CPU
63 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
64 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.AppStore|iPhone.ActiveCfg = Release|Any CPU
65 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.AppStore|iPhone.Build.0 = Release|Any CPU
66 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.AppStore|iPhone.Deploy.0 = Release|Any CPU
67 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
68 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
69 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
70 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
71 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Debug|Any CPU.Build.0 = Debug|Any CPU
72 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
73 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Debug|iPhone.ActiveCfg = Debug|Any CPU
74 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Debug|iPhone.Build.0 = Debug|Any CPU
75 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Debug|iPhone.Deploy.0 = Debug|Any CPU
76 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
77 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
78 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
79 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Release|Any CPU.ActiveCfg = Release|Any CPU
80 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Release|Any CPU.Build.0 = Release|Any CPU
81 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Release|Any CPU.Deploy.0 = Release|Any CPU
82 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Release|iPhone.ActiveCfg = Release|Any CPU
83 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Release|iPhone.Build.0 = Release|Any CPU
84 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Release|iPhone.Deploy.0 = Release|Any CPU
85 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
86 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
87 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
88 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
89 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
90 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
91 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
92 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
93 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
94 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
95 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.AppStore|iPhone.Build.0 = AppStore|iPhone
96 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
97 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
98 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
99 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Debug|iPhone.ActiveCfg = Debug|iPhone
100 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Debug|iPhone.Build.0 = Debug|iPhone
101 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
102 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
103 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Release|Any CPU.ActiveCfg = Release|iPhone
104 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Release|iPhone.ActiveCfg = Release|iPhone
105 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Release|iPhone.Build.0 = Release|iPhone
106 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
107 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
108 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
109 | EndGlobalSection
110 | GlobalSection(SolutionProperties) = preSolution
111 | HideSolutionNode = FALSE
112 | EndGlobalSection
113 | EndGlobal
114 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Assets/AboutAssets.txt:
--------------------------------------------------------------------------------
1 | Any raw assets you want to be deployed with your application can be placed in
2 | this directory (and child directories) and given a Build Action of "AndroidAsset".
3 |
4 | These files will be deployed with you package and will be accessible using Android's
5 | AssetManager, like this:
6 |
7 | public class ReadAsset : Activity
8 | {
9 | protected override void OnCreate (Bundle bundle)
10 | {
11 | base.OnCreate (bundle);
12 |
13 | InputStream input = Assets.Open ("my_asset.txt");
14 | }
15 | }
16 |
17 | Additionally, some Android functions will automatically load asset files:
18 |
19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
20 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/CustomAlert.Droid.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | 8.0.30703
7 | 2.0
8 | {9208D6EB-D2C3-4CA8-8AA2-3CC3EBF7481A}
9 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | Library
11 | Properties
12 | CustomAlert.Droid
13 | CustomAlert.Droid
14 | 512
15 | true
16 | Resources\Resource.Designer.cs
17 | Off
18 | Properties\AndroidManifest.xml
19 | False
20 | v6.0
21 | armeabi,armeabi-v7a,x86
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | true
31 | full
32 | false
33 | bin\Debug\
34 | DEBUG;TRACE
35 | prompt
36 | 4
37 | True
38 | None
39 |
40 |
41 | pdbonly
42 | true
43 | bin\Release\
44 | TRACE
45 | prompt
46 | 4
47 | False
48 | SdkOnly
49 |
50 |
51 |
52 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\MonoAndroid10\FormsViewGroup.dll
53 | True
54 |
55 |
56 | ..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll
57 | True
58 |
59 |
60 | ..\..\packages\Unity.4.0.1\lib\portable-net45+wp80+win8+wpa81+MonoAndroid10+MonoTouch10\Microsoft.Practices.Unity.dll
61 | True
62 |
63 |
64 |
65 |
66 | ..\..\packages\Prism.Core.6.3.0\lib\MonoAndroid10\Prism.dll
67 | True
68 |
69 |
70 | ..\..\packages\Prism.Forms.6.3.0\lib\MonoAndroid1.0\Prism.Forms.dll
71 | True
72 |
73 |
74 | ..\..\packages\Prism.Unity.Forms.6.3.0\lib\MonoAndroid1.0\Prism.Unity.Forms.dll
75 | True
76 |
77 |
78 |
79 |
80 |
81 |
82 | ..\..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Animated.Vector.Drawable.dll
83 | True
84 |
85 |
86 | ..\..\packages\Xamarin.Android.Support.Design.23.3.0\lib\MonoAndroid43\Xamarin.Android.Support.Design.dll
87 | True
88 |
89 |
90 | ..\..\packages\Xamarin.Android.Support.v4.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll
91 | True
92 |
93 |
94 | ..\..\packages\Xamarin.Android.Support.v7.AppCompat.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.AppCompat.dll
95 | True
96 |
97 |
98 | ..\..\packages\Xamarin.Android.Support.v7.CardView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.CardView.dll
99 | True
100 |
101 |
102 | ..\..\packages\Xamarin.Android.Support.v7.MediaRouter.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.MediaRouter.dll
103 | True
104 |
105 |
106 | ..\..\packages\Xamarin.Android.Support.v7.RecyclerView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.RecyclerView.dll
107 | True
108 |
109 |
110 | ..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Vector.Drawable.dll
111 | True
112 |
113 |
114 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\MonoAndroid10\Xamarin.Forms.Core.dll
115 | True
116 |
117 |
118 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\MonoAndroid10\Xamarin.Forms.Platform.dll
119 | True
120 |
121 |
122 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll
123 | True
124 |
125 |
126 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll
127 | True
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 | CustomAlert
159 |
160 |
161 |
162 |
163 |
164 |
165 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
166 |
167 |
168 |
169 |
170 |
171 |
178 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/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 | using Prism.Unity;
10 | using Microsoft.Practices.Unity;
11 |
12 | namespace CustomAlert.Droid
13 | {
14 | [Activity(Label = "CustomAlert", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
15 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
16 | {
17 | protected override void OnCreate(Bundle bundle)
18 | {
19 | TabLayoutResource = Resource.Layout.tabs;
20 | ToolbarResource = Resource.Layout.toolbar;
21 |
22 | base.OnCreate(bundle);
23 |
24 | global::Xamarin.Forms.Forms.Init(this, bundle);
25 | LoadApplication(new App(new AndroidInitializer()));
26 | }
27 | }
28 |
29 | public class AndroidInitializer : IPlatformInitializer
30 | {
31 | public void RegisterTypes(IUnityContainer container)
32 | {
33 |
34 | }
35 | }
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 | using Android.App;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("CustomAlert.Droid")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("CustomAlert.Droid")]
14 | [assembly: AssemblyCopyright("Copyright © 2017")]
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 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/AboutResources.txt:
--------------------------------------------------------------------------------
1 | Images, layout descriptions, binary blobs and string dictionaries can be included
2 | in your application as resource files. Various Android APIs are designed to
3 | operate on the resource IDs instead of dealing with images, strings or binary blobs
4 | directly.
5 |
6 | For example, a sample Android app that contains a user interface layout (main.xml),
7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
8 | would keep its resources in the "Resources" directory of the application:
9 |
10 | Resources/
11 | drawable-hdpi/
12 | icon.png
13 |
14 | drawable-ldpi/
15 | icon.png
16 |
17 | drawable-mdpi/
18 | icon.png
19 |
20 | layout/
21 | main.xml
22 |
23 | values/
24 | strings.xml
25 |
26 | In order to get the build system to recognize Android resources, set the build action to
27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but
28 | instead operate on resource IDs. When you compile an Android application that uses resources,
29 | the build system will package the resources for distribution and generate a class called
30 | "Resource" that contains the tokens for each one of the resources included. For example,
31 | for the above Resources layout, this is what the Resource class would expose:
32 |
33 | public class Resource {
34 | public class drawable {
35 | public const int icon = 0x123;
36 | }
37 |
38 | public class layout {
39 | public const int main = 0x456;
40 | }
41 |
42 | public class strings {
43 | public const int first_string = 0xabc;
44 | public const int second_string = 0xbcd;
45 | }
46 | }
47 |
48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
50 | string in the dictionary file values/strings.xml.
51 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.Droid/Resources/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.Droid/Resources/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.Droid/Resources/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/drawable/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.Droid/Resources/drawable/icon.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/layout/tabs.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/layout/toolbar.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 | #2196F3
3 | #1976D2
4 | #FFC107
5 | #F5F5F5
6 |
7 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.Droid/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 |
5 | using Foundation;
6 | using UIKit;
7 | using Prism.Unity;
8 | using Microsoft.Practices.Unity;
9 |
10 | namespace CustomAlert.iOS
11 | {
12 | // The UIApplicationDelegate for the application. This class is responsible for launching the
13 | // User Interface of the application, as well as listening (and optionally responding) to
14 | // application events from iOS.
15 | [Register("AppDelegate")]
16 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
17 | {
18 | //
19 | // This method is invoked when the application has loaded and is ready to run. In this
20 | // method you should instantiate the window, load the UI into it and then make the window
21 | // visible.
22 | //
23 | // You have 17 seconds to return from this method, or iOS will terminate your application.
24 | //
25 | public override bool FinishedLaunching(UIApplication app, NSDictionary options)
26 | {
27 | global::Xamarin.Forms.Forms.Init();
28 | LoadApplication(new App(new iOSInitializer()));
29 |
30 | return base.FinishedLaunching(app, options);
31 | }
32 | }
33 |
34 | public class iOSInitializer : IPlatformInitializer
35 | {
36 | public void RegisterTypes(IUnityContainer container)
37 | {
38 |
39 | }
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/CustomAlert.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {1714FE3A-2BE8-450A-9D1E-AFB9E745644C}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | Exe
11 | CustomAlert.iOS
12 | Resources
13 | CustomAlert.iOS
14 |
15 |
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\iPhoneSimulator\Debug
22 | DEBUG
23 | prompt
24 | 4
25 | false
26 | i386, x86_64
27 | SdkOnly
28 | true
29 |
30 |
31 | none
32 | true
33 | bin\iPhoneSimulator\Release
34 | prompt
35 | 4
36 | None
37 | i386, x86_64
38 | false
39 |
40 |
41 | true
42 | full
43 | false
44 | bin\iPhone\Debug
45 | DEBUG
46 | prompt
47 | 4
48 | false
49 | ARMv7, ARM64
50 | iPhone Developer
51 | true
52 | Entitlements.plist
53 |
54 |
55 | none
56 | true
57 | bin\iPhone\Release
58 | prompt
59 | 4
60 | ARMv7, ARM64
61 | false
62 | iPhone Developer
63 | Entitlements.plist
64 |
65 |
66 | none
67 | True
68 | bin\iPhone\Ad-Hoc
69 | prompt
70 | 4
71 | False
72 | ARMv7, ARM64
73 | True
74 | Automatic:AdHoc
75 | iPhone Distribution
76 | Entitlements.plist
77 |
78 |
79 | none
80 | True
81 | bin\iPhone\AppStore
82 | prompt
83 | 4
84 | False
85 | ARMv7, ARM64
86 | Automatic:AppStore
87 | iPhone Distribution
88 | Entitlements.plist
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 | CustomAlert
103 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 | ..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll
127 | True
128 |
129 |
130 | ..\..\packages\Unity.4.0.1\lib\portable-net45+wp80+win8+wpa81+MonoAndroid10+MonoTouch10\Microsoft.Practices.Unity.dll
131 | True
132 |
133 |
134 | ..\..\packages\Prism.Core.6.3.0\lib\Xamarin.iOS10\Prism.dll
135 | True
136 |
137 |
138 | ..\..\packages\Prism.Forms.6.3.0\lib\Xamarin.iOS1.0\Prism.Forms.dll
139 | True
140 |
141 |
142 | ..\..\packages\Prism.Unity.Forms.6.3.0\lib\Xamarin.iOS1.0\Prism.Unity.Forms.dll
143 | True
144 |
145 |
146 |
147 |
148 |
149 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll
150 | True
151 |
152 |
153 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll
154 | True
155 |
156 |
157 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll
158 | True
159 |
160 |
161 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll
162 | True
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
171 |
172 |
173 |
174 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | UIDeviceFamily
6 |
7 | 1
8 | 2
9 |
10 | UISupportedInterfaceOrientations
11 |
12 | UIInterfaceOrientationPortrait
13 | UIInterfaceOrientationLandscapeLeft
14 | UIInterfaceOrientationLandscapeRight
15 |
16 | UISupportedInterfaceOrientations~ipad
17 |
18 | UIInterfaceOrientationPortrait
19 | UIInterfaceOrientationPortraitUpsideDown
20 | UIInterfaceOrientationLandscapeLeft
21 | UIInterfaceOrientationLandscapeRight
22 |
23 | MinimumOSVersion
24 | 6.0
25 | CFBundleDisplayName
26 | CustomAlert
27 | CFBundleIdentifier
28 | com.yourcompany.CustomAlert
29 | CFBundleVersion
30 | 1.0
31 | CFBundleIconFiles
32 |
33 | Icon-60@2x
34 | Icon-60@3x
35 | Icon-76
36 | Icon-76@2x
37 | Default
38 | Default@2x
39 | Default-568h@2x
40 | Default-Portrait
41 | Default-Portrait@2x
42 | Icon-Small-40
43 | Icon-Small-40@2x
44 | Icon-Small-40@3x
45 | Icon-Small
46 | Icon-Small@2x
47 | Icon-Small@3x
48 |
49 | UILaunchStoryboardName
50 | LaunchScreen
51 | CFBundleName
52 | CustomAlert
53 |
54 |
55 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.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 CustomAlert.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 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.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("CustomAlert.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CustomAlert.iOS")]
13 | [assembly: AssemblyCopyright("Copyright © 2017")]
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 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-60@2x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-60@3x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-76.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-76@2x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-Small-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-Small-40.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-Small-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-Small-40@2x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-Small-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-Small-40@3x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-Small.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-Small@2x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/Resources/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/Resources/Icon-Small@3x.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.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 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/iTunesArtwork:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/iTunesArtwork
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/iTunesArtwork@2x:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert.iOS/iTunesArtwork@2x
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert.iOS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
14 |
15 |
16 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using Prism.Unity;
2 | using CustomAlert.Views;
3 | using Xamarin.Forms;
4 |
5 | namespace CustomAlert
6 | {
7 | public partial class App : PrismApplication
8 | {
9 | public App(IPlatformInitializer initializer = null) : base(initializer) { }
10 |
11 | protected override void OnInitialized()
12 | {
13 | InitializeComponent();
14 |
15 | NavigationService.NavigateAsync("NavigationPage/MainPage?title=Hello%20from%20Xamarin.Forms");
16 | }
17 |
18 | protected override void RegisterTypes()
19 | {
20 | Container.RegisterTypeForNavigation();
21 | Container.RegisterTypeForNavigation();
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/Controls/AlertView.xaml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
16 |
22 |
28 |
29 |
30 |
37 |
38 |
41 |
48 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/Controls/AlertView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Runtime.CompilerServices;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using System.Windows.Input;
8 | using Xamarin.Forms;
9 |
10 | namespace CustomAlert.Controls
11 | {
12 | public partial class AlertView : ContentView
13 | {
14 | public AlertView()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | #region Bindable Properties
20 |
21 | public static readonly BindableProperty AlertTitleProperty =
22 | BindableProperty.Create("AlertTitle", typeof(string), typeof(AlertView), "", defaultBindingMode: BindingMode.TwoWay);
23 |
24 | public string AlertTitle
25 | {
26 | get { return (string)GetValue(AlertTitleProperty); }
27 | set { SetValue(AlertTitleProperty, value); }
28 | }
29 |
30 | public static readonly BindableProperty DescriptionProperty =
31 | BindableProperty.Create("Description", typeof(string), typeof(AlertView), "", defaultBindingMode: BindingMode.TwoWay);
32 |
33 | public string Description
34 | {
35 | get { return (string)GetValue(DescriptionProperty); }
36 | set { SetValue(DescriptionProperty, value); }
37 | }
38 |
39 | public static readonly BindableProperty PositiveButtonTitleProperty =
40 | BindableProperty.Create("PositiveButtonTitle", typeof(string), typeof(AlertView), "", defaultBindingMode: BindingMode.TwoWay);
41 |
42 | public string PositiveButtonTitle
43 | {
44 | get { return (string)GetValue(PositiveButtonTitleProperty); }
45 | set { SetValue(PositiveButtonTitleProperty, value); }
46 | }
47 |
48 | public static readonly BindableProperty NegativeButtonTitleProperty =
49 | BindableProperty.Create("NegativeButtonTitle", typeof(string), typeof(AlertView), "", defaultBindingMode: BindingMode.TwoWay);
50 |
51 | public string NegativeButtonTitle
52 | {
53 | get { return (string)GetValue(NegativeButtonTitleProperty); }
54 | set { SetValue(NegativeButtonTitleProperty, value); }
55 | }
56 |
57 | public static readonly BindableProperty HeaderBackgroundColorProperty =
58 | BindableProperty.Create("HeaderBackgroundColor", typeof(Color), typeof(AlertView), Color.FromHex("#2D9EE0"), defaultBindingMode: BindingMode.TwoWay);
59 |
60 | public Color HeaderBackgroundColor
61 | {
62 | get { return (Color)GetValue(HeaderBackgroundColorProperty); }
63 | set { SetValue(HeaderBackgroundColorProperty, value); }
64 | }
65 |
66 | public static readonly BindableProperty HasPositiveButtonProperty =
67 | BindableProperty.Create("HasPositiveButton", typeof(bool), typeof(AlertView), false, defaultBindingMode:BindingMode.TwoWay, propertyChanged: (b, o, n) =>
68 | {
69 | });
70 |
71 | public bool HasPositiveButton
72 | {
73 | get { return (bool)GetValue(HasPositiveButtonProperty); }
74 | set { SetValue(HasPositiveButtonProperty, value); }
75 | }
76 |
77 | public static readonly BindableProperty AlertTypeProperty =
78 | BindableProperty.Create("AlertType", typeof(AlertTypes), typeof(AlertView), AlertTypes.Info, defaultBindingMode: BindingMode.TwoWay, propertyChanged: OnAlertType);
79 |
80 | private static void OnAlertType(BindableObject bindable, object oldValue, object newValue)
81 | {
82 | var currentView = bindable as AlertView;
83 | AlertTypes type = (AlertTypes)newValue;
84 | string alertImageName = Constants.GetImage(type);
85 |
86 | if (currentView == null || string.IsNullOrEmpty(alertImageName))
87 | return;
88 |
89 | currentView.AlertImage = ImageSource.FromResource(alertImageName);
90 | }
91 |
92 | public AlertTypes AlertType
93 | {
94 | get { return (AlertTypes)GetValue(AlertTypeProperty); }
95 | set { SetValue(AlertTypeProperty, value); }
96 | }
97 |
98 | public static readonly BindableProperty AlertImageProperty =
99 | BindableProperty.Create("AlertImage", typeof(ImageSource), typeof(AlertView), null);
100 |
101 | public ImageSource AlertImage
102 | {
103 | get { return (ImageSource)GetValue(AlertImageProperty); }
104 | set { SetValue(AlertImageProperty, value); }
105 | }
106 |
107 | public static readonly BindableProperty CommandParameterProperty =
108 | BindableProperty.Create("CommandParameter", typeof(bool), typeof(AlertView), false);
109 |
110 | public bool CommandParameter
111 | {
112 | get { return (bool)GetValue(CommandParameterProperty); }
113 | set { SetValue(CommandParameterProperty, value); }
114 | }
115 |
116 | #endregion
117 |
118 | #region Bindable Commands
119 |
120 | public static readonly BindableProperty OnCommandProperty =
121 | BindableProperty.Create("OnCommand", typeof(ICommand), typeof(AlertView), null, defaultBindingMode: BindingMode.TwoWay);
122 |
123 | public ICommand OnCommand
124 | {
125 | get { return (ICommand)GetValue(OnCommandProperty); }
126 | set { SetValue(OnCommandProperty, value); }
127 | }
128 |
129 | public Command ButtonCommand
130 | {
131 | get
132 | {
133 | return new Command(arg =>
134 | {
135 | IsVisible = false;
136 | if (OnCommand != null)
137 | OnCommand.Execute(arg.Equals("yes", StringComparison.CurrentCultureIgnoreCase)); //True: If pressed 'Yes' Button.
138 | });
139 | }
140 | }
141 |
142 |
143 | #endregion
144 |
145 | protected override void OnPropertyChanged([CallerMemberName] string propertyName = null)
146 | {
147 | base.OnPropertyChanged(propertyName);
148 | var d = Description;
149 | }
150 |
151 | }
152 | }
153 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/CustomAlert.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 10.0
6 | Debug
7 | AnyCPU
8 | {113AAB9F-9D96-4BF9-86E7-0C65417B9B9F}
9 | Library
10 | Properties
11 | CustomAlert
12 | CustomAlert
13 | v4.5
14 | Profile259
15 | 512
16 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
17 |
18 |
19 |
20 |
21 | true
22 | full
23 | false
24 | bin\Debug\
25 | DEBUG;TRACE
26 | prompt
27 | 4
28 |
29 |
30 | pdbonly
31 | true
32 | bin\Release\
33 | TRACE
34 | prompt
35 | 4
36 |
37 |
38 |
39 | AlertView.xaml
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | MSBuild:UpdateDesignTimeXaml
48 | Designer
49 |
50 |
51 | App.xaml
52 |
53 |
54 |
55 |
56 | MSBuild:UpdateDesignTimeXaml
57 | Designer
58 |
59 |
60 | MainPage.xaml
61 |
62 |
63 |
64 |
65 | ..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll
66 | True
67 |
68 |
69 | ..\..\packages\Unity.4.0.1\lib\portable-net45+wp80+win8+wpa81+MonoAndroid10+MonoTouch10\Microsoft.Practices.Unity.dll
70 | True
71 |
72 |
73 | ..\..\packages\Prism.Core.6.3.0\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Prism.dll
74 | True
75 |
76 |
77 | ..\..\packages\Prism.Forms.6.3.0\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Prism.Forms.dll
78 | True
79 |
80 |
81 | ..\..\packages\Prism.Unity.Forms.6.3.0\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Prism.Unity.Forms.dll
82 | True
83 |
84 |
85 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Core.dll
86 | True
87 |
88 |
89 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Platform.dll
90 | True
91 |
92 |
93 | ..\..\packages\Xamarin.Forms.2.3.3.193\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Xaml.dll
94 | True
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 | MSBuild:UpdateDesignTimeXaml
108 | Designer
109 |
110 |
111 |
112 |
113 |
114 |
115 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
116 |
117 |
118 |
119 |
120 |
127 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/Helper/Constants.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Reflection;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | namespace CustomAlert
9 | {
10 | public class Constants
11 | {
12 | public const string SuccessImage = "success";
13 | public const string FailImage = "fail";
14 | public const string InfoImage = "info";
15 |
16 | public static string GetImage(AlertTypes type)
17 | {
18 | string fileName = string.Empty;
19 | switch (type)
20 | {
21 | case AlertTypes.Success:
22 | fileName = SuccessImage; ;
23 | break;
24 | case AlertTypes.Error:
25 | fileName = FailImage;
26 | break;
27 | case AlertTypes.Info:
28 | fileName = InfoImage;
29 | break;
30 | default:
31 | break;
32 | }
33 | return string.Format("{0}.Images.{1}.png", typeof(Constants).Namespace, fileName);
34 | }
35 |
36 | public const string CancelButtonTitle = "Cancel";
37 | public const string OkButtonTitle = "Ok";
38 | }
39 | public enum AlertTypes
40 | {
41 | Success,
42 | Error,
43 | Info
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/Images/fail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert/Images/fail.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/Images/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert/Images/info.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/Images/success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rzee7/Xam-Forms-CustomAlert/3978cf5fabcc6a3340864f6412460aade7d1915d/CustomAlert/CustomAlert/Images/success.png
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Resources;
2 | using System.Reflection;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using Xamarin.Forms.Xaml;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("CustomAlert")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("CustomAlert")]
15 | [assembly: AssemblyCopyright("Copyright © 2017")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 | [assembly: NeutralResourcesLanguage("en")]
19 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)]
20 |
21 | // Version information for an assembly consists of the following four values:
22 | //
23 | // Major Version
24 | // Minor Version
25 | // Build Number
26 | // Revision
27 | //
28 | // You can specify all the values or you can default the Build and Revision Numbers
29 | // by using the '*' as shown below:
30 | // [assembly: AssemblyVersion("1.0.*")]
31 | [assembly: AssemblyVersion("1.0.0.0")]
32 | [assembly: AssemblyFileVersion("1.0.0.0")]
33 |
--------------------------------------------------------------------------------
/CustomAlert/CustomAlert/ViewModels/MainPageViewModel.cs:
--------------------------------------------------------------------------------
1 | using Prism.Commands;
2 | using Prism.Mvvm;
3 | using Prism.Navigation;
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Linq;
7 |
8 | namespace CustomAlert.ViewModels
9 | {
10 | public class MainPageViewModel : BindableBase
11 | {
12 | private string _title;
13 | public string Title
14 | {
15 | get { return _title; }
16 | set { SetProperty(ref _title, value); }
17 | }
18 |
19 | private string _description;
20 | public string Description
21 | {
22 | get { return _description; }
23 | set { SetProperty(ref _description, value); }
24 | }
25 |
26 | private bool _isAlert;
27 | public bool IsAlert
28 | {
29 | get { return _isAlert; }
30 | set { SetProperty(ref _isAlert, value); }
31 | }
32 |
33 | private AlertTypes _alert;
34 | public AlertTypes Alert
35 | {
36 | get { return _alert; }
37 | set { SetProperty(ref _alert, value); }
38 | }
39 |
40 | private bool _hasPositiveButton;
41 | public bool HasPositiveButton
42 | {
43 | get { return _hasPositiveButton; }
44 | set { SetProperty(ref _hasPositiveButton, value); }
45 | }
46 |
47 | private string _okbutton = "Cancel";
48 | public string OkButton
49 | {
50 | get { return _okbutton; }
51 | set { SetProperty(ref _okbutton, value); }
52 | }
53 |
54 | private DelegateCommand