摘要: <Window x:Class="WpfApp23.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-10-25 01:34 FredGrit 阅读(19) 评论(0) 推荐(0)
摘要: <ListBox Grid.Row="0" Grid.Column="0" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=Prope 阅读全文
posted @ 2024-10-25 01:04 FredGrit 阅读(22) 评论(0) 推荐(0)
摘要: private int selectedIdx; public int SelectedIdx { get { return selectedIdx; } set { if(value!=selectedIdx) { selectedIdx = value; OnPropertyChanged(na 阅读全文
posted @ 2024-10-25 00:36 FredGrit 阅读(57) 评论(0) 推荐(0)
摘要: <DataGridTemplateColumn Header="Image"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Border Width="{Binding ActualWidth,RelativeSource={Relat 阅读全文
posted @ 2024-10-25 00:32 FredGrit 阅读(18) 评论(0) 推荐(0)