会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
26
27
28
29
30
31
32
33
34
···
120
下一页
2024年10月11日
WPF Grid background ImageBrush ImageSource via image url in MVVM
摘要: private void GenerateImgaBrushImageSourceViaImgUrl(string imgUrlValue) { BitmapImage bmi = new BitmapImage(); bmi.BeginInit(); bmi.UriSource = new Uri
阅读全文
posted @ 2024-10-11 00:23 FredGrit
阅读(31)
评论(0)
推荐(0)
2024年10月10日
WPF Image display webp via BitMapImgae BeginInit UriSource EndInit in MVVM
摘要: 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
阅读(30)
评论(0)
推荐(0)
2024年10月6日
WPF string format
摘要: 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
阅读(57)
评论(0)
推荐(0)
2024年10月5日
WPF ListBox IsSynchronizedWithCurrentItem True ScrollIntoView via behavior CallMethodAction in MVVM
摘要: <ListBox Grid.Column="0" ItemContainerStyle="{StaticResource lbxItemContainerStyle}" ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTri
阅读全文
posted @ 2024-10-05 21:14 FredGrit
阅读(29)
评论(0)
推荐(0)
WPF ListBoxItem Selected and background changed at the same time via ItemContainerStyle
摘要: <Window.Resources> <Style x:Key="lbxItemContainerStyle" TargetType="ListBoxItem"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetT
阅读全文
posted @ 2024-10-05 21:12 FredGrit
阅读(26)
评论(0)
推荐(0)
WPF ListBox IsSynchronizedWithCurrentItem="True"
摘要: //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
阅读(16)
评论(0)
推荐(0)
WPF VirtualizingPanel.CacheLength="1" VirtualizingPanel.CacheLengthUnit="Item" can improve performance evidently
摘要: <ListBox ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedIndex="{Binding ImgIdx,Mode=TwoWay,UpdateSour
阅读全文
posted @ 2024-10-05 19:35 FredGrit
阅读(35)
评论(0)
推荐(0)
WPF Image automatically display image via System.Timer.Timer
摘要: <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
阅读(11)
评论(0)
推荐(0)
2024年10月3日
WPF ListBox ListBoxItemTemplate display image automatically via System.Timers.Timer
摘要: //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
阅读(8)
评论(0)
推荐(0)
WPF Datagrid display via DataGridTemplateColumn
摘要: <DataGridTemplateColumn Header="Image"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Image Source="{Binding DataContext.ImgUrl, RelativeSourc
阅读全文
posted @ 2024-10-03 19:15 FredGrit
阅读(21)
评论(0)
推荐(0)
上一页
1
···
26
27
28
29
30
31
32
33
34
···
120
下一页
公告