上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 120 下一页
摘要: //xaml <Window.Resources> <local:SizeConverter x:Key="sizeConverter"/> <local:BooksData x:Key="booksData"/> </Window.Resources> <Grid> <DataGrid Grid. 阅读全文
posted @ 2024-11-03 17:37 FredGrit 阅读(15) 评论(0) 推荐(0)
摘要: public class DelCommand : ICommand { public event EventHandler CanExecuteChanged { add { CommandManager.RequerySuggested += value; } remove { CommandM 阅读全文
posted @ 2024-11-03 17:18 FredGrit 阅读(13) 评论(0) 推荐(0)
摘要: <DataGrid ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" CanUserAddRows="False" AutoGenerateColumns="False" S 阅读全文
posted @ 2024-11-03 15:41 FredGrit 阅读(40) 评论(0) 推荐(0)
摘要: System.OutOfMemoryException HResult=0x8007000E Message=Exception of type 'System.OutOfMemoryException' was thrown. Source=mscorlib StackTrace: at Syst 阅读全文
posted @ 2024-10-31 23:22 FredGrit 阅读(45) 评论(0) 推荐(0)
摘要: <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)
摘要: System.NotSupportedException HResult=0x80131515 Message=No imaging component suitable to complete this operation was found. Source=PresentationCore St 阅读全文
posted @ 2024-10-24 23:38 FredGrit 阅读(50) 评论(0) 推荐(0)
摘要: private void ExportSelectedCmdExecuted(object obj) { var items = (System.Collections.IList)obj; if (items != null && items.Count > 0) { var booksList 阅读全文
posted @ 2024-10-11 00:32 FredGrit 阅读(59) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 120 下一页