上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 138 下一页
摘要: //xaml <Window x:Class="WpfApp402.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-23 10:16 FredGrit 阅读(34) 评论(0) 推荐(0)
摘要: AllowsTransparency="True" WindowStyle="None" KeyDown="Window_KeyDown" public MainWindow() { InitializeComponent(); this.SizeChanged += MainWindow_Size 阅读全文
posted @ 2024-09-23 00:28 FredGrit 阅读(49) 评论(0) 推荐(0)
摘要: <ListBox.ItemTemplate> <DataTemplate> <Grid> <Image Source="{Binding ImgUrl}" RenderOptions.BitmapScalingMode="LowQuality" Width="{Binding ActualWidth 阅读全文
posted @ 2024-09-23 00:06 FredGrit 阅读(35) 评论(0) 推荐(0)
摘要: CommandParameter pass SelectedItem of control <ListBox.ContextMenu> <ContextMenu> <MenuItem Header="Save Image" Command="{Binding SaveImgCommand}" Com 阅读全文
posted @ 2024-09-22 23:54 FredGrit 阅读(101) 评论(0) 推荐(0)
摘要: <Window x:Class="WpfApp399.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-22 23:03 FredGrit 阅读(39) 评论(0) 推荐(0)
摘要: <DataGrid ItemsSource="{StaticResource booksData}" EnableColumnVirtualization="True" EnableRowVirtualization="True" FrozenColumnCount="2" AreRowDetail 阅读全文
posted @ 2024-09-22 20:15 FredGrit 阅读(40) 评论(0) 推荐(0)
摘要: <Grid> <DataGrid ItemsSource="{StaticResource booksData}" EnableColumnVirtualization="True" EnableRowVirtualization="True" RowDetailsVisibilityMode="V 阅读全文
posted @ 2024-09-22 20:09 FredGrit 阅读(86) 评论(0) 推荐(0)
摘要: <DataGrid ItemsSource="{StaticResource booksData}" ClipboardCopyMode="IncludeHeader"/> //xaml <Window x:Class="WpfApp398.MainWindow" xmlns="http://sch 阅读全文
posted @ 2024-09-22 19:55 FredGrit 阅读(37) 评论(0) 推荐(0)
摘要: System.Collections.IList items = (System.Collections.IList)obj; var booksList = items.Cast<Book>()?.ToList(); 阅读全文
posted @ 2024-09-22 19:43 FredGrit 阅读(43) 评论(0) 推荐(0)
摘要: SelectedItems convert to IList as below failed; IList<Book> collection2 = (IList<Book>)obj; System.InvalidCastException HResult=0x80004002 Message=Una 阅读全文
posted @ 2024-09-22 19:42 FredGrit 阅读(108) 评论(0) 推荐(0)
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 138 下一页