diff --git a/samples/ControlCatalog/ControlCatalog.csproj b/samples/ControlCatalog/ControlCatalog.csproj index 2a9f8f70de..0d3e139f2d 100644 --- a/samples/ControlCatalog/ControlCatalog.csproj +++ b/samples/ControlCatalog/ControlCatalog.csproj @@ -21,6 +21,9 @@ prompt 4 + + + @@ -44,6 +47,7 @@ Designer + Designer @@ -94,6 +98,9 @@ CarouselPage.xaml + + ContextMenuPage.xaml + CheckBoxPage.xaml @@ -117,7 +124,7 @@ SliderPage.xaml - + TreeViewPage.xaml diff --git a/samples/ControlCatalog/MainView.xaml b/samples/ControlCatalog/MainView.xaml index 24f631a5f4..b35b6ceff2 100644 --- a/samples/ControlCatalog/MainView.xaml +++ b/samples/ControlCatalog/MainView.xaml @@ -15,6 +15,7 @@ + diff --git a/samples/ControlCatalog/Pages/ContextMenuPage.xaml b/samples/ControlCatalog/Pages/ContextMenuPage.xaml new file mode 100644 index 0000000000..f029b1106f --- /dev/null +++ b/samples/ControlCatalog/Pages/ContextMenuPage.xaml @@ -0,0 +1,36 @@ + + + Context Menu + A right click menu that can be applied to any control. + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/samples/ControlCatalog/Pages/ContextMenuPage.xaml.cs b/samples/ControlCatalog/Pages/ContextMenuPage.xaml.cs new file mode 100644 index 0000000000..dc73bef07a --- /dev/null +++ b/samples/ControlCatalog/Pages/ContextMenuPage.xaml.cs @@ -0,0 +1,18 @@ +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace ControlCatalog.Pages +{ + public class ContextMenuPage : UserControl + { + public ContextMenuPage() + { + this.InitializeComponent(); + } + + private void InitializeComponent() + { + AvaloniaXamlLoader.Load(this); + } + } +} diff --git a/samples/ControlCatalog/Pages/MenuPage.xaml b/samples/ControlCatalog/Pages/MenuPage.xaml index 9c5591c849..36adcf1b8f 100644 --- a/samples/ControlCatalog/Pages/MenuPage.xaml +++ b/samples/ControlCatalog/Pages/MenuPage.xaml @@ -3,56 +3,33 @@ Menu A window menu - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file