会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
29
30
31
32
33
34
35
36
37
···
137
下一页
2025年5月17日
WPF Border Width change in smooth mode via DoubleAnimation of MVVM and implemented via C#, monitor moderate change via CompositionTarget.Rendering event
摘要: private void Init() { var tempBorder = win.FindName("border") as Border; if (tempBorder != null) { border = tempBorder; } if (widthAnimation==null) {
阅读全文
posted @ 2025-05-17 18:28 FredGrit
阅读(33)
评论(0)
推荐(0)
2025年5月16日
WPF MultiBinding grid background with 3 sliders
摘要: //xaml <Window x:Class="WpfApp232.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/
阅读全文
posted @ 2025-05-16 23:47 FredGrit
阅读(31)
评论(0)
推荐(0)
wpf draw sin function motion via canvas and it's amplitude and frequency can adjust via slider which is more sensible
摘要: //xaml <Window x:Class="WpfApp231.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/
阅读全文
posted @ 2025-05-16 23:16 FredGrit
阅读(24)
评论(0)
推荐(0)
2025年5月11日
WPF Ellipse rotate both in xaml and mvvm in C# include begin,pause and resume
摘要: //xaml <Ellipse.Triggers> <EventTrigger RoutedEvent="Ellipse.Loaded"> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetName="elpRotate
阅读全文
posted @ 2025-05-11 20:50 FredGrit
阅读(29)
评论(0)
推荐(0)
2025年5月10日
WPF Ellipse rotate via doubleanimation in mvvm
摘要: //xaml <Window x:Class="WpfApp7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/wi
阅读全文
posted @ 2025-05-10 21:58 FredGrit
阅读(38)
评论(0)
推荐(0)
2025年5月3日
WPF listbox ContextMenu MenuItem Command and CommandParameter binding in MVVM,cast System.Windows.Controls.SelectedItemCollection to list
摘要: //xaml <ListBox.ContextMenu> <ContextMenu> <MenuItem Header="ExportAll" Command="{Binding ExportCmd}" CommandParameter="{Binding RelativeSource={Relat
阅读全文
posted @ 2025-05-03 20:19 FredGrit
阅读(48)
评论(0)
推荐(0)
WPF RotateTransform via animation and Storyboard Storyboard.SetTarget Storyboary.SetTargetProperty Begin,Pause,Resume
摘要: rotationAnimation.From = 0; rotationAnimation.To = 360; rotationAnimation.Duration = TimeSpan.FromSeconds(10); rotationAnimation.RepeatBehavior = Repe
阅读全文
posted @ 2025-05-03 00:28 FredGrit
阅读(37)
评论(0)
推荐(0)
2025年4月27日
WPF line rotate around the start center at ease
摘要: //xaml <Window x:Class="WpfApp220.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/
阅读全文
posted @ 2025-04-27 14:47 FredGrit
阅读(30)
评论(0)
推荐(0)
2025年4月19日
WPF DoubleAnimation CompositionTarget Render
摘要: rotaterAnimation = new DoubleAnimation(); rotaterAnimation.From = 0; rotaterAnimation.To = 360; rotaterAnimation.Duration = TimeSpan.FromSeconds(30);
阅读全文
posted @ 2025-04-19 16:39 FredGrit
阅读(37)
评论(0)
推荐(0)
2025年4月13日
WPF circle rotated around the center automatically and when mouse down paused while mouse up restored
摘要: //uc.xaml <UserControl x:Class="WpfApp203.UCRotatedCircle" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.m
阅读全文
posted @ 2025-04-13 15:55 FredGrit
阅读(23)
评论(0)
推荐(0)
上一页
1
···
29
30
31
32
33
34
35
36
37
···
137
下一页
公告