private static void AddIndustryTypes(sectorCode[] result)
{
var industryTypes = (from t in result
select new Industry
{
Key = t.sector_key,
Mnem = t.sector_mnem,
Desc = t.sector_desc,
}).OrderBy(o => o.Mnem).ToList();
IndustryTypes = new ObservableCollection<Industry>(industryTypes);
System.Windows.Application.Current.Resources[IndustryTypeKey] = IndustryTypes;
}

  

                    <dxg:GridColumn x:Name="hdrsStatusYNName" Header="Status" FieldName="StatusYN" HorizontalHeaderContentAlignment="Center">
<dxg:GridColumn.HeaderTemplate>
<DataTemplate>
<ContentControl Content="{Binding}" TextBlock.FontWeight="Bold"/>
</DataTemplate>
</dxg:GridColumn.HeaderTemplate>
<!--<dxg:GridColumn.EditSettings>
<dxe:TextEditSettings HorizontalContentAlignment="Left" />
</dxg:GridColumn.EditSettings>-->
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<dxe:ComboBoxEdit EditValue="{Binding Data.StatusYN,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" IsTextEditable="False" >
<dxe:ComboBoxEditItem x:Name="readyCombox" PreviewMouseDown="Combox_PreviewMouseDown" Content="Ready For Vantage">
<i:Interaction.Triggers>
<i:EventTrigger EventName="PreviewMouseDown">
<cmd:EventToCommand
Command="{Binding DataContext.ImportHistoryCommand}"
CommandParameter="{Binding Path=FocusedRow,ElementName=craneDataBrowseTableView}"/>
</i:EventTrigger>
</i:Interaction.Triggers> </dxe:ComboBoxEditItem>
</dxe:ComboBoxEdit>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>

  

                <dxg:GridControl.View>
<dxg:TableView Name="craneDataBrowseTableView" AllowEditing="False" ShowAutoFilterRow="True" ShowGroupPanel="False" ShowTotalSummary="True"
RowStyle="{StaticResource SelectedRowStyleNoHightLight}">
<dxg:TableView.RowCellMenuCustomizations> <dxb:BarButtonItem Name="viewDetailsRowItem" Content="ViewDetails"
ItemClick="ViewDetailsRowItem_ItemClick"
Command="{Binding Path=(dxb:GridPopupMenuBase.GridMenuInfo).View.DataContext.Commands.ViewDetailsCommand, RelativeSource={RelativeSource Self}}"
>
<dxb:BarButtonItem.CommandParameter>
<MultiBinding Converter="{StaticResource CommandMultipleBindingConverter}">
<MultiBinding.Bindings>
<Binding ElementName="craneDataImportDtlsFilterCombox" />
<Binding Path="FocusedRow" ElementName="craneDataBrowseTableView"/>
</MultiBinding.Bindings>
</MultiBinding>
</dxb:BarButtonItem.CommandParameter> <!--<i:Interaction.Triggers>
<i:EventTrigger EventName="ItemClick">
<cmd:EventToCommand Command="{Binding ViewDetailsCommand, RelativeSource={RelativeSource Self}}" >
<cmd:EventToCommand.CommandParameter>
<MultiBinding Converter="{StaticResource CommandMultipleBindingConverter}">
<MultiBinding.Bindings>
<Binding ElementName="craneDataImportDtlsFilterCombox" />
<Binding Path="FocusedRow" ElementName="craneDataBrowseTableView"/>
</MultiBinding.Bindings>
</MultiBinding>
</cmd:EventToCommand.CommandParameter>
</cmd:EventToCommand>
</i:EventTrigger>
</i:Interaction.Triggers>--> </dxb:BarButtonItem>
</dxg:TableView.RowCellMenuCustomizations>
</dxg:TableView>
</dxg:GridControl.View>

  

数组/LINQ/List/ObservableCollection的更多相关文章

  1. Linq与委托

    using System; using System.Linq; using System.Reflection; using Stuglxt_Models; namespace ConsoleApp ...

  2. WPF之Binding深入探讨

    原文:http://blog.csdn.net/fwj380891124/article/details/8107646 1,Data Binding在WPF中的地位 程序的本质是数据+算法.数据会在 ...

  3. WPF的Binding功能解析

    1,Data Binding在WPF中的地位 程序的本质是数据+算法.数据会在存储.逻辑和界面三层之间流通,所以站在数据的角度上来看,这三层都很重要.但算法在3层中的分布是不均匀的,对于一个3层结构的 ...

  4. WPF之Binding深入探讨--Darren

    1,Data Binding在WPF中的地位 程序的本质是数据+算法.数据会在存储.逻辑和界面三层之间流通,所以站在数据的角度上来看,这三层都很重要.但算法在3层中的分布是不均匀的,对于一个3层结构的 ...

  5. binding(转)

    1,Data Binding在WPF中的地位 程序的本质是数据+算法.数据会在存储.逻辑和界面三层之间流通,所以站在数据的角度上来看,这三层都很重要.但算法在3层中的分布是不均匀的,对于一个3层结构的 ...

  6. WPF之Binding【转】

    WPF之Binding[转] 看到WPF如此之炫,也想用用,可是一点也不会呀. 从需求谈起吧: 首先可能要做一个很炫的界面.见MaterialDesignInXAMLToolKit. 那,最主要的呢, ...

  7. WPF之Binding深入探讨 转载:http://blog.csdn.net/fwj380891124/article/details/8107646

    1,Data Binding在WPF中的地位 程序的本质是数据+算法.数据会在存储.逻辑和界面三层之间流通,所以站在数据的角度上来看,这三层都很重要.但算法在3层中的分布是不均匀的,对于一个3层结构的 ...

  8. Android--ListView与数据绑定(Xamarin)

    ListView 控件是一个条目容器, 用于显示集合对象(如数组, List<T>, ObservableCollection<T>等)的每一个条目, 并提供滚动功能. 列表视 ...

  9. DataTable,List,Dictonary互转,筛选及相关写法

    1.创建自定义DataTable  /// 创建自定义DataTable(一) 根据列名字符串数组, /// </summary> /// <param name="sLi ...

随机推荐

  1. [内核编程] Windebug双机调试环境搭建

    Windebug双机调试环境搭建    开始进行内核编程/驱动编程的调试工作是非常烦人的,由于程序运行与内核层不受操作系统的管控,所以容易引起主机蓝屏和崩溃是常有的事.这也就使得内核程序的调试成了一大 ...

  2. auto_create_partition

    #!/usr/bin/env python # -*- encoding: utf8 -*- import calendar import time import os import sys from ...

  3. XML输出到浏览器报错

    在使用Firefox浏览器测试我编写的xml文件时,遇到如下错误:我的xml源代码如下: <?xml version="1.0" encoding="UTF-8&q ...

  4. js进阶 11-14 jquery如何实现元素的替换和遍历

    js进阶  11-14  jquery如何实现元素的替换和遍历 一.总结 一句话总结:替换:replaceAll() 与 replaceWith().遍历:each(). 1.replaceAll() ...

  5. 【codeforces 755C】PolandBall and Forest

    time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard ou ...

  6. uml精粹——11.活动图(及整个读书笔记分享)

    11.活动图activity diagram   活动图是描写叙述过程化逻辑procedural logic.业务过程business process和工作流work flow的技术. 他和流程图fl ...

  7. [.NET Core 24]把project.json迁移到.csproj

    链接:https://blog.jetbrains.com/dotnet/2017/04/04/rider-eap-update-csproj-based-net-core-support-migra ...

  8. Linux安装.Net core 环境并运行项目

    原文:Linux安装.Net core 环境并运行项目 一 安装环境 1.  从微软官网下载 Linux版本的.NetCoreSdk 2.0 安装包 打开终端: 第一步: sudo yum insta ...

  9. 学习鸟哥的Linux私房菜笔记(11)——系统监视1

    一.了解系统状况 uname:显示系统信息 hostname:显示主机名 last:列出最近的用户登录 lastlog:列出每一个用户的最近登录情况 free:显示内存使用状况 还可以使用vmstat ...

  10. Python 编程规范 —— TODO 注释(结合 PyCharm)

    编程是代码和注释的统一: TODO 自然表示需要做而未做的一些待完成的事项,有助于事后的检索,以及对整体项目做进一步的修改迭代. # TODO(kl@gmail.com): Use a "* ...