日期:2014-05-20  浏览次数:20817 次

关于DXperience的一些问题,求解
最近在研究DXperience但是没有什么成果,下面是其中一个窗体的设计代码:
<local:GridDemoModuleControl x:Class="GridDemo.Grid.AutoFilterRow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"  
  xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" 
  xmlns:local="clr-namespace:GridDemo.Grid"
xmlns:dxdb="http://schemas.devexpress.com/winfx/2008/xaml/demobase" 
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
  xmlns:dxdemo="clr-namespace:GridDemo"
xmlns:collections="clr-namespace:System.Collections;assembly=mscorlib"
  Height="400" Width="800" Margin="0, 54, 0, 0"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  <local:GridDemoModuleControl.Resources>
  <ResourceDictionary>
  <ResourceDictionary.MergedDictionaries>
  <ResourceDictionary Source="/GridDemo;component/Themes/generic.xaml"/>
  </ResourceDictionary.MergedDictionaries>
  <DataTemplate x:Key="columnOptionsTemplate">
  <StackPanel Name="options" DockPanel.Dock="Right" DataContext="{Binding Path=TemplatedParent.DataContext, RelativeSource={RelativeSource TemplatedParent}}" Orientation="Horizontal" dx:DragManager.IsStartDragPlace="false">
  <ToggleButton Name="showOptionsButton" Style="{DynamicResource OptionsButton}" Width="19" Height="19" Margin="0,0,3,0" ToolTip="Show filtering options"/>
  <Popup IsOpen="{Binding ElementName=showOptionsButton, Path=IsChecked}" 
PlacementTarget="{Binding ElementName=showOptionsButton}"  
AllowsTransparency="True"
PopupAnimation="Fade"
Placement="Bottom"
StaysOpen="False"
>
  <dx:MouseEventsDeadEnd>
  <ContentControl Style="{DynamicResource DemoPopupPanelStyle}" Width="260">
  <StackPanel>
  <GroupBox Header="Options" Margin="0,0,0,8">
  <StackPanel Orientation="Vertical">
  <CheckBox Margin="0,0,0,4" IsChecked="{Binding Path=AllowAutoFilter, Mode=TwoWay}" Content="Allow Auto Filter"/>
  <CheckBox Margin="0,0,0,4" IsChecked="{Binding Path=ImmediateUpdateAutoFilter, Mode=TwoWay}" Content="Immediate Update Auto Filter"/>
  </StackPanel>
  </GroupBox>
  <GroupBox x:Name="autoFilterCondition" Header="Auto Filter Condition" Margin="0,0,0,8">
  <ListBox Style="{DynamicResource RadioButtonList}" SelectedItem="{Binding Path=AutoFilterCondition, Mode=TwoWay}">
  <ListBox.ItemsSource>
  <collections:ArrayList>