Skip to content

Commit ad599c0

Browse files
Ui kit 2.5.0.0 (#36)
* Committed the source UIKit 2.3.0.0 release
1 parent 4227695 commit ad599c0

File tree

137 files changed

+23195
-886
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+23195
-886
lines changed
9.17 KB
Binary file not shown.

EssentialUIKit.Android/Resources/Resource.designer.cs

+16,232
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
9.17 KB
Binary file not shown.

EssentialUIKit.UWP/Package.appxmanifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
3-
<Identity Name="5ec79b0c-66cc-42d1-b51b-245cf10c509f" Publisher="CN=mageshkumarkrishnan" Version="1.0.0.0" />
3+
<Identity Name="5ec79b0c-66cc-42d1-b51b-245cf10c509f" Publisher="CN=EssentialUIKit" Version="1.0.0.0" />
44
<mp:PhoneIdentity PhoneProductId="ec0cc741-fd3e-485c-81be-68815c480690" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
55
<Properties>
66
<DisplayName>Essential UI Kit</DisplayName>
9.17 KB
Binary file not shown.
Loading

EssentialUIKit/AppLayout/Models/Category.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.Globalization;
23
using Xamarin.Forms.Internals;
34

45
namespace EssentialUIKit.AppLayout.Models
@@ -34,7 +35,7 @@ public string TemplateCount
3435
{
3536
get
3637
{
37-
return this.Pages.Count > 1 ? $"{this.Pages.Count.ToString()} Templates" : $"{this.Pages.Count.ToString()} Template";
38+
return this.Pages.Count > 1 ? $"{this.Pages.Count.ToString(CultureInfo.InvariantCulture)} Templates" : $"{this.Pages.Count.ToString(CultureInfo.InvariantCulture)} Template";
3839
}
3940
}
4041

EssentialUIKit/AppLayout/TemplateList.xml

+30-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Samples>
33

4-
<Category Icon="log-in.png" Name="Forms" IsUpdated="True" Description="Get the user’s details to authenticate, create a profile, and enter credit card information for online payment portal.">
4+
<Category Icon="log-in.png" Name="Forms" Description="Get the user’s details to authenticate, create a profile, and enter credit card information for online payment portal.">
55
<Page Name="Simple Login Page" Description="If you want a simple and clean authentication form, just add this page to your application. Email validation is done within this form." PageName="Views.Forms.SimpleLoginPage"/>
66
<Page Name="Simple Sign Up Page" Description="This is a supporting form for a simple login page that can be modified to match any of your login pages on the fly. Email validation is done in this form." PageName="Views.Forms.SimpleSignUpPage"/>
77
<Page Name="Simple Reset Password Page" Description="This page is used for resetting a password with existing credentials or signing up if the user doesn’t have credentials yet." PageName="Views.Forms.SimpleResetPasswordPage"/>
@@ -14,7 +14,7 @@
1414
<Page Name="Tabbed Login Page" Description="This page is a multi-tabbed user interface where one tab provides a login page and another tab provides a sign-up form." PageName="Views.Forms.TabbedForm"/>
1515
<Page Name="Add Card Page" Description="This page allows users to enter their credit card information to be used in an online payment portal." PageName="Views.Forms.AddCardPage"/>
1616
<Page Name="Add Profile Page" Description="This page allows users to add a new entry to their contacts with additional information such as name and phone number." PageName="Views.Forms.AddProfilePage"/>
17-
<Page Name="Business Registration Form Page" IsNew="True" Description="This page allows users to add business details such as name, email address, and phone number." PageName="Views.Forms.BusinessRegistrationFormPage"/>
17+
<Page Name="Business Registration Form Page" Description="This page allows users to add business details such as name, email address, and phone number." PageName="Views.Forms.BusinessRegistrationFormPage"/>
1818
</Category>
1919

2020
<Category Icon="catalog.png" Name="Catalog" Description="Let the users select from the list of items that includes titles, brief descriptions, and photos.">
@@ -60,9 +60,20 @@
6060

6161
<Category Icon="navigation.png" Name="Navigation" IsUpdated="True" Description="Enable your users to navigate between pages or items at a high level.">
6262
<Page Name="Bottom Navigation Page" Description="This page displays a navigation interface with icons and labels at the bottom." PageName="Views.Navigation.BottomNavigationPage"/>
63-
<Page Name="Navigation List Card Page" Description="This page displays an item as a card in a list. Each card carries an image of the item, its description, and an overall rating. " PageName="Views.Navigation.NavigationListCardPage"/>
64-
<Page Name="Navigation Tile Card Page" Description="This page displays an item as a card in a tile layout. Each tile contains an image of the item, its description, and an overall rating." PageName="Views.Navigation.NavigationTileCardPage"/>
65-
<Page Name="Songs Page" IsNew="True" Description="This page displays an item as a card in a tile layout. Each tile contains an image, the name of a song, and the song’s composer." PageName="Views.Navigation.SongsPage"/>
63+
<Page Name="Navigation List Card Page" Description="This page displays items in a list. Each card carries an image, description, and the overall rating of an item. " PageName="Views.Navigation.NavigationListCardPage"/>
64+
<Page Name="Navigation Tile Card Page" Description="This page displays items in a tile layout. Each tile contains an image, description, and the overall rating of an item." PageName="Views.Navigation.NavigationTileCardPage"/>
65+
<Page Name="Songs Page" Description="This page displays items in a tile layout. Each tile contains an image, the name of a song, and its composer." PageName="Views.Navigation.SongsPage"/>
66+
<Page Name="FAQs Page" IsNew="True" Description="This page displays items in an expander layout. Each item contains a question and answer for a FAQ section." PageName="Views.Navigation.FAQPage"/>
67+
<Page Name="Contacts List" IsNew="True" Description="This page displays a list of contacts and avatars." PageName="Views.Navigation.ContactsPage"/>
68+
<Page Name="Songs Play List" IsNew="True" Description="This page displays items in a tile layout. Each tile contains the name of a song and its composer, and a menu icon." PageName="Views.Navigation.SongsPlayListPage"/>
69+
<Page Name="Movies List" IsNew="True" Description="This page displays items in a tile layout. Each tile contains the name, year of release, and ratings of a movie." PageName="Views.Navigation.MoviesListPage"/>
70+
<Page Name="Names List" IsNew="True" Description="This page displays group names as a list." PageName="Views.Navigation.NamesListPage"/>
71+
<Page Name="Restaurant Page" IsNew="True" Description="This page displays Restaurant lists, items description, Offers and an overall rating." PageName="Views.Navigation.RestaurantPage"/>
72+
<Page Name="Icon Names List " IsNew="True" Description="The icon names list page displays contact lists with icons and a Next option." PageName="Views.Navigation.IconNamesListPage"/>
73+
<Page Name="Suggestion Page" IsNew="True" Description="A suggestion page shows profile names, profile IDs, and an option to let viewers follow accounts." PageName="Views.Navigation.SuggestionPage"/>
74+
<Page Name="App Usage Page" IsNew="True" Description="This page shows the usage of apps, displaying the app names, progress bars, and progress bar values." PageName="Views.Navigation.AppUsagePage"/>
75+
<Page Name="Documents List Page" IsNew="True" Description="This page shows a list of documents, displaying the name of the document, the size of the document, and the time it was last updated." PageName="Views.Navigation.DocumentsListPage"/>
76+
<Page Name="Selectable Name Page " IsNew="True" Description="This page shows a selectable list of names with grouping." PageName="Views.Navigation.SelectableNamePage"/>
6677
</Category>
6778

6879
<Category Icon="on-boarding.png" Name="Onboarding" Description="Get your users started with a new app or experience with step-by--step instructions.">
@@ -91,10 +102,10 @@
91102
<Page Name="Payment Page" Description="View card and payment details" PageName="Views.Transaction.PaymentPage" Platform="UWP"/>
92103
</Category>
93104

94-
<Category Icon="bookmark.png" IsUpdated="True" Name="Bookmark" Description="Interfaces for users to save shopping items, articles, or pages they’d like to return to later. Users can add or remove items they’ve saved as needed.">
105+
<Category Icon="bookmark.png" Name="Bookmark" Description="Interfaces for users to save shopping items, articles, or pages they’d like to return to later. Users can add or remove items they’ve saved as needed.">
95106
<Page Name="Wishlist Page" Description="This page displays a list of items that an online shopper has saved to potentially purchase later." PageName="Views.Bookmarks.WishlistPage"/>
96-
<Page Name="Cart Page" IsUpdated="True" Description="This page displays a list of products as items added to a cart in a shopping application. The page also allows you to remove items from the shopping cart. " PageName="Views.Bookmarks.CartPage"/>
97-
<Page Name="Article Bookmarks Page" IsUpdated="True" Description="This page displays bookmarked articles in a list. Each list card carries the image, title, author name, created date, and estimated time to read the article." PageName="Views.Bookmarks.BookmarksPage"/>
107+
<Page Name="Cart Page" Description="This page displays a list of products as items added to a cart in a shopping application. The page also allows you to remove items from the shopping cart. " PageName="Views.Bookmarks.CartPage"/>
108+
<Page Name="Article Bookmarks Page" Description="This page displays bookmarked articles in a list. Each list card carries the image, title, author name, created date, and estimated time to read the article." PageName="Views.Bookmarks.BookmarksPage"/>
98109
</Category>
99110

100111
<Category Icon="history.png" Name="History" Description="Displays a list of recent actions performed by the user. It can also be used to show the recent transactions in financial apps or recent purchases in shopping apps. ">
@@ -116,17 +127,22 @@
116127
</Category>
117128

118129
<Category Icon="tracking.png" Name="Tracking" Description="Displays various trackings like train status, product delivery status, and more.">
119-
<Page Name="Product Delivery Tracking Page" Description="This page displays a live train’s present status with the estimated time of arrival at a specified destination." PageName="Views.Tracking.ProductDeliveryTrackingPage"/>
130+
<Page Name="Prodcut Delivery Tracking Page" Description="This page displays a live train’s present status with the estimated time of arrival at a specified destination." PageName="Views.Tracking.ProductDeliveryTrackingPage"/>
120131
</Category>
121132

122-
<Category Icon="dashboard.png" Name="Dashboard" IsUpdated="True" Description="A beautifully presented interface relevant to common real-world use cases.">
133+
<Category Icon="dashboard.png" Name="Dashboard" Description="A beautifully presented interface relevant to common real-world use cases.">
123134
<Page Name="Stock Overview Page" Description="This page displays a dashboard for stock market data visualization." PageName="Views.Dashboard.StockOverviewPage"/>
124-
<Page Name="Health Care Page" IsNew="True" Description="This page displays a dashboard for health-care data visualization." PageName="Views.Dashboard.HealthCarePage"/>
135+
<Page Name="Health Care Page" Description="This page displays a dashboard for health-care data visualization." PageName="Views.Dashboard.HealthCarePage"/>
125136
</Category>
126137

127-
<Category Icon="setting.png" Name="Settings" IsUpdated="True" Description="Display various types of settings pages.">
138+
<Category Icon="setting.png" Name="Settings" Description="Display various types of settings pages.">
128139
<Page Name="Setting Page" Description="This page displays a simple settings page that includes account, notification, and support settings." PageName="Views.Settings.SettingPage"/>
129-
<Page Name="Help Page" IsNew="True" Description="This page displays a simple help page that provides help with recent orders and other queries." PageName="Views.Settings.HelpPage"/>
140+
<Page Name="Help Page" Description="This page displays a simple help page that provides help with recent orders and other queries." PageName="Views.Settings.HelpPage"/>
130141
</Category>
131142

132-
</Samples>
143+
<Category Icon="notification.png" Name="Notification" IsUpdated="True" Description="Display various types of notification pages.">
144+
<Page Name="Task Notification Page" IsNew="True" Description="This page displays notifications for tasks, showing descriptions, task IDs, and times." PageName="Views.Notification.TaskNotificationPage"/>
145+
<Page Name="Social Notification Page" IsNew="True" Description="This page displays social media notifications, containing a list of recent notifications and a list of earlier ones." PageName="Views.Notification.SocialNotificationPage"/>
146+
</Category>
147+
148+
</Samples>

EssentialUIKit/AppLayout/ViewModels/HomePageViewModel.cs

+3-22
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,6 @@ public class HomePageViewModel
1515

1616
public List<Category> Templates { get; set; }
1717

18-
public Category SelectedCategory
19-
{
20-
set
21-
{
22-
if (value == null) return;
23-
24-
//XmlSerializer xmlSerializer = new XmlSerializer(typeof(Category));
25-
26-
//using (StringWriter textWriter = new StringWriter())
27-
//{
28-
// xmlSerializer.Serialize(textWriter, value);
29-
30-
// var url = HttpUtility.UrlEncode(textWriter.ToString());
31-
32-
// Shell.Current.GoToAsync($@"templatepage?data1={url}", true);
33-
//}
34-
}
35-
}
36-
3718
/// <summary>
3819
/// Initializes a new instance for the <see cref="HomePageViewModel" /> class.
3920
/// </summary>
@@ -56,7 +37,7 @@ private void PopulateList()
5637
xmlReader.Read();
5738
Category category = null;
5839
var hasAdded = false;
59-
var runtimePlatform = Device.RuntimePlatform.ToLower();
40+
var runtimePlatform = Device.RuntimePlatform.ToUpperInvariant();
6041

6142
while (!xmlReader.EOF)
6243
{
@@ -72,7 +53,7 @@ private void PopulateList()
7253
}
7354

7455
var platform = GetDataFromXmlReader(xmlReader, "Platform");
75-
if (string.IsNullOrEmpty(platform) || platform.ToLower().Contains(runtimePlatform))
56+
if (string.IsNullOrEmpty(platform) || platform.ToUpperInvariant().Contains(runtimePlatform))
7657
{
7758
var categoryName = GetDataFromXmlReader(xmlReader, "Name");
7859
var description = GetDataFromXmlReader(xmlReader, "Description");
@@ -110,7 +91,7 @@ private void PopulateList()
11091
{
11192
var platform = GetDataFromXmlReader(xmlReader, "Platform");
11293

113-
if (string.IsNullOrEmpty(platform) || platform.ToLower().Contains(runtimePlatform))
94+
if (string.IsNullOrEmpty(platform) || platform.ToUpperInvariant().Contains(runtimePlatform))
11495
{
11596
var templateName = GetDataFromXmlReader(xmlReader, "Name");
11697
var description = GetDataFromXmlReader(xmlReader, "Description");

EssentialUIKit/AppLayout/ViewModels/TemplatePageViewModel.cs

-18
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,6 @@ public class TemplatePageViewModel : INotifyPropertyChanged
3131

3232
#region Public Properties
3333

34-
/// <summary>
35-
/// Sets the query data.
36-
/// </summary>
37-
public string QueryData
38-
{
39-
set
40-
{
41-
var decodedString = HttpUtility.UrlDecode(value);
42-
43-
var serializer = new XmlSerializer(typeof(Category));
44-
45-
using (var reader = new StringReader(decodedString))
46-
{
47-
this.SelectedCategory = (Category)serializer.Deserialize(reader);
48-
}
49-
}
50-
}
51-
5234
/// <summary>
5335
/// Gets or sets the selected category.
5436
/// </summary>

EssentialUIKit/AppLayout/Views/TemplateHostPage.xaml.cs

-10
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace EssentialUIKit.AppLayout.Views
99
{
1010
[Preserve(AllMembers = true)]
11-
[QueryProperty("QueryData", "data")]
1211
[XamlCompilation(XamlCompilationOptions.Compile)]
1312
public partial class TemplateHostPage
1413
{
@@ -37,15 +36,6 @@ public TemplateHostPage(Template selectedTemplate)
3736

3837
#endregion
3938

40-
#region Properties
41-
42-
public string QueryData
43-
{
44-
set => this.LoadPage(value);
45-
}
46-
47-
#endregion
48-
4939
#region Methods
5040

5141
protected override void OnSizeAllocated(double width, double height)

EssentialUIKit/Behaviors/Dashboard/SegmentedControlSelectionBehavior.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ public class SegmentedControlSelectionBehavior : Behavior<SfSegmentedControl>
1919
/// Gets or sets the CommandProperty, and it is a bindable property.
2020
/// </summary>
2121
public static readonly BindableProperty CommandProperty =
22-
BindableProperty.Create("Command", typeof(ICommand), typeof(SegmentedControlCommandBehavior));
22+
BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(SegmentedControlCommandBehavior));
2323

2424
/// <summary>
2525
/// Gets or sets the CommandParameterProperty, and it is a bindable property.
2626
/// </summary>
2727
public static readonly BindableProperty CommandParameterProperty =
28-
BindableProperty.Create("CommandParameter", typeof(object), typeof(SegmentedControlCommandBehavior));
28+
BindableProperty.Create(nameof(CommandParameter), typeof(object), typeof(SegmentedControlCommandBehavior));
2929

3030
/// <summary>
3131
/// Gets or sets the ParentBindingContextProperty, and it is a bindable property.
3232
/// </summary>
3333
public static readonly BindableProperty ParentBindingContextProperty =
34-
BindableProperty.Create("ParentBindingContext", typeof(object), typeof(SegmentedControlCommandBehavior));
34+
BindableProperty.Create(nameof(ParentBindingContext), typeof(object), typeof(SegmentedControlCommandBehavior));
3535

3636
/// <summary>
3737
/// Gets or sets the Command.

EssentialUIKit/Behaviors/ECommerce/ExpanderBehavior.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ public class ExpanderBehavior : Behavior<SfExpander>
1818
/// Gets or sets the CommandProperty, and it is a bindable property.
1919
/// </summary>
2020
public static readonly BindableProperty CommandProperty =
21-
BindableProperty.Create("Command", typeof(ICommand), typeof(ExpanderBehavior));
21+
BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(ExpanderBehavior));
2222

2323
/// <summary>
2424
/// Gets or sets the CommandParameterProperty, and it is a bindable property.
2525
/// </summary>
2626
public static readonly BindableProperty CommandParameterProperty =
27-
BindableProperty.Create("CommandParameter", typeof(object), typeof(ExpanderBehavior));
27+
BindableProperty.Create(nameof(CommandParameter), typeof(object), typeof(ExpanderBehavior));
2828

2929
/// <summary>
3030
/// Gets or sets the Command.

EssentialUIKit/Behaviors/ECommerce/FrameTapBehavior.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class FrameTapBehavior : Behavior<Frame>
2121
/// Gets or sets the CommandParameterProperty, and it is a bindable property.
2222
/// </summary>
2323
public static readonly BindableProperty CommandParameterProperty =
24-
BindableProperty.Create("CommandParameter", typeof(object), typeof(FrameTapBehavior));
24+
BindableProperty.Create(nameof(CommandParameter), typeof(object), typeof(FrameTapBehavior));
2525

2626
/// <summary>
2727
/// Gets or sets the CommandParameter.

0 commit comments

Comments
 (0)