上一页 1 2 3 4 5 6 ··· 93 下一页
摘要: namespace ConsoleApp4 { internal class Program { static void Main(string[] args) { string bigFile = @"C:\Users\fred\Downloads\ebook-master.zip"; ReadB 阅读全文
posted @ 2024-11-16 18:56 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要: public class ListBoxAutoScrollBehavior:Behavior<ListBox> { protected override void OnAttached() { base.OnAttached(); AssociatedObject.SelectionChanged 阅读全文
posted @ 2024-11-05 22:57 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要: <StackPanel.Resources> <Style x:Key="btnStyle" TargetType="{x:Type Button}"> <Setter Property="Button.FontSize" Value="50"/> <Setter Property="Button. 阅读全文
posted @ 2024-11-03 19:05 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要: //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 阅读(2) 评论(0) 推荐(0) 编辑
摘要: public class DelCommand : ICommand { public event EventHandler CanExecuteChanged { add { CommandManager.RequerySuggested += value; } remove { CommandM 阅读全文
posted @ 2024-11-03 17:18 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要: <DataGrid ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" CanUserAddRows="False" AutoGenerateColumns="False" S 阅读全文
posted @ 2024-11-03 15:41 FredGrit 阅读(3) 评论(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 阅读(1) 评论(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 阅读(3) 评论(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 阅读(5) 评论(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 阅读(7) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 93 下一页