about summary refs log tree commit diff
path: root/MatrixUtils.Desktop/Components/RoomListEntry.axaml
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixUtils.Desktop/Components/RoomListEntry.axaml')
-rw-r--r--MatrixUtils.Desktop/Components/RoomListEntry.axaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/MatrixUtils.Desktop/Components/RoomListEntry.axaml b/MatrixUtils.Desktop/Components/RoomListEntry.axaml
new file mode 100644
index 0000000..97e6fdc
--- /dev/null
+++ b/MatrixUtils.Desktop/Components/RoomListEntry.axaml
@@ -0,0 +1,16 @@
+<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"
+             xmlns:components="clr-namespace:MatrixUtils.Desktop.Components"
+             mc:Ignorable="d" d:DesignWidth="250" d:DesignHeight="32"
+             x:Class="MatrixUtils.Desktop.Components.RoomListEntry"
+             
+             x:DataType="components:RoomListEntry"
+             DataContext="{Binding $self}"
+             >
+    <StackPanel Orientation="Horizontal">
+        <Image MaxWidth="64" x:Name="RoomIcon"></Image>
+        <Label x:Name="RoomName" Content="{Binding Room.RoomName}"></Label>
+    </StackPanel>
+</UserControl>