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. hdu 1558 Segment set (并查集)

    Segment set Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Tota ...

  2. 微信公众号开发之怎样将本机IP映射成外网域名

    近期一个项目须要用到微信公众号的网页授权登录,在研究这个公众号的时候遇到各种困难,现将自己的一些心得总结一下. 我想进行微信公众号开发遇到的第一个困难就是微信公众号必须输入一个外网能够訪问的域名,在网 ...

  3. Bootstrap3简单好用,轻松实现手机适配

    个人官网http://FansUnion.cn,前端使用Bootstrap框架.大部分的样式,轻松就实现了. 只是呢,关于导航条,被无数网友吐槽了.      通过手机访问时,导航条把屏幕给完全占居了 ...

  4. gcc for Windows 开发环境介绍

    导读: 在Windows操作系统下的gcc 第一节 GCC家族概览 GCC是一个原本用于Unix-like系统下编程的编译器. 只是,如今GCC也有了很多Win32下的移植版本号.所以,或许对于很多W ...

  5. Erlang中的record与宏

    http://www.cnblogs.com/me-sa/archive/2011/07/20/erlang0006.html 在Erlang中使用Tuple ,数据项的顺序\数量都是确定的,一旦数据 ...

  6. 【codeforces 765A】Neverending competitions

    [题目链接]:http://codeforces.com/contest/765/problem/A [题意] 给你一个人的n个行程 行程都是从家到某个地方或从某个地方到家; 且是无序的,且如果到了非 ...

  7. [Clojure] A Room-Escape game, playing with telnet and pure-text commands - Part 3

    Code Path: https://github.com/bluesilence/Lisp/blob/master/clojure/projects/room-escape/src/room_esc ...

  8. POJ 2104 - 主席树 / 询问莫队+权值分块

    传送门 题目大意应该都清楚. 今天看到一篇博客用分块+莫对做了这道题,直接惊呆了. 首先常规地离散化后将询问分块,对于某一询问,将莫队指针移动到指定区间,移动的同时处理权值分块的数字出现次数(单独.整 ...

  9. spring boot打包后在tomcat无法访问静态资源问题

    我的spring boot项目中前端页面的资源引用 我的静态文件夹是 我的application.yml中资源路径配置了 同时我在WebMvcConfig中配置了addResourceHandlers ...

  10. 【38.46%】【codeforces 615E】Hexagons

    time limit per test 1 second memory limit per test 256 megabytes input standard input output standar ...