- <UserControl
- x:Class="BPASmartClient.CustomResource.Pages.View.DebugLogView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.CustomResource.Pages.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.CustomResource.Pages.ViewModel"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:DebugLogViewModel />
- </UserControl.DataContext>
-
- <Grid>
- <ScrollViewer
- Margin="20"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden">
-
- <ItemsControl ItemsSource="{Binding MessageModels}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock
- FontFamily="黑体"
- FontSize="16"
- Foreground="{Binding Forground}"
- LineHeight="30"
- Text="{Binding LogInfo}"
- TextWrapping="Wrap">
- <!--<TextBlock.Effect>
- <DropShadowEffect
- Direction="0"
- Opacity="0.5"
- ShadowDepth="5"
- Color="#20aefe" />
- </TextBlock.Effect>-->
- </TextBlock>
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
-
-
- </ScrollViewer>
-
- </Grid>
- </UserControl>
|