Exemplo n.º 1
0
        private void ShowFilterEditor(DevExpress.Xpf.Grid.FilterEditorEventArgs e)
        {
            if (IsFilterWindowOpened)
            {
                return;
            }
            string titleText = DevExpress.Xpf.Grid.GridControlLocalizer.Active.GetLocalizedString(GridControlStringId.FilterEditorTitle);

            window          = new FilterWindow(e.FilterControl);
            window.Owner    = this;
            window.Closing += OnFilterWindowClosing;
            window.Title    = titleText;
            window.Icon     = DevExpress.Xpf.Core.Native.ImageHelper.CreateImageFromCoreEmbeddedResource("Editors.Images.FilterControl.filter.png");
            window.Grid.Children.Add(e.FilterControl);
            window.ShowDialog();
        }
Exemplo n.º 2
0
 private void TableView_FilterEditorCreated(object sender, DevExpress.Xpf.Grid.FilterEditorEventArgs e)
 {
     e.Handled = true;
     ShowFilterEditor(e);
 }