zoukankan      html  css  js  c++  java
  • BarManager.ContextMenu

      <!--Search & List Area-->
            <dxb:BarManager Name="barManager1" dxlc:DockLayoutControl.Dock="Client" Margin="-1.5">
                <dxb:BarManager.Items>
                    <dxb:BarButtonItem Content="{DynamicResource ResourceKey=ResNew}" Name="btnNew" Glyph="/Gemr;component/Images/16/new_16.png" BarItemDisplayMode="ContentAndGlyph"/>
                    <dxb:BarButtonItem Content="{DynamicResource ResourceKey=ResModify}" Name="btnModify" Glyph="/Gemr;component/Images/16/modify_16.png" BarItemDisplayMode="ContentAndGlyph"/>
                </dxb:BarManager.Items>
    
                <dxb:BarManager.Bars>
                    <dxb:Bar Caption="{DynamicResource ResourceKey=ResAllergy}" Name="barMainBar" 
                             Style="{StaticResource ResourceKey=BarUseWholeRoleStyle}">
                        <dxb:Bar.DockInfo>
                            <dxb:BarDockInfo ContainerName="bccSearchCondContainer" />
                        </dxb:Bar.DockInfo>
                        <dxb:BarButtonItemLink BarItemName="btnNew" />
                        <dxb:BarButtonItemLink BarItemName="btnModify" />
                    </dxb:Bar>
                </dxb:BarManager.Bars>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
    
                    <!--Search-->
                    <dxlc:LayoutControl Orientation="Horizontal" Grid.Row="0" 
                                        Style="{StaticResource ResourceKey=LCBackgroundStyleWithBar}">
    
                        <dxlc:LayoutItem Label="{DynamicResource ResourceKey=ResType}" Width="200">
                            <dxe:ComboBoxEdit Name="cbxSearchType" IsTextEditable="True" >
                                <dxe:ComboBoxEditItem Content="{DynamicResource ResourceKey=ResAccountingTreatment}" ></dxe:ComboBoxEditItem>
                                <dxe:ComboBoxEditItem Content="{DynamicResource ResourceKey=ResAccountingPayment}" ></dxe:ComboBoxEditItem>
                                <dxe:ComboBoxEditItem Content="{DynamicResource ResourceKey=ResAccountingHealthcareOperations}" ></dxe:ComboBoxEditItem>
                            </dxe:ComboBoxEdit>
                        </dxlc:LayoutItem>
    
                        <dxlc:LayoutItem Label="{DynamicResource ResourceKey=ResAccountingStartTime}" Width="200">
                            <dxe:DateEdit Name="dateSearchStartTime" IsTextEditable="False" Mask="{DynamicResource ResourceKey=ResDateFormat}" MaskUseAsDisplayFormat="True"/>
                        </dxlc:LayoutItem>
    
                        <dxlc:LayoutItem Label="{DynamicResource ResourceKey=ResAccountingEndTime}" Width="200">
                            <dxe:DateEdit Name="dateSearchEndTime" IsTextEditable="False" Mask="{DynamicResource ResourceKey=ResDateFormat}" MaskUseAsDisplayFormat="True"/>
                        </dxlc:LayoutItem>
    
                        <dxlc:LayoutItem Label="{DynamicResource ResourceKey=ResQueryTerm}" Width="200">
                            <dxe:ComboBoxEdit Name="cbxSearchQueryTerm" IsTextEditable="True" >
                                <dxe:ComboBoxEditItem Content="{DynamicResource ResourceKey=ResPatientID}" ></dxe:ComboBoxEditItem>
                                <dxe:ComboBoxEditItem Content="{DynamicResource ResourceKey=ResUserID}" ></dxe:ComboBoxEditItem>
                                <dxe:ComboBoxEditItem Content="{DynamicResource ResourceKey=ResDescription}" ></dxe:ComboBoxEditItem>
                            </dxe:ComboBoxEdit>
                        </dxlc:LayoutItem>
                        <dxe:TextEdit Name="txtTerm" Width="200"/>
                        <Button Content="{DynamicResource ResourceKey=ResSearch}" Name="btnSearch" 
                                Style="{StaticResource ResourceKey=ShortButtonStyle}"></Button>
                    </dxlc:LayoutControl>
    
                    <!--Bar-->
                    <dxb:BarContainerControl Name="bccSearchCondContainer" Grid.Row="1"></dxb:BarContainerControl>
    
                    <!--List-->
                    <dxg:TreeListControl Name="treeListControl1" Grid.Row="2" Style="{StaticResource ResourceKey=ListStyleOfEL}">
    
                        <dxg:TreeListControl.Columns>
                            <dxg:TreeListColumn Header="{DynamicResource ResourceKey=ResEnteredDate}" Width="200"
                                            DisplayMemberBinding="{Binding Path=accountingDisclosure.CreatedDate,
                                            Converter={StaticResource ResourceKey=dateTimeConverter},ConverterParameter='MMddyyyy'}"/>
                            <dxg:TreeListColumn Header="{DynamicResource ResourceKey=ResDisclosureType}" Width="200" FieldName="accountingDisclosure.DisclosureType"/>
                            <dxg:TreeListColumn Header="{DynamicResource ResourceKey=ResPatientID}" Width="200" FieldName="accountingDisclosure.PatientId"/>
                            <dxg:TreeListColumn Header="{DynamicResource ResourceKey=ResUserID}" Width="200" FieldName="accountingDisclosure.UserId"/>
                            <dxg:TreeListColumn Header="{DynamicResource ResourceKey=ResDescription}"  Width="200" FieldName="accountingDisclosure.Description"/>
                        </dxg:TreeListControl.Columns>
    
                        <dxg:TreeListControl.View>
                            <dxg:TreeListView Name="treeListView1" MultiSelectMode="None" Style="{StaticResource ResourceKey=ReadOnlyListViewStyle}" />
                        </dxg:TreeListControl.View>
    
                        <dxb:BarManager.DXContextMenu>
                            <dxb:PopupMenuInfo>
                                <dxb:PopupMenuInfo.ItemLinks>
                                    <dxb:BarButtonItemLink BarItemName="btnNew" />
                                    <dxb:BarButtonItemLink BarItemName="btnModify" />
                                </dxb:PopupMenuInfo.ItemLinks>
                            </dxb:PopupMenuInfo>
                        </dxb:BarManager.DXContextMenu>
    
                    </dxg:TreeListControl>
    
                </Grid>
            </dxb:BarManager>
  • 相关阅读:
    Elasticsearch入门系列(一)
    清楚Chrome缓存
    解决IIS启动站点报错
    Input type="file"上传文件change事件只触发一次解决方案
    本地计算机上的XXX服务启动后停止,某些服务在未由其它服务或程序使用时将自动停止
    SQL Server Datetime类型为NULL不能用ISNULL(datetime,' ')来判断,会导致1900-01-01
    浏览指南
    谁发明的c++
    c++的用处
    不一样的二叉树遍历(小学生都会)
  • 原文地址:https://www.cnblogs.com/quietwalk/p/3540502.html
Copyright © 2011-2022 走看看