diff --git a/src/Ursa/Controls/Form/Form.cs b/src/Ursa/Controls/Form/Form.cs new file mode 100644 index 0000000..85260fa --- /dev/null +++ b/src/Ursa/Controls/Form/Form.cs @@ -0,0 +1,25 @@ +using Avalonia; +using Avalonia.Collections; +using Avalonia.Controls; +using Avalonia.Markup.Xaml.Templates; +using Avalonia.Metadata; + +namespace Ursa.Controls; + +public class Form: ItemsControl +{ + + public static readonly StyledProperty> ItemsProperty = AvaloniaProperty.Register>( + "Items"); + + public AvaloniaList Items + { + get => GetValue(ItemsProperty); + set => SetValue(ItemsProperty, value); + } + + public void AddChild(object child) + { + throw new NotImplementedException(); + } +} \ No newline at end of file diff --git a/src/Ursa/Controls/Form/FormGroup.cs b/src/Ursa/Controls/Form/FormGroup.cs new file mode 100644 index 0000000..0ed7f17 --- /dev/null +++ b/src/Ursa/Controls/Form/FormGroup.cs @@ -0,0 +1,9 @@ +using Avalonia.Controls; +using Avalonia.Controls.Primitives; + +namespace Ursa.Controls; + +public class FormGroup: HeaderedItemsControl, IFormItem +{ + +} \ No newline at end of file diff --git a/src/Ursa/Controls/Form/FormItem.cs b/src/Ursa/Controls/Form/FormItem.cs new file mode 100644 index 0000000..374ea49 --- /dev/null +++ b/src/Ursa/Controls/Form/FormItem.cs @@ -0,0 +1,8 @@ +using Avalonia.Controls.Primitives; + +namespace Ursa.Controls; + +public class FormItem: TemplatedControl, IFormItem +{ + +} \ No newline at end of file diff --git a/src/Ursa/Controls/Form/FormPanel.cs b/src/Ursa/Controls/Form/FormPanel.cs new file mode 100644 index 0000000..85029bb --- /dev/null +++ b/src/Ursa/Controls/Form/FormPanel.cs @@ -0,0 +1,6 @@ +namespace Ursa.Controls; + +public class FormPanel +{ + +} \ No newline at end of file diff --git a/src/Ursa/Controls/Form/IFormItem.cs b/src/Ursa/Controls/Form/IFormItem.cs new file mode 100644 index 0000000..1e726a9 --- /dev/null +++ b/src/Ursa/Controls/Form/IFormItem.cs @@ -0,0 +1,9 @@ +using Avalonia.Controls; +using Avalonia.Controls.Primitives; + +namespace Ursa.Controls; + +public interface IFormItem +{ + +} \ No newline at end of file