• 大小: 23.51M
    文件类型: .zip
    金币: 2
    下载: 0 次
    发布日期: 2024-02-04
  • 语言: C#
  • 标签: 其他  

资源简介

24652561RevitWPFAddin.zip

资源截图

代码片段和文件信息

using System;
using System.Windows.Controls;
using System.Windows.Data;

namespace RevitWPFAddin
{
    /// 
    /// AssemblyPage.xaml 的交互逻辑
    /// 

    public partial class AssemblyPage : Page
    {
        private string path;

        public AssemblyPage()
        {
            InitializeComponent();
        }

        /// 
        /// 
        /// 

        /// Assembly.xml文件路径
        public AssemblyPage(string path)
        {
            InitializeComponent();
            this.path = path;
            setxmlBindings(path);
        }

        public void setxmlBindings(string path)
        {
            xmlDataProvider rfaDataProvider = new xmlDataProvider();
            rfaDataProvider.Source = new Uri(path);
            rfaDataProvider.XPath = @“/AssemblyInfo/Resources/rfa“;
            rfalistView.DataContext = rfaDataProvider;
            rfalistView.SetBinding(ListView.ItemsSourceProperty new Binding());
            
            xmlDataProvider mtrDataProvider = new xmlDataProvider();
            mtrDataProvider.Source = new Uri(path);
            mtrDataProvider.XPath = @“/AssemblyInfo/Resources/mtr“;
            mtrlistView.DataContext = mtrDataProvider;
            mtrlistView.SetBinding(ListView.ItemsSourceProperty new Binding());


            xmlDataProvider ruleDataProvider = new xmlDataProvider();
            ruleDataProvider.Source = new Uri(path);
            ruleDataProvider.XPath = @“/AssemblyInfo/Rules/Rule“;
            rulesList.DataContext = ruleDataProvider;
            rulesList.SetBinding(ListView.ItemsSourceProperty new Binding());
            
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-08-03 15:43  .vs\
     目录           0  2017-08-03 15:43  .vs\RevitWPFAddin\
     目录           0  2017-08-03 15:44  .vs\RevitWPFAddin\v15\
     文件      153600  2017-08-18 11:37  .vs\RevitWPFAddin\v15\.suo
     目录           0  2017-08-18 11:33  RevitWPFAddin\
     文件        1007  2017-08-03 15:44  RevitWPFAddin.sln
     文件        2528  2017-08-16 09:36  RevitWPFAddin\AssemblyPage.xaml
     文件        1760  2017-08-16 09:54  RevitWPFAddin\AssemblyPage.xaml.cs
     目录           0  2017-08-09 16:10  RevitWPFAddin\bin\
     目录           0  2017-08-18 10:45  RevitWPFAddin\bin\Debug\
     文件      119816  2016-02-26 09:34  RevitWPFAddin\bin\Debug\AddInManager.dll
     文件     2226176  2015-12-15 00:47  RevitWPFAddin\bin\Debug\AdWindows.dll
     文件      908808  2016-02-26 09:28  RevitWPFAddin\bin\Debug\AnalysisAppsDBAPI.dll
     文件     1206744  2016-02-26 09:29  RevitWPFAddin\bin\Debug\APIDBAPI.dll
     文件      288728  2016-02-26 09:26  RevitWPFAddin\bin\Debug\APIInterop.dll
     文件     1052632  2016-02-26 09:36  RevitWPFAddin\bin\Debug\APIUIAPI.dll
     文件     1093080  2016-02-26 09:33  RevitWPFAddin\bin\Debug\ArrayElemsDBAPI.dll
     文件      859096  2016-02-26 09:29  RevitWPFAddin\bin\Debug\AssemblyDBAPI.dll
     文件     3895304  2016-02-26 09:33  RevitWPFAddin\bin\Debug\BuildingSystemsDBAPI.dll
     文件      789976  2016-02-26 09:33  RevitWPFAddin\bin\Debug\BuildingSystemsUIAPI.dll
     目录           0  2017-08-18 10:45  RevitWPFAddin\bin\Debug\cs-CZ\
     文件     1167936  2016-02-16 21:25  RevitWPFAddin\bin\Debug\cs-CZ\AdWindows.resources.dll
     文件      463320  2016-02-26 09:31  RevitWPFAddin\bin\Debug\CurtainGridFamilyDBAPI.dll
     文件       95704  2016-02-26 09:25  RevitWPFAddin\bin\Debug\DBManagedServices.dll
     目录           0  2017-08-18 10:45  RevitWPFAddin\bin\Debug\de-DE\
     文件     1167936  2016-02-16 21:25  RevitWPFAddin\bin\Debug\de-DE\AdWindows.resources.dll
     文件      666632  2016-02-26 09:28  RevitWPFAddin\bin\Debug\DesktopMFCAPI.dll
     文件      759816  2016-02-26 09:28  RevitWPFAddin\bin\Debug\DetailDBAPI.dll
     文件      590808  2016-02-26 09:29  RevitWPFAddin\bin\Debug\DetailUIAPI.dll
     文件     1319432  2016-02-26 09:28  RevitWPFAddin\bin\Debug\DPartDBAPI.dll
     文件      751112  2016-02-26 09:28  RevitWPFAddin\bin\Debug\ElementGroupDBAPI.dll
............此处省略191个文件信息

评论

共有 条评论