2025-01-07 19:14:42 +03:00
|
|
|
<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:viewModels="clr-namespace:Nebula.Launcher.ViewModels"
|
2025-01-14 22:10:16 +03:00
|
|
|
xmlns:popup="clr-namespace:Nebula.Launcher.ViewModels.Popup"
|
2025-07-02 21:32:51 +03:00
|
|
|
xmlns:models="clr-namespace:Nebula.Launcher.Models"
|
2025-01-07 19:14:42 +03:00
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
|
x:Class="Nebula.Launcher.Views.Popup.LogPopupView"
|
2025-01-14 22:10:16 +03:00
|
|
|
x:DataType="popup:LogPopupModelView">
|
2025-01-07 19:14:42 +03:00
|
|
|
<Design.DataContext>
|
2025-01-14 22:10:16 +03:00
|
|
|
<popup:LogPopupModelView />
|
2025-01-07 19:14:42 +03:00
|
|
|
</Design.DataContext>
|
2025-01-14 22:10:16 +03:00
|
|
|
|
2025-01-07 19:14:42 +03:00
|
|
|
<ScrollViewer Margin="10" Padding="0,0,8,0">
|
|
|
|
|
<ItemsControl
|
|
|
|
|
Background="#00000000"
|
|
|
|
|
ItemsSource="{Binding Logs}"
|
|
|
|
|
Padding="0">
|
|
|
|
|
<ItemsControl.ItemTemplate>
|
2025-07-02 21:32:51 +03:00
|
|
|
<DataTemplate DataType="{x:Type models:LogInfo}">
|
2025-01-07 19:14:42 +03:00
|
|
|
<Border CornerRadius="5" Margin="0,0,0,5">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Spacing="5" Margin="0">
|
|
|
|
|
<Border MinWidth="100"
|
2025-01-14 22:10:16 +03:00
|
|
|
Background="{Binding CategoryColor}"
|
2025-01-18 18:20:11 +03:00
|
|
|
CornerRadius="5"
|
|
|
|
|
Padding="10,0,12,0" >
|
2025-01-14 22:10:16 +03:00
|
|
|
<Label FontSize="15" VerticalAlignment="Center">
|
|
|
|
|
<TextBlock Text="{Binding Category }" />
|
2025-01-07 19:14:42 +03:00
|
|
|
</Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<Label FontSize="12" VerticalAlignment="Center">
|
2025-01-14 22:10:16 +03:00
|
|
|
<TextBlock Text="{Binding Message }" />
|
2025-01-07 19:14:42 +03:00
|
|
|
</Label>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
2025-01-14 22:10:16 +03:00
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</UserControl>
|