上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 128 下一页
摘要: <ComboBox ItemsSource="{StaticResource dataList}" SelectedIndex="0" VirtualizingPanel.IsContainerVirtualizable="True" VirtualizingPanel.IsVirtualizing 阅读全文
posted @ 2024-09-21 20:57 FredGrit 阅读(29) 评论(0) 推荐(0)
摘要: <Window x:Class="WpfApp392.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-21 19:45 FredGrit 阅读(32) 评论(0) 推荐(0)
摘要: <ComboBox x:Name="cbx" Grid.Row="0" Grid.Column="0" SelectedIndex="0" ItemsSource="{StaticResource booksData}" FontSize="20" Foreground="Red" Vertical 阅读全文
posted @ 2024-09-21 17:41 FredGrit 阅读(20) 评论(0) 推荐(0)
摘要: <ComboBox Grid.Row="0" Grid.Column="0" SelectedIndex="0" ItemsSource="{StaticResource booksData}" FontSize="20" Foreground="Red" VerticalAlignment="St 阅读全文
posted @ 2024-09-21 16:56 FredGrit 阅读(28) 评论(0) 推荐(0)
摘要: private void FillGridRandomly() { rowsColsSet = new HashSet<XY>(); if (gd != null) { gd.Children.Clear(); } for (int i = 0; i < 50; i++) { while (true 阅读全文
posted @ 2024-09-21 14:58 FredGrit 阅读(28) 评论(0) 推荐(0)
摘要: //custom control <UserControl x:Class="WpfApp389.ElpImageTbk" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema 阅读全文
posted @ 2024-09-21 14:20 FredGrit 阅读(36) 评论(0) 推荐(0)
摘要: <ListBox.ItemTemplate> <DataTemplate> <local:ImageTbk UCImgUrl="{Binding DataContext.ImgUrl, RelativeSource={RelativeSource Mode=FindAncestor,Ancestor 阅读全文
posted @ 2024-09-21 13:45 FredGrit 阅读(143) 评论(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 阅读(39) 评论(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 阅读(30) 评论(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 阅读(28) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 128 下一页