Skip to content

Commit 6c203da

Browse files
author
Rawoof
committed
Added new screens.
1 parent 63e2a59 commit 6c203da

File tree

174 files changed

+17196
-108
lines changed

Some content is hidden

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

174 files changed

+17196
-108
lines changed
2.59 KB
Loading
2.87 KB
Loading
3.27 KB
Loading
3.01 KB
Loading
3.53 KB
Loading
2.71 KB
Loading
3.37 KB
Loading
3.47 KB
Loading

EssentialUIKit/AppLayout/TemplateList.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
</Category>
1717

1818
<Category Icon="catalog.png" Name="Catalog" Description="Let the users select from the list of items that includes titles, brief descriptions, and photos.">
19-
<Page Name="Category Tile Page" Description="Displaying an image with a title is a scenario in most applications, and this page categorizes product images and provides a title for the category." PageName="Views.ECommerce.CategoryTilePage"/>
20-
<Page Name="Catalog Tile Page" Description="In any e-commerce application, showcasing a product with a rating and other details is mandatory. This page showcases a set of products with a short description, price, and user rating. " PageName="Views.ECommerce.CatalogTilePage"/>
21-
<Page Name="Catalog List Page" Description="Displaying an image with some information is a scenario in many applications, and this page showcases product images with their titles, prices, and discounted prices." PageName="Views.ECommerce.CatalogListPage"/>
19+
<Page Name="Category Tile Page" Description="Displaying an image with a title is a scenario in most applications, and this page categorizes product images and provides a title for the category." PageName="Views.Catalog.CategoryTilePage"/>
20+
<Page Name="Catalog Tile Page" Description="In any e-commerce application, showcasing a product with a rating and other details is mandatory. This page showcases a set of products with a short description, price, and user rating. " PageName="Views.Catalog.CatalogTilePage"/>
21+
<Page Name="Catalog List Page" Description="Displaying an image with some information is a scenario in many applications, and this page showcases product images with their titles, prices, and discounted prices." PageName="Views.Catalog.CatalogListPage"/>
2222
<Page Name="Article List Page" Description="This page displays featured articles with a rotator on top and the remaining stories displayed as a list. Each list card carries the image, title, author name, created date, and estimated time to read the article." PageName="Views.Article.ArticleListPage"/>
2323
<Page Name="Article Tile Page" Description="This page displays featured articles with a rotator on top and the remaining stories displayed as tiles. Each tile card contains the image, title, author name, created date, and estimated time to read the article." PageName="Views.Article.ArticleTilePage"/>
2424
</Category>
2525

2626
<Category Icon="detail.png" IsUpdated="True" Name="Detail" Description="Display detailed and relevant information with random layouts.">
27-
<Page Name="Product Detail Page" Description="This page showcases the complete details of a product with a rotator control to provide different images of the product, available size variants, product description, price, discount, and reviews." PageName="Views.ECommerce.DetailPage"/>
27+
<Page Name="Product Detail Page" Description="This page showcases the complete details of a product with a rotator control to provide different images of the product, available size variants, product description, price, discount, and reviews." PageName="Views.Detail.DetailPage"/>
2828
<Page Name="Feedback Detail Page" Description="This page displays the full-page product image and user feedback consisting of a short description and rating." PageName="Views.Feedback.FeedbackDetailPage"/>
2929
<Page Name="Article Detail Page" IsNew="True" Description="This page displays an article with a title, image, and text." PageName="Views.Article.DetailPage"/>
3030
</Category>
@@ -74,16 +74,16 @@
7474
</Category>
7575

7676
<Category Icon="transaction.png" IsUpdated="True" Name="Transaction" Description="Pages for communicating the status of a purchase through an online shop to the user. This category includes pages for successful payments and payment failures.">
77-
<Page Name="Checkout Page" Description="This page provides options to choose between different addresses to deliver a product to and receives payment information from the user. " PageName="Views.ECommerce.CheckoutPage"/>
77+
<Page Name="Checkout Page" Description="This page provides options to choose between different addresses to deliver a product to and receives payment information from the user. " PageName="Views.Transaction.CheckoutPage"/>
7878
<Page Name="Payment Success Page" IsNew="True" Description="This page notifies the user that their payment was successful." PageName="Views.Transaction.PaymentSuccessPage"/>
7979
<Page Name="Payment Failure Page" IsNew="True" Description="This page notifies the user that their payment was not successful." PageName="Views.Transaction.PaymentFailurePage"/>
80-
<Page Name="Delivery Page" Description="View delivery information like address and price details" PageName="Views.ECommerce.DeliveryPage" Platform="UWP"/>
81-
<Page Name="Payment Page" Description="View card and payment details" PageName="Views.ECommerce.PaymentPage" Platform="UWP"/>
80+
<Page Name="Delivery Page" Description="View delivery information like address and price details" PageName="Views.Transaction.DeliveryPage" Platform="UWP"/>
81+
<Page Name="Payment Page" Description="View card and payment details" PageName="Views.Transaction.PaymentPage" Platform="UWP"/>
8282
</Category>
8383

8484
<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.">
8585
<Page Name="Wishlist Page" IsNew="True" Description="This page displays a list of items that an online shopper has saved to potentially purchase later." PageName="Views.Bookmarks.WishlistPage"/>
86-
<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.ECommerce.CartPage"/>
86+
<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"/>
8787
<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.Article.BookmarksPage"/>
8888
</Category>
8989

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
using EssentialUIKit.Controls;
2+
using System;
3+
using System.Linq;
4+
using Xamarin.Forms;
5+
using Xamarin.Forms.Internals;
6+
7+
namespace EssentialUIKit.Behaviors
8+
{
9+
/// <summary>
10+
/// This class extends the behavior of the BorderlessEntryBehavior control to invoke a command when an event occurs.
11+
/// </summary>
12+
[Preserve(AllMembers = true)]
13+
public class BorderlessEntryCVVBehavior : Behavior<BorderlessEntry>
14+
{
15+
#region Properties
16+
17+
/// <summary>
18+
/// Gets the BorderlessEntry.
19+
/// </summary>
20+
public BorderlessEntry BorderlessEntry { get; private set; }
21+
22+
#endregion
23+
24+
#region Methods
25+
26+
/// <summary>
27+
/// Invoked when adding the borderlessEntry to view.
28+
/// </summary>
29+
/// <param name="borderlessEntry">The borderlessEntry</param>
30+
protected override void OnAttachedTo(BorderlessEntry borderlessEntry)
31+
{
32+
base.OnAttachedTo(borderlessEntry);
33+
this.BorderlessEntry = borderlessEntry;
34+
borderlessEntry.BindingContextChanged += this.OnBindingContextChanged;
35+
borderlessEntry.TextChanged += this.OnTextChanged;
36+
}
37+
38+
/// <summary>
39+
/// Invoked when exit from the view.
40+
/// </summary>
41+
/// <param name="borderlessEntry">The borderlessEntry</param>
42+
protected override void OnDetachingFrom(BorderlessEntry borderlessEntry)
43+
{
44+
base.OnDetachingFrom(borderlessEntry);
45+
borderlessEntry.BindingContextChanged -= this.OnBindingContextChanged;
46+
borderlessEntry.TextChanged -= this.OnTextChanged;
47+
this.BorderlessEntry = null;
48+
}
49+
50+
/// <summary>
51+
/// Invoked when comboBox binding context is changed.
52+
/// </summary>
53+
protected override void OnBindingContextChanged()
54+
{
55+
base.OnBindingContextChanged();
56+
this.BindingContext = this.BorderlessEntry.BindingContext;
57+
}
58+
59+
/// <summary>
60+
/// Invoked when entry text is changed.
61+
/// </summary>
62+
/// <param name="sender">The borderlessEntry</param>
63+
/// <param name="e">The Text Changed Event args</param>
64+
private void OnTextChanged(object sender, TextChangedEventArgs e)
65+
{
66+
if (string.IsNullOrWhiteSpace(e.NewTextValue))
67+
{
68+
return;
69+
}
70+
71+
var isValid = e.NewTextValue.ToCharArray().All(char.IsDigit);
72+
((Entry)sender).Text = isValid ? e.NewTextValue : e.NewTextValue.Remove(e.NewTextValue.Length - 1);
73+
}
74+
75+
/// <summary>
76+
/// Invoked when binding context is changed.
77+
/// </summary>
78+
/// <param name="sender">The sender</param>
79+
/// <param name="e">The event args</param>
80+
private void OnBindingContextChanged(object sender, EventArgs e)
81+
{
82+
this.OnBindingContextChanged();
83+
}
84+
85+
#endregion
86+
}
87+
}

0 commit comments

Comments
 (0)