Skip to content

Commit

Permalink
Make text in ListBox wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
peng1999 committed Jul 30, 2019
1 parent ddae492 commit da7c07d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion V5DLLAdapter/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@
</DockPanel>
<Button x:Name="startStopBtn" Content="启动/停止" Grid.Row="2" Grid.Column="2" Click="StartStopBtn_Click" Margin="10,0,0,0"/>
</Grid>
<ListBox x:Name="logItems" Margin="20,0,20,20" ItemsSource="{Binding LogOutput, Mode=OneWay}" Background="Black">
<ListBox x:Name="logItems" Margin="20,0,20,20" ItemsSource="{Binding LogOutput, Mode=OneWay}" Background="Black" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBox.Resources>
<Style TargetType="TextBlock">
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
</ListBox.Resources>
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Foreground" Value="{Binding Color}" />
Expand Down

0 comments on commit da7c07d

Please sign in to comment.