public ConfirmDlg(string msg)
 {
     InitializeComponent();
     txtMsg.Text = msg;
     Buttons = new Button[] {
         new Button {
             Content = "Confirm",
             Style = FindResource("StyledButton") as Style
         },
         CancelButton
     };
     Buttons.Last().Style = FindResource("StyledButton") as Style;
     ((Button)Buttons.First()).Click += onOK;
 }