-
Notifications
You must be signed in to change notification settings - Fork 0
/
OurUserControl.axaml
32 lines (32 loc) · 1.34 KB
/
OurUserControl.axaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="AvaloniaControls.OurUserControl"
xmlns:namespace="using:AvaloniaControls"
x:DataType="namespace:OurViewModel">
<DockPanel
Background="#151515"
LastChildFill="True">
<Label DockPanel.Dock="Top" Content="User Control \W/"/>
<Border
Margin="4"
Padding="4"
CornerRadius="4"
Background="#252525">
<ItemsControl ItemsSource="{Binding }">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<DataTemplates>
<DataTemplate x:DataType="namespace:TemplateViewModel">
<!-- Place for our templated control -->
</DataTemplate>
</DataTemplates>
</ItemsControl>
</Border>
</DockPanel>
</UserControl>