using MahApps.Metro.Controls; using MaterialDesignThemes.Wpf; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace Tango.MachineStudio.DB.Windows { /// /// Interaction logic for DBDialogWindow.xaml /// public partial class DBDialogWindow : MetroWindow { public DBDialogWindow() { InitializeComponent(); } public String InnerTitle { get { return (String)GetValue(InnerTitleProperty); } set { SetValue(InnerTitleProperty, value); } } public static readonly DependencyProperty InnerTitleProperty = DependencyProperty.Register("InnerTitle", typeof(String), typeof(DBDialogWindow), new PropertyMetadata(null)); public PackIconKind IconKind { get { return (PackIconKind)GetValue(IconKindProperty); } set { SetValue(IconKindProperty, value); } } // Using a DependencyProperty as the backing store for IconKind. This enables animation, styling, binding, etc... public static readonly DependencyProperty IconKindProperty = DependencyProperty.Register("IconKind", typeof(PackIconKind), typeof(DBDialogWindow), new PropertyMetadata(PackIconKind.TableEdit)); public DBDialogWindow(FrameworkElement content) : this() { presenter.Content = content; } private void OnOKClicked(object sender, RoutedEventArgs e) { DialogResult = true; Close(); } private void OnCancelClicked(object sender, RoutedEventArgs e) { DialogResult = false; Close(); } } }