├── .gitignore
├── README.md
├── Resources
├── stepBarSample.png
└── stepIcon.png
├── StepProgressBarSample
├── StepProgressBarSample.Android
│ ├── Assets
│ │ └── AboutAssets.txt
│ ├── MainActivity.cs
│ ├── Properties
│ │ ├── AndroidManifest.xml
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.designer.cs
│ │ ├── layout
│ │ │ ├── Tabbar.axml
│ │ │ └── Toolbar.axml
│ │ ├── mipmap-anydpi-v26
│ │ │ ├── icon.xml
│ │ │ └── icon_round.xml
│ │ ├── mipmap-hdpi
│ │ │ ├── Icon.png
│ │ │ └── launcher_foreground.png
│ │ ├── mipmap-mdpi
│ │ │ ├── icon.png
│ │ │ └── launcher_foreground.png
│ │ ├── mipmap-xhdpi
│ │ │ ├── Icon.png
│ │ │ └── launcher_foreground.png
│ │ ├── mipmap-xxhdpi
│ │ │ ├── Icon.png
│ │ │ └── launcher_foreground.png
│ │ ├── mipmap-xxxhdpi
│ │ │ ├── Icon.png
│ │ │ └── launcher_foreground.png
│ │ └── values
│ │ │ ├── colors.xml
│ │ │ └── styles.xml
│ └── StepProgressBarSample.Android.csproj
├── StepProgressBarSample.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
│ ├── 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
│ └── StepProgressBarSample.iOS.csproj
├── StepProgressBarSample.sln
└── StepProgressBarSample
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── MainPage.xaml
│ ├── MainPage.xaml.cs
│ ├── StepProgressBarSample.csproj
│ └── ViewModel
│ └── MainViewModel.cs
├── Xamarin.Forms.StepProgressBar.sln
└── Xamarin.Forms.StepProgressBar
├── Control
└── StepProgressBar.cs
└── Xamarin.Forms.StepProgressBar.csproj
/.gitignore:
--------------------------------------------------------------------------------
1 | # Autosave files
2 | *~
3 |
4 | # build
5 | [Oo]bj/
6 | [Bb]in/
7 | packages/
8 | TestResults/
9 |
10 | # globs
11 | Makefile.in
12 | *.DS_Store
13 | *.sln.cache
14 | *.suo
15 | *.cache
16 | *.pidb
17 | *.userprefs
18 | *.usertasks
19 | config.log
20 | config.make
21 | config.status
22 | aclocal.m4
23 | install-sh
24 | autom4te.cache/
25 | *.user
26 | *.tar.gz
27 | tarballs/
28 | test-results/
29 | Thumbs.db
30 | .vs/
31 |
32 | # Mac bundle stuff
33 | *.dmg
34 | *.app
35 |
36 | # resharper
37 | *_Resharper.*
38 | *.Resharper
39 |
40 | # dotCover
41 | *.dotCover
42 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Xamarin.Forms.StepProgressBar
2 |
3 | Add a step rogress bar in your Xamarin.Forms project.
4 |
5 | Square control Based on StepBar by [CrossGeeks](https://github.com/CrossGeeks) (https://github.com/CrossGeeks/StepBar).
6 |
7 | You can choose between a square or circular control.
8 |
9 | ###### This is the component, works on iOS, Android and UWP.
10 |
11 |
12 |
13 | 
14 |
15 | **NuGet**
16 |
17 |
18 | |Name|Info|
19 | | ------------------- | :------------------: |
20 | |Xamarin.Forms.StepProgressBar|[](https://www.nuget.org/packages/Xamarin.Forms.StepProgressBar/)|
21 |
22 |
23 | **Platform Support**
24 |
25 | MultiSelectListView is a .NET Standard 2.0 library.Its only dependency is the Xamarin.Forms
26 |
27 | ## Setup / Usage
28 |
29 | Does not require additional configuration. Just install the package in the shared project and use.
30 |
31 | You just need to add the reference in your xaml file.
32 |
33 | ```csharp
34 | xmlns:control="clr-namespace:Xamarin.Forms.StepProgressBar;assembly=Xamarin.Forms.StepProgressBar"
35 | ```
36 |
37 | Control
38 |
39 | ```csharp
40 |
41 |
43 |
44 | ```
45 |
46 | Available properties
47 |
48 | * StepCanTouch: Indicates if it is possible to interact with the step. If marked false does not trigger the event.
49 | * StepColor: Control color. Hexadecimal can be used.
50 | * Steps: Number of steps to display.
51 | * StepSelected: Indicates which step is selected.
52 | * IsCircle: Indicates whether the control will be a circle. If marked as false, use a square to display the step.
53 |
54 | The complete example can be downloaded here: https://github.com/TBertuzzi/Xamarin.Forms.StepProgressBar/tree/master/StepProgressBarSample
55 |
56 |
57 |
--------------------------------------------------------------------------------
/Resources/stepBarSample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/Resources/stepBarSample.png
--------------------------------------------------------------------------------
/Resources/stepIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/Resources/stepIcon.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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 StepProgressBarSample.Droid
11 | {
12 | [Activity(Label = "StepProgressBarSample", 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 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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("StepProgressBarSample.Android")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("StepProgressBarSample.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 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/layout/Tabbar.axml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/layout/Toolbar.axml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-anydpi-v26/icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-anydpi-v26/icon_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-hdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-hdpi/Icon.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-hdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-hdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-mdpi/icon.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-mdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-mdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xhdpi/Icon.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xxhdpi/Icon.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xxxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xxxhdpi/Icon.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 | #3F51B5
5 | #303F9F
6 | #FF4081
7 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
24 |
27 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.Android/StepProgressBarSample.Android.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {55B4C2CA-888B-4260-85FE-A24D365794C9}
7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
8 | {c9e5eea5-ca05-42a1-839b-61506e0a37df}
9 | Library
10 | StepProgressBarSample.Droid
11 | StepProgressBarSample.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 |
53 |
54 |
55 |
56 |
57 |
58 | 2.1.34
59 |
60 |
61 | 1.0.0
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}
102 | StepProgressBarSample
103 |
104 |
105 |
106 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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 StepProgressBarSample.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 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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 | }
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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 | StepProgressBarSample
27 | CFBundleIdentifier
28 | br.com.tbertuzzi.StepProgressBarSample
29 | CFBundleVersion
30 | 1.0
31 | UILaunchStoryboardName
32 | LaunchScreen
33 | CFBundleName
34 | StepProgressBarSample
35 | XSAppIconAssets
36 | Assets.xcassets/AppIcon.appiconset
37 |
38 |
39 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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 StepProgressBarSample.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 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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("StepProgressBarSample.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("StepProgressBarSample.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 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TBertuzzi/Xamarin.Forms.StepProgressBar/0fc80ad36b2e0f2e97f0a91f2c35d77c517f6311/StepProgressBarSample/StepProgressBarSample.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.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 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.iOS/StepProgressBarSample.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | {6143fdea-f3c2-4a09-aafa-6e230626515e}
11 | Exe
12 | StepProgressBarSample.iOS
13 | Resources
14 | StepProgressBarSample.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 | none
68 | True
69 | bin\iPhone\Ad-Hoc
70 | prompt
71 | 4
72 | False
73 | ARM64
74 | True
75 | Automatic:AdHoc
76 | iPhone Distribution
77 | Entitlements.plist
78 |
79 |
80 | none
81 | True
82 | bin\iPhone\AppStore
83 | prompt
84 | 4
85 | False
86 | ARM64
87 | Automatic:AppStore
88 | iPhone Distribution
89 | Entitlements.plist
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | false
102 |
103 |
104 | false
105 |
106 |
107 | false
108 |
109 |
110 | false
111 |
112 |
113 | false
114 |
115 |
116 | false
117 |
118 |
119 | false
120 |
121 |
122 | false
123 |
124 |
125 | false
126 |
127 |
128 | false
129 |
130 |
131 | false
132 |
133 |
134 | false
135 |
136 |
137 | false
138 |
139 |
140 | false
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 | 2.1.34
153 |
154 |
155 |
156 |
157 |
158 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}
159 | StepProgressBarSample
160 |
161 |
162 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 15
3 | VisualStudioVersion = 15.0.27703.2000
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StepProgressBarSample.Android", "StepProgressBarSample.Android\StepProgressBarSample.Android.csproj", "{55B4C2CA-888B-4260-85FE-A24D365794C9}"
6 | EndProject
7 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StepProgressBarSample.iOS", "StepProgressBarSample.iOS\StepProgressBarSample.iOS.csproj", "{F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}"
8 | EndProject
9 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StepProgressBarSample", "StepProgressBarSample\StepProgressBarSample.csproj", "{B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}"
10 | EndProject
11 | Global
12 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
13 | Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
14 | Ad-Hoc|iPhone = Ad-Hoc|iPhone
15 | Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
16 | AppStore|Any CPU = AppStore|Any CPU
17 | AppStore|iPhone = AppStore|iPhone
18 | AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
19 | Debug|Any CPU = Debug|Any CPU
20 | Debug|iPhone = Debug|iPhone
21 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
22 | Release|Any CPU = Release|Any CPU
23 | Release|iPhone = Release|iPhone
24 | Release|iPhoneSimulator = Release|iPhoneSimulator
25 | EndGlobalSection
26 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
27 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
28 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
29 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
30 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
31 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
32 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
33 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
34 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
35 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
36 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.AppStore|Any CPU.Build.0 = Release|Any CPU
37 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
38 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
39 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.AppStore|iPhone.Build.0 = Debug|Any CPU
40 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
41 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
42 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
43 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
45 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Debug|iPhone.ActiveCfg = Debug|Any CPU
46 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Debug|iPhone.Build.0 = Debug|Any CPU
47 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
48 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
49 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
50 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Release|Any CPU.Build.0 = Release|Any CPU
51 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Release|iPhone.ActiveCfg = Release|Any CPU
52 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Release|iPhone.Build.0 = Release|Any CPU
53 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
54 | {55B4C2CA-888B-4260-85FE-A24D365794C9}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
55 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhoneSimulator
56 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
57 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
58 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
59 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
60 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.AppStore|Any CPU.ActiveCfg = AppStore|iPhoneSimulator
61 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
62 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.AppStore|iPhone.Build.0 = AppStore|iPhone
63 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
64 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
65 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
66 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
67 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Debug|iPhone.ActiveCfg = Debug|iPhone
68 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Debug|iPhone.Build.0 = Debug|iPhone
69 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
70 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
71 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
72 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
73 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Release|iPhone.ActiveCfg = Release|iPhone
74 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Release|iPhone.Build.0 = Release|iPhone
75 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
76 | {F3E0C4C4-F9DF-46D1-9A47-7E7E6FE0A5A7}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
77 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
78 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
79 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
80 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
81 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
82 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
83 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
84 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.AppStore|Any CPU.Build.0 = Release|Any CPU
85 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
86 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.AppStore|iPhone.Build.0 = Debug|Any CPU
87 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
88 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
89 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
90 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
91 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Debug|iPhone.ActiveCfg = Debug|Any CPU
92 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Debug|iPhone.Build.0 = Debug|Any CPU
93 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
94 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
95 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
96 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Release|Any CPU.Build.0 = Release|Any CPU
97 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Release|iPhone.ActiveCfg = Release|Any CPU
98 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Release|iPhone.Build.0 = Release|Any CPU
99 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
100 | {B84DC87C-83DE-4828-A1A5-9B8B9BC5BA0F}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
101 | EndGlobalSection
102 | GlobalSection(SolutionProperties) = preSolution
103 | HideSolutionNode = FALSE
104 | EndGlobalSection
105 | GlobalSection(ExtensibilityGlobals) = postSolution
106 | SolutionGuid = {830A25A5-1F3D-482A-9DA1-51437621E694}
107 | EndGlobalSection
108 | EndGlobal
109 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Xamarin.Forms;
3 | using Xamarin.Forms.Xaml;
4 |
5 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)]
6 | namespace StepProgressBarSample
7 | {
8 | public partial class App : Application
9 | {
10 | public App()
11 | {
12 | InitializeComponent();
13 |
14 | MainPage = new MainPage();
15 | }
16 |
17 | protected override void OnStart()
18 | {
19 | // Handle when your app starts
20 | }
21 |
22 | protected override void OnSleep()
23 | {
24 | // Handle when your app sleeps
25 | }
26 |
27 | protected override void OnResume()
28 | {
29 | // Handle when your app resumes
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
13 |
14 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using StepProgressBarSample.ViewModel;
7 | using Xamarin.Forms;
8 |
9 | namespace StepProgressBarSample
10 | {
11 | public partial class MainPage : ContentPage
12 | {
13 | public MainPage()
14 | {
15 | InitializeComponent();
16 |
17 | this.BindingContext = new MainViewModel();
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample/StepProgressBarSample.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/StepProgressBarSample/StepProgressBarSample/ViewModel/MainViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Runtime.CompilerServices;
5 |
6 | namespace StepProgressBarSample.ViewModel
7 | {
8 | class MainViewModel : INotifyPropertyChanged
9 | {
10 | #region Property
11 |
12 | public event PropertyChangedEventHandler PropertyChanged;
13 |
14 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
15 | {
16 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
17 | }
18 |
19 | protected bool SetProperty(ref T storage, T value, [CallerMemberName] string propertyName = null)
20 | {
21 | if (EqualityComparer.Default.Equals(storage, value))
22 | {
23 | return false;
24 | }
25 |
26 | storage = value;
27 | OnPropertyChanged(propertyName);
28 | return true;
29 | }
30 |
31 | #endregion
32 |
33 | private int _step;
34 | public int Step
35 | {
36 | get { return _step; }
37 | set
38 | {
39 | this.SetProperty(ref _step, value);
40 | }
41 | }
42 |
43 |
44 |
45 | private int _steps;
46 | public int Steps
47 | {
48 | get { return _steps; }
49 | set
50 | {
51 | this.SetProperty(ref _steps, value);
52 | }
53 | }
54 |
55 |
56 | public MainViewModel()
57 | {
58 |
59 | Steps = 4;
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/Xamarin.Forms.StepProgressBar.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.Forms.StepProgressBar", "Xamarin.Forms.StepProgressBar\Xamarin.Forms.StepProgressBar.csproj", "{D4B92961-5D10-41FE-B5AD-2108BA01906B}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Any CPU = Debug|Any CPU
9 | Release|Any CPU = Release|Any CPU
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {D4B92961-5D10-41FE-B5AD-2108BA01906B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13 | {D4B92961-5D10-41FE-B5AD-2108BA01906B}.Debug|Any CPU.Build.0 = Debug|Any CPU
14 | {D4B92961-5D10-41FE-B5AD-2108BA01906B}.Release|Any CPU.ActiveCfg = Release|Any CPU
15 | {D4B92961-5D10-41FE-B5AD-2108BA01906B}.Release|Any CPU.Build.0 = Release|Any CPU
16 | EndGlobalSection
17 | EndGlobal
18 |
--------------------------------------------------------------------------------
/Xamarin.Forms.StepProgressBar/Control/StepProgressBar.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Xamarin.Forms;
3 | using System.Linq;
4 |
5 | namespace Xamarin.Forms.StepProgressBar
6 | {
7 | public class StepProgressBar : StackLayout
8 | {
9 | Button _lastStepSelected;
10 | public static readonly BindableProperty IsCircleProperty = BindableProperty.Create(nameof(IsCircle), typeof(bool), typeof(StepProgressBar), true);
11 | public static readonly BindableProperty StepsProperty = BindableProperty.Create(nameof(Steps), typeof(int), typeof(StepProgressBar), 0);
12 | public static readonly BindableProperty StepSelectedProperty = BindableProperty.Create(nameof(StepSelected), typeof(int), typeof(StepProgressBar), 0, defaultBindingMode: BindingMode.TwoWay);
13 | public static readonly BindableProperty StepColorProperty = BindableProperty.Create(nameof(StepColor), typeof(Xamarin.Forms.Color), typeof(StepProgressBar), Color.Black, defaultBindingMode: BindingMode.TwoWay);
14 | public static readonly BindableProperty StepCanTouchProperty = BindableProperty.Create(nameof(StepCanTouch), typeof(bool), typeof(StepProgressBar), true);
15 |
16 | public Color StepColor
17 | {
18 | get { return (Color)GetValue(StepColorProperty); }
19 | set { SetValue(StepColorProperty, value); }
20 | }
21 |
22 | public int Steps
23 | {
24 | get { return (int)GetValue(StepsProperty); }
25 | set { SetValue(StepsProperty, value); }
26 | }
27 |
28 | public int StepSelected
29 | {
30 | get { return (int)GetValue(StepSelectedProperty); }
31 | set { SetValue(StepSelectedProperty, value); }
32 | }
33 |
34 | public bool StepCanTouch
35 | {
36 | get { return (bool)GetValue(StepCanTouchProperty); }
37 | set { SetValue(StepCanTouchProperty, value); }
38 | }
39 |
40 | public bool IsCircle
41 | {
42 | get { return (bool)GetValue(IsCircleProperty); }
43 | set { SetValue(IsCircleProperty, value); }
44 | }
45 |
46 |
47 | public StepProgressBar()
48 | {
49 | Orientation = StackOrientation.Horizontal;
50 | HorizontalOptions = LayoutOptions.FillAndExpand;
51 | Padding = new Thickness(10, 0);
52 | Spacing = 0;
53 | AddStyles();
54 |
55 | }
56 |
57 | protected override void OnPropertyChanged(string propertyName = null)
58 | {
59 | base.OnPropertyChanged(propertyName);
60 |
61 | if (propertyName == StepsProperty.PropertyName)
62 | {
63 | for (int i = 0; i < Steps; i++)
64 | {
65 | var button = new Button()
66 | {
67 | Text = $"{i + 1}",
68 | ClassId = $"{i + 1}",
69 | Style = (IsCircle ? Resources["unselectedCircleStyle"] : Resources["unselectedSquareStyle"]) as Style
70 | };
71 |
72 | button.Clicked -= Handle_Clicked;
73 | button.Clicked += Handle_Clicked;
74 |
75 | this.Children.Add(button);
76 |
77 | if (i < Steps - 1)
78 | {
79 | var separatorLine = new BoxView()
80 | {
81 | BackgroundColor = Color.Silver,
82 | HeightRequest = 1,
83 | WidthRequest = 5,
84 | VerticalOptions = LayoutOptions.Center,
85 | HorizontalOptions = LayoutOptions.FillAndExpand
86 | };
87 | this.Children.Add(separatorLine);
88 | }
89 | }
90 | }
91 | else if (propertyName == StepSelectedProperty.PropertyName)
92 | {
93 |
94 | var children = this.Children.FirstOrDefault(p => (!string.IsNullOrEmpty(p.ClassId) && Convert.ToInt32(p.ClassId) == StepSelected));
95 | if (children != null) SelectElement(children as Button);
96 |
97 | }
98 | else if (propertyName == StepColorProperty.PropertyName)
99 | {
100 | AddStyles();
101 | }
102 | }
103 | void Handle_Clicked(object sender, System.EventArgs e)
104 | {
105 | if (StepCanTouch)
106 | SelectElement(sender as Button);
107 | }
108 |
109 | void SelectElement(Button elementSelected)
110 | {
111 |
112 | if (_lastStepSelected != null) _lastStepSelected.Style = (IsCircle ? Resources["unselectedCircleStyle"] : Resources["unselectedSquareStyle"]) as Style;
113 |
114 | elementSelected.Style = (IsCircle ? Resources["selectedCircleStyle"] : Resources["selectedSquareStyle"]) as Style;
115 |
116 | StepSelected = Convert.ToInt32(elementSelected.Text);
117 | _lastStepSelected = elementSelected;
118 |
119 | }
120 |
121 | void AddStyles()
122 | {
123 | double borderWith = IsCircle ? 0.5 : 0;
124 |
125 | var unselectedCircleStyle = new Style(typeof(Button))
126 | {
127 | Setters = {
128 | new Setter { Property = BackgroundColorProperty, Value = Color.Transparent },
129 | new Setter { Property = Button.BorderColorProperty, Value = StepColor },
130 | new Setter { Property = Button.TextColorProperty, Value = StepColor },
131 | new Setter { Property = Button.BorderWidthProperty, Value = 0.5 },
132 | new Setter { Property = Button.CornerRadiusProperty, Value = 20 },
133 | new Setter { Property = HeightRequestProperty, Value = 40 },
134 | new Setter { Property = WidthRequestProperty, Value = 40 }
135 | }
136 | };
137 |
138 | var selectedCircleStyle = new Style(typeof(Button))
139 | {
140 | Setters = {
141 | new Setter { Property = BackgroundColorProperty, Value = StepColor },
142 | new Setter { Property = Button.TextColorProperty, Value = Color.White },
143 | new Setter { Property = Button.BorderColorProperty, Value = StepColor },
144 | new Setter { Property = Button.BorderWidthProperty, Value = 0.5 },
145 | new Setter { Property = Button.CornerRadiusProperty, Value = 20 },
146 | new Setter { Property = HeightRequestProperty, Value = 40 },
147 | new Setter { Property = WidthRequestProperty, Value = 40 },
148 | new Setter { Property = Button.FontAttributesProperty, Value = FontAttributes.Bold }
149 | }
150 | };
151 |
152 | var unselectedSquareStyle = new Style(typeof(Button))
153 | {
154 | Setters = {
155 | new Setter { Property = BackgroundColorProperty, Value = Color.Transparent },
156 | new Setter { Property = Button.BorderColorProperty, Value = StepColor },
157 | new Setter { Property = Button.TextColorProperty, Value = StepColor },
158 | new Setter { Property = Button.BorderWidthProperty, Value = 0.5 },
159 | new Setter { Property = Button.CornerRadiusProperty, Value = 1 },
160 | new Setter { Property = HeightRequestProperty, Value = 40 },
161 | new Setter { Property = WidthRequestProperty, Value = 40 }
162 | }
163 | };
164 |
165 | var selectedSquareStyle = new Style(typeof(Button))
166 | {
167 | Setters = {
168 | new Setter { Property = BackgroundColorProperty, Value = StepColor },
169 | new Setter { Property = Button.TextColorProperty, Value = Color.White },
170 | new Setter { Property = Button.BorderColorProperty, Value = StepColor },
171 | new Setter { Property = Button.BorderWidthProperty, Value = 0.5 },
172 | new Setter { Property = Button.CornerRadiusProperty, Value = 1 },
173 | new Setter { Property = HeightRequestProperty, Value = 40 },
174 | new Setter { Property = WidthRequestProperty, Value = 40 },
175 | new Setter { Property = Button.FontAttributesProperty, Value = FontAttributes.Bold }
176 | }
177 | };
178 |
179 | Resources = new ResourceDictionary();
180 | Resources.Add("unselectedCircleStyle", unselectedCircleStyle);
181 | Resources.Add("selectedCircleStyle", selectedCircleStyle);
182 | Resources.Add("unselectedSquareStyle", unselectedSquareStyle);
183 | Resources.Add("selectedSquareStyle", selectedSquareStyle);
184 | }
185 |
186 |
187 | }
188 | }
189 |
--------------------------------------------------------------------------------
/Xamarin.Forms.StepProgressBar/Xamarin.Forms.StepProgressBar.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 | tbertuzzi
6 | KBits
7 | Copyright ©2018 KBits
8 | http://opensource.org/licenses/MS-PL
9 | https://github.com/TBertuzzi/Xamarin.Forms.StepProgressBar
10 | https://github.com/TBertuzzi/Xamarin.Forms.StepProgressBar
11 | xamarin xamarin.forms xamarin forms step stepbar stepprogressbar
12 | StepProgressBar Control for Xamarin.Forms
13 | https://github.com/TBertuzzi/Xamarin.Forms.StepProgressBar/blob/master/Resources/stepIcon.png?raw=true
14 | First Version
15 | true
16 | 1.0.0.1
17 | 1.0.0.1
18 | 1.0.1
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------