public MainWindow()
 {
     InitializeComponent();
     this.notifyCount.Text = "20";
     // 应用下拉日历样式
     TextBox tb = new TextBox();
     Style sCalendar = (Style)tb.TryFindResource("tbCalendarStyle");
     if (sCalendar != null)
         this.datePick.Style = sCalendar;
     //应用动画
     System.Windows.Media.Animation.Storyboard s = (System.Windows.Media.Animation.Storyboard)TryFindResource("sb");
     s.Begin();	// Start animation
 }