10 2024 档案

摘要:System.OutOfMemoryException HResult=0x8007000E Message=Exception of type 'System.OutOfMemoryException' was thrown. Source=mscorlib StackTrace: at Syst 阅读全文
posted @ 2024-10-31 23:22 FredGrit 阅读(14) 评论(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 阅读(7) 评论(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 阅读(8) 评论(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 阅读(25) 评论(0) 推荐(0) 编辑
摘要:<DataGridTemplateColumn Header="Image"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Border Width="{Binding ActualWidth,RelativeSource={Relat 阅读全文
posted @ 2024-10-25 00:32 FredGrit 阅读(7) 评论(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 阅读(19) 评论(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 阅读(21) 评论(0) 推荐(0) 编辑
摘要:private void GenerateImgaBrushImageSourceViaImgUrl(string imgUrlValue) { BitmapImage bmi = new BitmapImage(); bmi.BeginInit(); bmi.UriSource = new Uri 阅读全文
posted @ 2024-10-11 00:23 FredGrit 阅读(12) 评论(0) 推荐(0) 编辑
摘要:private void GenenerateBitMapImageViaUrl(string url) { BitmapImage bmi = new BitmapImage(); bmi.BeginInit(); bmi.UriSource=new Uri(url, UriKind.Relati 阅读全文
posted @ 2024-10-10 23:06 FredGrit 阅读(17) 评论(0) 推荐(0) 编辑
摘要:Text="{Binding StringFormat={}{0} items,Source={StaticResource mainVM},Path=Cnt}" //xaml <Window x:Class="WpfApp17.MainWindow" xmlns="http://schemas.m 阅读全文
posted @ 2024-10-06 19:31 FredGrit 阅读(14) 评论(0) 推荐(0) 编辑
摘要:<ListBox Grid.Column="0" ItemContainerStyle="{StaticResource lbxItemContainerStyle}" ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTri 阅读全文
posted @ 2024-10-05 21:14 FredGrit 阅读(11) 评论(0) 推荐(0) 编辑
摘要:<Window.Resources> <Style x:Key="lbxItemContainerStyle" TargetType="ListBoxItem"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetT 阅读全文
posted @ 2024-10-05 21:12 FredGrit 阅读(11) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp13.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-10-05 20:29 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<ListBox ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedIndex="{Binding ImgIdx,Mode=TwoWay,UpdateSour 阅读全文
posted @ 2024-10-05 19:35 FredGrit 阅读(14) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp10.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-10-05 01:01 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp6.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/wi 阅读全文
posted @ 2024-10-03 22:02 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:<DataGridTemplateColumn Header="Image"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Image Source="{Binding DataContext.ImgUrl, RelativeSourc 阅读全文
posted @ 2024-10-03 19:15 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/wi 阅读全文
posted @ 2024-10-03 01:18 FredGrit 阅读(27) 评论(0) 推荐(0) 编辑
摘要:<Window.Resources> <local:ImageUrlConverter x:Key="imgConverter"/> </Window.Resources> <Image Source="{Binding ImgUrl,Converter={StaticResource imgCon 阅读全文
posted @ 2024-10-03 00:10 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要:The basic roadmap is to download web image at first , second convert it into memeorystream, third assign the memorystream to bitmapimage as StreamSour 阅读全文
posted @ 2024-10-02 23:43 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:1.Install Microsoft.Xaml.Behaviors.Wpf 2. <behavior:Interaction.Triggers> <behavior:EventTrigger EventName="MouseDown"> <behavior:InvokeCommandAction 阅读全文
posted @ 2024-10-02 21:12 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:1.Install Microsoft.Xaml.Behaviors.Wpf 2. xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors" <behavior:Interaction.Triggers> <behavior:Event 阅读全文
posted @ 2024-10-02 20:53 FredGrit 阅读(39) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示