diff --git a/demo/Ursa.Demo/Pages/ButtonGroupDemo.axaml b/demo/Ursa.Demo/Pages/ButtonGroupDemo.axaml new file mode 100644 index 0000000..510c423 --- /dev/null +++ b/demo/Ursa.Demo/Pages/ButtonGroupDemo.axaml @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/demo/Ursa.Demo/Pages/ButtonGroupDemo.axaml.cs b/demo/Ursa.Demo/Pages/ButtonGroupDemo.axaml.cs new file mode 100644 index 0000000..695bcd1 --- /dev/null +++ b/demo/Ursa.Demo/Pages/ButtonGroupDemo.axaml.cs @@ -0,0 +1,15 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Markup.Xaml; +using Ursa.Demo.ViewModels; + +namespace Ursa.Demo.Pages; + +public partial class ButtonGroupDemo : UserControl +{ + public ButtonGroupDemo() + { + InitializeComponent(); + this.DataContext = new ButtonGroupViewModel(); + } +} \ No newline at end of file diff --git a/demo/Ursa.Demo/ViewModels/ButtonGroupViewModel.cs b/demo/Ursa.Demo/ViewModels/ButtonGroupViewModel.cs new file mode 100644 index 0000000..aeb2400 --- /dev/null +++ b/demo/Ursa.Demo/ViewModels/ButtonGroupViewModel.cs @@ -0,0 +1,11 @@ +using System.Collections.ObjectModel; + +namespace Ursa.Demo.ViewModels; + +public class ButtonGroupViewModel: ViewModelBase +{ + public ObservableCollection Items { get; set; } = new ObservableCollection() + { + "Ding", "Otter", "Husky", "Mr. 17", "Cass" + }; +} \ No newline at end of file diff --git a/demo/Ursa.Demo/Views/MainWindow.axaml b/demo/Ursa.Demo/Views/MainWindow.axaml index ee33626..d6da845 100644 --- a/demo/Ursa.Demo/Views/MainWindow.axaml +++ b/demo/Ursa.Demo/Views/MainWindow.axaml @@ -29,6 +29,9 @@ + + + diff --git a/src/Ursa.Themes.Semi/Controls/ButtonGroup.axaml b/src/Ursa.Themes.Semi/Controls/ButtonGroup.axaml new file mode 100644 index 0000000..15a70c1 --- /dev/null +++ b/src/Ursa.Themes.Semi/Controls/ButtonGroup.axaml @@ -0,0 +1,73 @@ + + + + + +