会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
27
28
29
30
31
32
33
34
35
···
123
下一页
2024年11月19日
WPF ContextMenu MenuItem Command CommandParameter Path=PlaceTarget.ItemsSource
摘要: <DataGrid.ContextMenu> <ContextMenu> <MenuItem Header="Export" Command="{Binding ExportCommand}" CommandParameter="{Binding RelativeSource={RelativeSo
阅读全文
posted @ 2024-11-19 00:48 FredGrit
阅读(44)
评论(0)
推荐(0)
2024年11月18日
WPF Datagrid event command in mvvm via behavior
摘要: <DataGridTemplateColumn Header="Image"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox IsThreeSt
阅读全文
posted @ 2024-11-18 23:24 FredGrit
阅读(24)
评论(0)
推荐(0)
2024年11月17日
WPF ItemsControl.AlternationIndex AlternationCount
摘要: <Style TargetType="{x:Type Control}" x:Key="lbxStyle"> <Style.Triggers> <Trigger Property="ItemsControl.AlternationIndex" Value="0"> <Setter Property=
阅读全文
posted @ 2024-11-17 16:39 FredGrit
阅读(78)
评论(0)
推荐(0)
WPF apply style in Toolbar via Static ToolBar.ButtonStyleKey
摘要: <Window x:Class="WpfApp33.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
posted @ 2024-11-17 15:39 FredGrit
阅读(14)
评论(0)
推荐(0)
WPF style BasedOn base style
摘要: <Window x:Class="WpfApp32.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
posted @ 2024-11-17 15:06 FredGrit
阅读(34)
评论(0)
推荐(0)
2024年11月16日
C# retrieve file CheckSum sha512
摘要: using System.Security.Cryptography; using System.Text.Unicode; namespace ConsoleApp4 { internal class Program { static void Main(string[] args) { stri
阅读全文
posted @ 2024-11-16 19:07 FredGrit
阅读(24)
评论(0)
推荐(0)
C# The file is too long. This operation is currently limited to supporting files less than 2 gigabytes in size.
摘要: namespace ConsoleApp4 { internal class Program { static void Main(string[] args) { string bigFile = @"C:\Users\fred\Downloads\ebook-master.zip"; ReadB
阅读全文
posted @ 2024-11-16 18:56 FredGrit
阅读(107)
评论(0)
推荐(0)
2024年11月5日
WPF ListBox MVVM scrollintoview via behavior
摘要: public class ListBoxAutoScrollBehavior:Behavior<ListBox> { protected override void OnAttached() { base.OnAttached(); AssociatedObject.SelectionChanged
阅读全文
posted @ 2024-11-05 22:57 FredGrit
阅读(41)
评论(0)
推荐(0)
2024年11月3日
WPF Button Setter Template Setter.Value ControlTemplate Border ContentPresenter ControlTemplate.Triggers
摘要: <StackPanel.Resources> <Style x:Key="btnStyle" TargetType="{x:Type Button}"> <Setter Property="Button.FontSize" Value="50"/> <Setter Property="Button.
阅读全文
posted @ 2024-11-03 19:05 FredGrit
阅读(30)
评论(0)
推荐(0)
WPF ItemsSource referenced StaticResource
摘要: //xaml <Window.Resources> <local:SizeConverter x:Key="sizeConverter"/> <local:BooksData x:Key="booksData"/> </Window.Resources> <Grid> <DataGrid Grid.
阅读全文
posted @ 2024-11-03 17:37 FredGrit
阅读(23)
评论(0)
推荐(0)
上一页
1
···
27
28
29
30
31
32
33
34
35
···
123
下一页
公告