上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 94 下一页
摘要: <ListBox.ItemTemplate> <DataTemplate> <local:ImageTbk UCImgUrl="{Binding DataContext.ImgUrl, RelativeSource={RelativeSource Mode=FindAncestor,Ancestor 阅读全文
posted @ 2024-09-21 13:45 FredGrit 阅读(16) 评论(0) 推荐(0) 编辑
摘要: When an items control is using a virtualizing panel and it contains a large number of complex items, setting IsDeferredScrollingEnabled to true can re 阅读全文
posted @ 2024-09-20 17:31 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要: //xaml <Window x:Class="WpfApp386.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-20 16:23 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要: public class MyData : ObservableCollection<string> { public MyData() { for(int i=0;i<100000;i++) { Add($"{i+1}__{Guid.NewGuid().ToString("N")}"); } } 阅读全文
posted @ 2024-09-20 16:11 FredGrit 阅读(2) 评论(0) 推荐(0) 编辑
摘要: <ListBox x:Name="lbx" SelectedIndex="0" ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VirtualizingPanel.IsCo 阅读全文
posted @ 2024-09-20 11:46 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要: <ListBox x:Name="lbx" SelectedIndex="0" ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VirtualizingPanel.IsCo 阅读全文
posted @ 2024-09-20 11:38 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要: //xaml <ListBox x:Name="lbx" SelectedIndex="0" ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VirtualizingPan 阅读全文
posted @ 2024-09-20 11:31 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要: private Color GetRndColor() { Color cr = new Color(); cr.A = 255; cr.R = (byte)(rnd.Next(0, 255)); cr.G = (byte)(rnd.Next(0, 255)); cr.B = (byte)(rnd. 阅读全文
posted @ 2024-09-19 22:21 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要: //usercontrol.xaml <UserControl x:Class="WpfApp381.ElpImgTbk" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema 阅读全文
posted @ 2024-09-19 21:55 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要: //converter using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.T 阅读全文
posted @ 2024-09-19 21:18 FredGrit 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 94 下一页