diff --git a/Smartway.UiComponent.Sample/Layouts/LayoutsSample.xaml b/Smartway.UiComponent.Sample/Layouts/LayoutsSample.xaml
new file mode 100644
index 0000000..fa8f29a
--- /dev/null
+++ b/Smartway.UiComponent.Sample/Layouts/LayoutsSample.xaml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Smartway.UiComponent.Sample/Layouts/LayoutsSample.xaml.cs b/Smartway.UiComponent.Sample/Layouts/LayoutsSample.xaml.cs
new file mode 100644
index 0000000..5231d8e
--- /dev/null
+++ b/Smartway.UiComponent.Sample/Layouts/LayoutsSample.xaml.cs
@@ -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();
+ }
+ }
+}
\ No newline at end of file
diff --git a/Smartway.UiComponent.Sample/MainPage.xaml b/Smartway.UiComponent.Sample/MainPage.xaml
index b703737..bb4add2 100644
--- a/Smartway.UiComponent.Sample/MainPage.xaml
+++ b/Smartway.UiComponent.Sample/MainPage.xaml
@@ -8,16 +8,19 @@
x:Class="Smartway.UiComponent.Sample.MainPage"
x:DataType="sample:MainPageViewModel"
x:Name="Self">
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Smartway.UiComponent.Sample/MainPageViewModel.cs b/Smartway.UiComponent.Sample/MainPageViewModel.cs
index df422b7..300bf4d 100644
--- a/Smartway.UiComponent.Sample/MainPageViewModel.cs
+++ b/Smartway.UiComponent.Sample/MainPageViewModel.cs
@@ -52,12 +52,17 @@ public class MainPageViewModel : ViewModel
public ICommand Button => new Command(async () =>
{
- await NavigateTo(new Buttons.Button());
+ await NavigateTo(new Buttons.Button{BindingContext = new ButtonViewModel()});
});
public ICommand Inputs => new Command(async () =>
{
await NavigateTo(new Inputs.Views.Inputs{ BindingContext = new InputsViewModel()});
});
+
+ public ICommand Layouts => new Command(async () =>
+ {
+ await NavigateTo(new Layouts.LayoutsSample());
+ });
}
}
diff --git a/Smartway.UiComponent.Sample/Smartway.UiComponent.Sample.csproj b/Smartway.UiComponent.Sample/Smartway.UiComponent.Sample.csproj
index 5500970..2905a8e 100644
--- a/Smartway.UiComponent.Sample/Smartway.UiComponent.Sample.csproj
+++ b/Smartway.UiComponent.Sample/Smartway.UiComponent.Sample.csproj
@@ -39,6 +39,9 @@
MSBuild:UpdateDesignTimeXaml
+
+ MSBuild:UpdateDesignTimeXaml
+
MSBuild:UpdateDesignTimeXaml
diff --git a/Smartway.UiComponent/Layouts/ScannableLayout.xaml b/Smartway.UiComponent/Layouts/ScannableLayout.xaml
new file mode 100644
index 0000000..30683d3
--- /dev/null
+++ b/Smartway.UiComponent/Layouts/ScannableLayout.xaml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Smartway.UiComponent/Layouts/ScannableLayout.xaml.cs b/Smartway.UiComponent/Layouts/ScannableLayout.xaml.cs
new file mode 100644
index 0000000..303c51d
--- /dev/null
+++ b/Smartway.UiComponent/Layouts/ScannableLayout.xaml.cs
@@ -0,0 +1,22 @@
+using Xamarin.Forms;
+using Xamarin.Forms.Xaml;
+
+namespace Smartway.UiComponent.Layouts
+{
+ [ContentProperty("LayoutContent")]
+ [XamlCompilation(XamlCompilationOptions.Compile)]
+ public partial class ScannableLayout
+ {
+ public static readonly BindableProperty LayoutContentProperty = BindableProperty.Create(nameof(LayoutContent), typeof(View), typeof(ScannableLayout));
+
+ public ScannableLayout()
+ {
+ InitializeComponent();
+ }
+ public View LayoutContent
+ {
+ get => (View)GetValue(LayoutContentProperty);
+ set => SetValue(LayoutContentProperty, value);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Smartway.UiComponent/Smartway.UiComponent.csproj b/Smartway.UiComponent/Smartway.UiComponent.csproj
index 946d3f3..dd3ff12 100644
--- a/Smartway.UiComponent/Smartway.UiComponent.csproj
+++ b/Smartway.UiComponent/Smartway.UiComponent.csproj
@@ -14,6 +14,7 @@
+
@@ -27,6 +28,7 @@
+
@@ -44,6 +46,9 @@
Button.xaml
+
+ %(Filename)
+
CustomExpander.xaml
@@ -53,6 +58,9 @@
BarcodeInput.xaml
+
+ %(Filename)
+
True
True