add StepEntry view
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
32f1fb914b
commit
99c3094987
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="ShoopNCook.Views.IngredientInput">
|
||||
x:Class="ShoopNCook.Views.IngredientEntry">
|
||||
<Border
|
||||
Stroke="{StaticResource BackgroundSecondary}"
|
||||
StrokeThickness="1"
|
@ -0,0 +1,9 @@
|
||||
namespace ShoopNCook.Views;
|
||||
|
||||
public partial class IngredientEntry : ContentView
|
||||
{
|
||||
public IngredientEntry()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
namespace ShoopNCook.Views;
|
||||
|
||||
public partial class IngredientInput : ContentView
|
||||
{
|
||||
public IngredientInput()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="ShoopNCook.Views.StepEntry">
|
||||
<VerticalStackLayout>
|
||||
<Label
|
||||
Style="{StaticResource h3}"
|
||||
Text="Step"/>
|
||||
<Label
|
||||
Style="{StaticResource h3}"
|
||||
x:Name="OrdinalLabel"
|
||||
Text="{Binding Ordinal}"/>
|
||||
|
||||
<Entry
|
||||
Style="{StaticResource UserInput}"/>
|
||||
</VerticalStackLayout>
|
||||
</ContentView>
|
@ -0,0 +1,15 @@
|
||||
namespace ShoopNCook.Views;
|
||||
|
||||
public partial class StepEntry : ContentView
|
||||
{
|
||||
private readonly BindableProperty OrdinalProperty = BindableProperty.Create(nameof(OrdinalLabel), typeof(uint), typeof(StepEntry), default(uint));
|
||||
public StepEntry()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public uint Ordinal {
|
||||
get => (uint)GetValue(OrdinalProperty);
|
||||
set => SetValue(OrdinalProperty, value);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue