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

浙公网安备 33010602011771号