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. Java并发包探秘 (一) ConcurrentLinkedQueue

    本文是Java并发包探秘的第一篇,旨在介绍一下Java并发容器中用的一些思路和技巧,帮助大家更好的理解Java并发容器,让我们更好的使用并发容器打造更高效的程序.本人能力有限,错误难免.希望及时指出. ...

  2. Jupyter Notebook 常用快捷键

    Jupyter Notebook 提供了比 IPython 美观的多得多的可视化形式.(比如对于 pandas 下的 DataFrame 的展示,df.head(5)) Jupyter Noteboo ...

  3. runtimeException也是能够捕获的

    如题, 运行结果: bbb abcdef @Test public void testRuntimeException() { ; try { aaa333(); } catch (Exception ...

  4. [JS Compose] 5. Create types with Semigroups

    An introduction to concatting items via the formal Semi-group interface. Semi-groups are simply a ty ...

  5. #308 (div.2) B. Vanya and Books

    1.题目描写叙述:点击打开链接 2.解题思路:本题要求统计数位的个数,简单的试验一下发现有例如以下规律:一个n位数的个数有9*(10^n)个.因此全部n位数的数位是n*9*(10^n)个.因此能够利用 ...

  6. js进阶正则表达式7点数字字母空格(w d s)(小写表原意,大写表反义)(特殊字符要加反斜杠:var reg22=/\W/g)

    js进阶正则表达式7点数字字母空格(w d s)(小写表原意,大写表反义)(特殊字符要加反斜杠:var reg22=/\W/g) 一.总结 1.w d s,word digital space 2.特 ...

  7. MySQL经常使用的面试题

    1.怎样登陆mysql数据库 MySQL -u username -p 2.怎样开启/关闭mysql服务 service mysql start/stop 3.查看mysql的状态 service m ...

  8. 【codeforces 602D】Lipshitz Sequence

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

  9. js进阶 9-12 如何将数组的信息添加到下拉列表

    js进阶 9-12 如何将数组的信息添加到下拉列表 一.总结 一句话总结:创建出select的option,然后selectElement的add方法加进 selectElement 即可 1.创建出 ...

  10. java架构之项目结构(entity / DTO / VO)

    定义类的讲究 关系示例 定义类的讲究 ejb Enterprise JavaBean(EJB),企业javaBean.是java的核心代码,分别是会话Bean(Session Bean).实体Bean ...