上一页 1 2 3 4 5 6 ··· 135 下一页
摘要: [XmlRoot("ArrayOfBook", Namespace = "http://schemas.datacontract.org/2004/07/WcfService4")] public class XmlBook { [XmlElement(nameof(Book))] public L 阅读全文
posted @ 2026-08-01 19:32 FredGrit 阅读(5) 评论(0) 推荐(0)
摘要: public class TreeNodeModel { public string TreeNodeName { get; set; } public string TreeNodeValue { get; set; } public List<TreeNodeModel> TreeNodeChi 阅读全文
posted @ 2026-07-26 21:59 FredGrit 阅读(8) 评论(0) 推荐(0)
摘要: //This XML file does not appear to have any style information associated with it. The document tree is shown below. <ArrayOfBook xmlns="http://schemas 阅读全文
posted @ 2026-07-26 21:08 FredGrit 阅读(8) 评论(0) 推荐(0)
摘要: <Window x:Class="WpfApp5.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
posted @ 2026-07-25 22:02 FredGrit 阅读(9) 评论(0) 推荐(0)
摘要: <ArrayOfBook xmlns="http://schemas.datacontract.org/2004/07/WcfService2" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Book> <Author>Author_26 阅读全文
posted @ 2026-07-25 18:53 FredGrit 阅读(6) 评论(0) 推荐(0)
摘要: Install-Package Newtonsoft.Json <Window.Resources> <DataTemplate x:Key="DGDataTemplate" DataType="{x:Type local:Book}"> <Border BorderBrush="LightGray 阅读全文
posted @ 2026-07-19 21:28 FredGrit 阅读(7) 评论(0) 推荐(0)
摘要: <DataGrid.Columns> <DataGridTemplateColumn> <DataGridTemplateColumn.CellTemplate> <Binding Source="{StaticResource DGDataTemplate}"/> </DataGridTempla 阅读全文
posted @ 2026-07-18 22:02 FredGrit 阅读(6) 评论(0) 推荐(0)
摘要: <Window.Resources> <Style TargetType="TreeViewItem"> <Setter Property="IsExpanded" Value="False"/> </Style> <local:LenConverter x:Key="LenConverter"/> 阅读全文
posted @ 2026-07-18 20:21 FredGrit 阅读(6) 评论(0) 推荐(0)
摘要: public static ObservableCollection<Book> DeserializeXmlDocument(XmlDocument xmlDoc) { try { using var xmlReader = new XmlNodeReader(xmlDoc); var seria 阅读全文
posted @ 2026-07-18 18:13 FredGrit 阅读(9) 评论(0) 推荐(0)
摘要: Install-Package Microsoft.Xaml.Behaviors.Wpf public class SyncDatagridScrollBehavior : Behavior<DataGrid> { private ScrollViewer _sourceScrollViewer, 阅读全文
posted @ 2026-07-17 21:57 FredGrit 阅读(8) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 135 下一页