private void FadeInEffect(object sender, EventArgs e) { this.Refresh(); FadeIn(this, 1); ListBox1.Focus(); }
public MainWindow(ITwitterViewModel vm) { _vm = vm; DataContext = _vm; InitializeComponent(); ListBox1.Focus(); }
private void DateDialog_Loaded(object sender, System.Windows.RoutedEventArgs e) { if (Document.Editor.My.Computer.Info.OSVersion >= "6.0") { if (Document.Editor.My.Settings.Options_EnableGlass) { AppHelper.ExtendGlassFrame(this, new Thickness(-1, -1, -1, -1)); } } ListBox1.Items.Add(System.DateTime.Now.ToString("M/dd/yyyy")); ListBox1.Items.Add(System.DateTime.Now.ToString("M/dd/yy")); ListBox1.Items.Add(System.DateTime.Now.ToString("MM/dd/yy")); ListBox1.Items.Add(System.DateTime.Now.ToString("MM/dd/yyyy")); ListBox1.Items.Add(System.DateTime.Now.ToString("yy/MM/dd")); ListBox1.Items.Add(System.DateTime.Now.ToString("yyyy-MM-dd")); ListBox1.Items.Add(System.DateTime.Now.ToString("dd-MMM-yy")); ListBox1.Items.Add(System.DateTime.Now.ToString("dddd, MMMM dd, yyyy")); ListBox1.Items.Add(System.DateTime.Now.ToString("MMMM dd, yyyy")); ListBox1.Items.Add(System.DateTime.Now.ToString("dddd, dd MMMM, yyyy")); ListBox1.Items.Add(System.DateTime.Now.ToString("dd MMMM, yyyy")); ListBox1.SelectedIndex = 0; ListBox1.Focus(); }