-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from ZeroGachis/fix/expander-cart-list
Fix/expander cart list
- Loading branch information
Showing
26 changed files
with
557 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Windows.Input; | ||
using Xamarin.Forms; | ||
|
||
namespace Smartway.UiComponent.Sample.Buttons | ||
{ | ||
public class ButtonViewModel : ViewModel | ||
{ | ||
public ICommand ScanCommand => new Command((param) => | ||
{ | ||
var message = "Scan is tapped"; | ||
DependencyService.Get<INotifyMessage>().ShortAlert(message); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Smartway.UiComponent.Sample/ExpanderCard/ViewModels/ExpanderCardSampleViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Collections.ObjectModel; | ||
using Smartway.UiComponent.Cards; | ||
|
||
namespace Smartway.UiComponent.Sample.ExpanderCard.ViewModels | ||
{ | ||
class ExpanderCardSampleViewModel : ViewModel | ||
{ | ||
public ExpanderCardSampleViewModel() | ||
{ | ||
Articles = new ObservableCollection<object>(); | ||
for (var i = 0; i < 50; i++) | ||
{ | ||
Articles.Add(new DummyArticle | ||
{ | ||
Label = "Article "+i, | ||
IsMultilocation = true, | ||
IsOnShortage = true, | ||
Price = "0,3€", | ||
Gencode = "1234567891234", | ||
NavigationParameter = "Article 5" | ||
}); | ||
} | ||
} | ||
|
||
public ObservableCollection<object> Articles { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:d="http://xamarin.com/schemas/2014/forms/design" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:layouts="clr-namespace:Smartway.UiComponent.Layouts;assembly=Smartway.UiComponent" | ||
mc:Ignorable="d" | ||
x:Class="Smartway.UiComponent.Sample.Layouts.LayoutsSample"> | ||
<ContentPage.Content> | ||
<layouts:ScannableLayout> | ||
<layouts:ScannableLayout.LayoutContent> | ||
<Label Text="Example layout avec bouton scan sur la page" | ||
VerticalOptions="CenterAndExpand" | ||
HorizontalOptions="CenterAndExpand" /> | ||
</layouts:ScannableLayout.LayoutContent> | ||
</layouts:ScannableLayout> | ||
</ContentPage.Content> | ||
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using Xamarin.Forms; | ||
using Xamarin.Forms.Xaml; | ||
|
||
namespace Smartway.UiComponent.Sample.Layouts | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
public partial class LayoutsSample : ContentPage | ||
{ | ||
public LayoutsSample() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Smartway.UiComponent.Sample/SectionSheet/ViewModels/SectionSheetSampleViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ContentView xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:d="http://xamarin.com/schemas/2014/forms/design" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:utils="clr-namespace:Smartway.UiComponent.Utils;assembly=Smartway.UiComponent" | ||
mc:Ignorable="d" | ||
x:Class="Smartway.UiComponent.Buttons.ScanButton" | ||
x:Name="Self" | ||
> | ||
<Frame CornerRadius="32" BackgroundColor="#27304A"> | ||
<Frame.GestureRecognizers> | ||
<TapGestureRecognizer Command="{Binding Source={Reference Self}, Path=Command}"></TapGestureRecognizer> | ||
</Frame.GestureRecognizers> | ||
<Image Source="{utils:ImageResource Source=Smartway.UiComponent.Resources.Images.icon_scan.png}" /> | ||
</Frame> | ||
</ContentView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Windows.Input; | ||
using Xamarin.Forms; | ||
using Xamarin.Forms.Xaml; | ||
|
||
namespace Smartway.UiComponent.Buttons | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
public partial class ScanButton | ||
{ | ||
public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(ScanButton)); | ||
|
||
public ScanButton() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public ICommand Command | ||
{ | ||
get => (ICommand)GetValue(CommandProperty); | ||
set => SetValue(CommandProperty, value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.