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>

 

posted @ 2014-02-08 15:08  quietwalk  阅读(1259)  评论(1编辑  收藏  举报