private void wrapPanelWindowButton_Click(object sender, RoutedEventArgs e) { WrapPanelWindow window = new WrapPanelWindow(); window.ShowDialog(); }