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. c#List泛型数据扩展,把List&lt;&gt;型数据格式化成List&lt;SelectListItem&gt;,用来作dropdownlist的数据

    代码例如以下 public static List<SelectListItem> CreateSelect<T>(this IList<T> t, string ...

  2. 200行代码,7个对象——让你了解ASP.NET Core框架的本质

    原文:200行代码,7个对象--让你了解ASP.NET Core框架的本质 2019年1月19日,微软技术(苏州)俱乐部成立,我受邀在成立大会上作了一个名为<ASP.NET Core框架揭秘&g ...

  3. Momentum(动量/冲量)的理解及应用

    1. 基本概念(Momentum vs SGD) Momentum 用于加速 SGD(随机梯度下降)在某一方向上的搜索以及抑制震荡的发生. GD(gradient descent) θt=θt−1−η ...

  4. 查看MySQL数据的连接

      show processlist;   select host from information_schema.processlist;   查看那台机器及连接数 select host, cur ...

  5. dbvisualizer 使用笔记

    快捷键:CTRL+SHIFT+F  格式化选中的sql语句 导入导出数据操作 导入: 1.将Exel文件另存为csv文件 2.在dbvisualizer中点击开发数据库,如test_dev,然后在te ...

  6. 结构体作为map的key或放入set中,需要重载<运算符

    结构体作为map的key或放入set中,需要重载<运算符,如下: typedef struct tagRoadKey{    int m_i32Type;    int m_i32Scale; ...

  7. wpf SnapsToDevicePixels

    原文:wpf SnapsToDevicePixels  可以在您的根元素上将此属性设为 true,以在整个 UI 上启用像素对齐呈现. 对于运行在大于 96 每英寸点数 (dpi) 的设备,像素对 ...

  8. PHP基本的文件和文件夹操作常用的汇总

    资源:http://www.ido321.com/835.html 一.基本文件的操作 文件的基本操作有:文件推断.文件夹推断.文件大小.读写性推断.存在性推断及文件时间等 1: <?php 2 ...

  9. Network architecture for minimalistic connected objects

    In one embodiment, a network architecture comprises minimalistic connected objects (MCOs), distribut ...

  10. Configuring a remote m-phy

    An interface for low power, high bandwidth communications between units in a device in provided here ...