我有一个要显示在菜单上的字符串列表。我使用了一个列表框,它的工作原理是它不会让我突出显示或复制/粘贴。
这是我的 XAML
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="500"/>
<ColumnDefinition Width="500"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="450"/>
<RowDefinition Height="318"/>
</Grid.RowDefinitions>
<ListBox Grid.Row="1" Grid.Column="1" x:Name="uiOCRData" />
</Grid>
这是我在 C# 中所拥有的
List<string> lines = new List<string>();
uiOCRData.ItemsSource = lines;
谢谢您的帮助!
catspeake
相关分类