文章分类 -  WPF

摘要:<Rectangle Width="100" Height="100" Fill="White"> <Rectangle.OpacityMask> <ImageBrush ImageSource="pack://application:,,,/PluginDemo;component/Resourc 阅读全文
posted @ 2024-11-16 14:12 十年之前,十年之后 阅读(25) 评论(0) 推荐(0)
摘要:<StackPanel Name="Parent_222" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center"> <StackPanel Name="Parent_2" Width="100" HorizontalA 阅读全文
posted @ 2024-08-01 17:09 十年之前,十年之后 阅读(13) 评论(0) 推荐(0)
摘要:[ObservableProperty] private string curPanelType = "按文件名"; partial void OnCurPanelTypeChanged(string value) { } 阅读全文
posted @ 2024-07-31 17:43 十年之前,十年之后 阅读(43) 评论(0) 推荐(0)
摘要:<Window.Resources> <!-- 定义数据模版:把vm模型和视图对应起来 --> <DataTemplate DataType="{x:Type localvm:HomeViewModel}"> <localview:HomeView /> </DataTemplate> <DataT 阅读全文
posted @ 2024-07-31 16:43 十年之前,十年之后 阅读(27) 评论(0) 推荐(0)
摘要:WPF 切换语言,以及 更新主题皮肤功能 https://developer.aliyun.com/article/1163541 阅读全文
posted @ 2024-06-12 17:46 十年之前,十年之后 阅读(14) 评论(0) 推荐(0)
摘要:WPF实现多语言切换 https://gitee.com/chenheze90/L13_WPFMultipleLanguage <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 阅读全文
posted @ 2024-06-07 16:06 十年之前,十年之后 阅读(18) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-09 17:06 十年之前,十年之后 阅读(98) 评论(0) 推荐(0)
摘要:正确开启虚拟化的方式 列表如ListBox,ListView,TreeView,GridView等,开启虚拟化 ScrollViewer设置CanContentScroll=True 直接在模板中,设置CanContentScroll="True" 子样式也要 CanContentScroll="T 阅读全文
posted @ 2023-09-28 11:48 十年之前,十年之后 阅读(140) 评论(0) 推荐(0)
摘要:WPFの静态资源(StaticResource)和动态资源(DynamicResource) 下面是前台代码: <Window.Resources> <TextBlock x:Key="res1" Text="好好学习"/> <TextBlock x:Key="res2" Text="好好学习"/> 阅读全文
posted @ 2023-09-28 11:47 十年之前,十年之后 阅读(329) 评论(0) 推荐(0)
摘要:我们昂视有一个高手,叫军堡! 是一个好牛B的超级高手! 我操,太牛B 从他那里,我学会了: 如果多个图片切换时,如果发现切换后,上一张ROI保存失败,不想切换了。那怎么办? 前端UI 已经变过去了。但后台VAL未变。那军堡提出了一个前所未有的说法: 重新RaiseProperChange,通知UI 阅读全文
posted @ 2023-06-15 10:52 十年之前,十年之后 阅读(26) 评论(0) 推荐(0)
摘要:<ListBox Name="EsCanSelectList" Grid.Row="1" ItemsSource="{Binding CanSelectList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <ListBox.ItemTempl 阅读全文
posted @ 2023-05-17 17:07 十年之前,十年之后 阅读(262) 评论(0) 推荐(0)
摘要:该方法可适用于所欲容器类型,相关属性:ClipToBounds 举例: 代码: <Canvas ClipToBounds="False" Height="100" Width="100" Background="Yellow"> <Ellipse Fill="Green" Height="100" 阅读全文
posted @ 2023-04-19 17:21 十年之前,十年之后 阅读(163) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2023-03-20 18:01 十年之前,十年之后 阅读(24) 评论(0) 推荐(0)
摘要:WPF中Style文件引用另一个Style文件中的样式 <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Dictionaries/Buttons.xaml" /> </ResourceDictionary.Mer 阅读全文
posted @ 2023-03-11 11:07 十年之前,十年之后 阅读(86) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-03-03 11:05 十年之前,十年之后 阅读(217) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-24 11:22 十年之前,十年之后 阅读(34) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-11-16 16:57 十年之前,十年之后 阅读(15) 评论(0) 推荐(0)
摘要:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Sou 阅读全文
posted @ 2022-11-16 16:01 十年之前,十年之后 阅读(174) 评论(0) 推荐(0)
摘要:/// <summary> /// 滚轮事件穿透 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DG1_PreviewMouseWheel(object sende 阅读全文
posted @ 2022-11-14 18:06 十年之前,十年之后 阅读(34) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-11-14 15:00 十年之前,十年之后 阅读(18) 评论(0) 推荐(0)