private void pivotGrid_CellDblClick(object sender, PivotCellEventArgs e) { if (!showDrillDown.IsChecked.Value) { return; } GridControl grid = new GridControl(); ThemeManager.SetThemeName(grid, ThemeManager.ApplicationThemeName); grid.HorizontalAlignment = HorizontalAlignment.Stretch; grid.VerticalAlignment = VerticalAlignment.Stretch; PivotDrillDownDataSource ds = e.CreateDrillDownDataSource(); grid.View = new TableView() { AllowPerPixelScrolling = true }; grid.ItemsSource = ds; grid.PopulateColumns(); grid.ShowBorder = false; popupContainer = FloatingContainer.ShowDialog(grid, this, new Size(520, 300), new FloatingContainerParameters() { AllowSizing = true, CloseOnEscape = true, Title = "Drill Down Form", ClosedDelegate = null }); AddLogicalChild(popupContainer); }
void ShowCalculatorWindow(object sender, RoutedEventArgs e) { Calculator calculator = new Calculator() { ShowBorder = false, Width = 220 }; FloatingContainer container = FloatingContainer.ShowDialog(calculator, editor, new Size(1, 1), new FloatingContainerParameters() { Title = "Calculator" }); container.SizeToContent = SizeToContent.WidthAndHeight; container.ContainerStartupLocation = WindowStartupLocation.CenterOwner; calculator.Focus(); }
void IColumnChooser.Show() { if (Container == null || Container.IsClosed) { CustomColumnChooserContent columnChooserContent = new CustomColumnChooserContent(); columnChooserContent.View = Owner; Container = FloatingContainer.ShowDialog(columnChooserContent, Owner, new Size(500, 350), new FloatingContainerParameters() { Title = "Column Chooser", AllowSizing = true, CloseOnEscape = false, ShowModal = true }); Container.Hidden += new RoutedEventHandler(Container_Hidden); } else { Container.IsOpen = true; } }
public static void ShowDialog(string title, string text, FrameworkElement owner) { TextBlock textBox = new TextBlock() { Text = text }; textBox.TextWrapping = TextWrapping.Wrap; textBox.VerticalAlignment = VerticalAlignment.Center; textBox.HorizontalAlignment = HorizontalAlignment.Center; DialogControl dialogControl = new DialogControl() { DialogContent = textBox, UseContentIndents = true }; dialogControl.CancelButton.Visibility = System.Windows.Visibility.Collapsed; FloatingContainer.ShowDialog(dialogControl, owner, Size.Empty, new FloatingContainerParameters() { AllowSizing = false, CloseOnEscape = true, Title = title }); }