当前位置: 首页 > news >正文

WPF-LabelImg_主内容区域_右侧栏

详情

<!--详情--><h:OutlookSectionCattach.Icon="{x:Static FontIcons.OpenFile}"Header="详情"><DockPanel><ContentPresenterMargin="5"Content="{Binding Collection.SelectedItem.Model}"DockPanel.Dock="Top"/><h:FormForeground="{DynamicResource {x:Static h:BrushKeys.Foreground}}"SelectObject="{Binding Collection.SelectedItem.Model, Mode=TwoWay}"TitleWidth="50"UseNull="False"UsePropertyView="True"/></DockPanel></h:OutlookSection>

编辑

<!--编辑--><h:OutlookSectionCattach.Icon="{x:Static FontIcons.Edit}"Header="编辑"><h:FormForeground="{DynamicResource {x:Static h:BrushKeys.Foreground}}"SelectObject="{Binding Collection.SelectedItem.Model, Mode=TwoWay}"TitleWidth="50"/></h:OutlookSection>

标签列表

<!--标签列表--><h:OutlookSectionCattach.Icon="{x:Static FontIcons.Tag}"Header="标签列表"><ListBoxItemsSource="{Binding Collection.SelectedItem.Shapes}"SelectedItem="{Binding Collection.SelectedItem.SelectedShape}"><ItemsControl.ItemTemplate><DataTemplate><DockPanel><DockPanelLastChildFill="False"><BorderWidth="20"Height="10"Margin="5,0"Background="{Binding Stroke}"CornerRadius="1"/><TextBlockVerticalAlignment="Center"Text="{Binding Title}"/><FontIconButtonCommand="{DeleteCommand UseDialog=False}"CommandParameter="{Binding RelativeSource={RelativeSource Mode=Self}}"Content="{x:Static FontIcons.Delete}"DockPanel.Dock="Right"/></DockPanel></DockPanel></DataTemplate></ItemsControl.ItemTemplate></ListBox></h:OutlookSection>

设置图像分类

<!--设置图像分类--><h:OutlookSectionCattach.Icon="{x:Static FontIcons.GroupList}"Header="设置图像分类"><h:Cattach.CaptionRightTemplate><ControlTemplate><DockPanel><FontIconButtonHeight="Auto"HorizontalAlignment="Right"Background="Transparent"Command="{CreateTagCommand}"Content="{x:Static FontIcons.Add}"ToolTip="新建分类"/><FontIconButtonHeight="Auto"HorizontalAlignment="Right"Background="Transparent"Command="{ManageTagCommand}"Content="{x:Static FontIcons.Setting}"ToolTip="管理分类"/></DockPanel></ControlTemplate></h:Cattach.CaptionRightTemplate><h:TagBoxTags="{Binding Collection.SelectedItem.Model.Tags, Mode=TwoWay}"/></h:OutlookSection>

设置收藏夹

<!--设置收藏夹--><h:OutlookSectionCattach.Icon="{x:Static FontIcons.FavoriteStarFill}"Header="设置收藏夹"Visibility="{Binding Source={x:Static h:IocProject.Instance}, Path=Current.Setting.UseFavoritePath, Converter={x:Static h:Converter.GetTrueToVisible}}"><h:FavoriteBoxCattach.TopTemplate="{x:Null}"SelectedFavoritePath="{Binding Collection.SelectedItem.Model.FavoritePath, Mode=TwoWay}"/></h:OutlookSection>

完整代码

<h:OutlookBarWidth="250"Margin="0,0,1,0"DockPanel.Dock="Right"DockPosition="Right"IsCloseButtonVisible="False"IsMaximized="True"MaxNumberOfButtons="5"NavigationPaneText="{Binding RelativeSource={RelativeSource Mode=Self}, Path=SelectedSection.Header}"ShowButtons="True"><h:OutlookBar.Sections><h:OutlookSectionCattach.Icon="{x:Static FontIcons.OpenFile}"Header="详情"><DockPanel><ContentPresenterMargin="5"Content="{Binding Collection.SelectedItem.Model}"DockPanel.Dock="Top"/><!--<ImageHeight="300"DockPanel.Dock="Top"Source="{Binding Collection.SelectedItem.Model, Converter={local:GetFileToViewConverter}, ConverterParameter=300, IsAsync=True}"/>--><h:FormForeground="{DynamicResource {x:Static h:BrushKeys.Foreground}}"SelectObject="{Binding Collection.SelectedItem.Model, Mode=TwoWay}"TitleWidth="50"UseNull="False"UsePropertyView="True"/></DockPanel></h:OutlookSection><h:OutlookSectionCattach.Icon="{x:Static FontIcons.Edit}"Header="编辑"><h:FormForeground="{DynamicResource {x:Static h:BrushKeys.Foreground}}"SelectObject="{Binding Collection.SelectedItem.Model, Mode=TwoWay}"TitleWidth="50"/></h:OutlookSection><h:OutlookSectionCattach.Icon="{x:Static FontIcons.Tag}"Header="标签列表"><ListBoxItemsSource="{Binding Collection.SelectedItem.Shapes}"SelectedItem="{Binding Collection.SelectedItem.SelectedShape}"><ItemsControl.ItemTemplate><DataTemplate><DockPanel><DockPanelLastChildFill="False"><BorderWidth="20"Height="10"Margin="5,0"Background="{Binding Stroke}"CornerRadius="1"/><TextBlockVerticalAlignment="Center"Text="{Binding Title}"/><FontIconButtonCommand="{DeleteCommand UseDialog=False}"CommandParameter="{Binding RelativeSource={RelativeSource Mode=Self}}"Content="{x:Static FontIcons.Delete}"DockPanel.Dock="Right"/></DockPanel></DockPanel></DataTemplate></ItemsControl.ItemTemplate></ListBox></h:OutlookSection><h:OutlookSectionCattach.Icon="{x:Static FontIcons.GroupList}"Header="设置图像分类"><h:Cattach.CaptionRightTemplate><ControlTemplate><DockPanel><FontIconButtonHeight="Auto"HorizontalAlignment="Right"Background="Transparent"Command="{CreateTagCommand}"Content="{x:Static FontIcons.Add}"ToolTip="新建分类"/><FontIconButtonHeight="Auto"HorizontalAlignment="Right"Background="Transparent"Command="{ManageTagCommand}"Content="{x:Static FontIcons.Setting}"ToolTip="管理分类"/></DockPanel></ControlTemplate></h:Cattach.CaptionRightTemplate><h:TagBoxTags="{Binding Collection.SelectedItem.Model.Tags, Mode=TwoWay}"/></h:OutlookSection><h:OutlookSectionCattach.Icon="{x:Static FontIcons.FavoriteStarFill}"Header="设置收藏夹"Visibility="{Binding Source={x:Static h:IocProject.Instance}, Path=Current.Setting.UseFavoritePath, Converter={x:Static h:Converter.GetTrueToVisible}}"><h:FavoriteBoxCattach.TopTemplate="{x:Null}"SelectedFavoritePath="{Binding Collection.SelectedItem.Model.FavoritePath, Mode=TwoWay}"/></h:OutlookSection></h:OutlookBar.Sections></h:OutlookBar>
http://www.jsqmd.com/news/920104/

相关文章:

  • 泉天下品牌怎么样? - mypinpai
  • 保姆级教程:用Python脚本把TT100K交通标志数据集转成YOLOv8能用的格式(附完整源码)
  • 四川称重模块技术解析:四川汽车衡地磅、四川物联网称重系统、四川电子地磅、四川称重模块、四川车牌识别称重系统、物联网称重系统选择指南 - 优质品牌商家
  • 科研工作流搭建:用PyLith+ParaView在Ubuntu上跑通第一个断层模拟(从安装到出图)
  • Node.js 路由
  • WINNER II信道模型实战:手把手教你用CDL表配置14种典型无线传播场景
  • 避开这些坑!ZYNQ裸机双网口LWIP配置的5个常见问题与调试心得
  • BetterNCM终极指南:3分钟打造个性化网易云音乐播放器
  • 仅限首批接入企业开放:Gemini调试错误黄金15分钟响应SOP(含Cloud Logging高级过滤语法+Error Reporting自定义告警配置)
  • 别再死磕图像了!用1DCNN处理传感器时序数据(MATLAB/Keras实战对比)
  • Windows环境变量还能这么玩?深入Wscript.Shell的Environment属性,实现动态路径配置
  • 2026年华信恒创性价比高吗? - mypinpai
  • 51单片机交通灯项目避坑指南:三极管驱动选型、按键消抖和中断优先级设置这些细节你注意了吗?
  • PotPlayer字幕翻译插件:3步实现外语视频无障碍观看的终极方案
  • CentOS 7.9/8.2 批量升级OpenSSH 9.3p2,我踩过的坑和自动化脚本分享
  • BG3模组管理器完全指南:三步掌握《博德之门3》模组管理技巧
  • Ubuntu 18.04远程桌面搭建:从手动配置到脚本一键化,我的踩坑与安全实践
  • 从BIOS时钟到系统时间:深入理解Win11/Ubuntu双系统时间错乱的底层机制
  • 别再只画散点了!用DESeq2的plotPCA函数快速检查RNA-seq数据质量
  • UE5独立游戏开发者必看:从零搭建可联机测试环境(含批处理脚本一键打包/启动服务器与客户端)
  • 深度解析Sapphire Sleet假Zoom SDK攻击:朝鲜APT如何突破macOS金融防线
  • 华为云Stack网络节点深度拆解:BR、vRouter、ENAT网元到底在忙什么?
  • Gemini自动生成测试用例:3步接入+4类校验规则+7天落地SOP,告别手工编写时代
  • Lindy效应如何重塑AI模型生命周期?揭秘训练自动化背后的3个反直觉数学定律
  • 2026年最新实测:天学网和E听说哪个对孩子英语听说提升更有用
  • 保姆级教程:用Dism++在PE里给Win11系统提前注入Intel VMD驱动,搞定11代CPU安装
  • 用Python的turtle库给孩子做个母亲节贺卡:从画爱心到弹出祝福框的完整教程
  • 2026成都铝单板技术选型指南:四川四川蜂窝板/四川四川铝单板/四川四川铝方管/四川四川铝方通/四川型材铝方通/选择指南 - 优质品牌商家
  • 终极指南:如何轻松批量下载Iwara视频的完整教程
  • 开发一个类似OpenClaw应用程序的AI Agent智能体,需要从哪些方面着手?