GridMCDL.xaml 的互動邏輯
상속: System.Windows.Controls.Grid
예제 #1
0
 private void button1_Click (object sender, RoutedEventArgs e)
 {
     MeCore.MainWindow.gridOthers.Children.Clear();
     MeCore.MainWindow.gridOthers.Children.Add(gridforge ?? (gridforge = new GridForgeDLMain(this)));
     var ani = new DoubleAnimationUsingKeyFrames();
     ani.KeyFrames.Add(new LinearDoubleKeyFrame(0, TimeSpan.FromSeconds(0)));
     ani.KeyFrames.Add(new LinearDoubleKeyFrame(1, TimeSpan.FromSeconds(0.2)));
     MeCore.MainWindow.gridOthers.BeginAnimation(OpacityProperty, ani);
 }
예제 #2
0
 public GridForgeDLMinor(GridForgeDLMain parent, string mcver)
     : this()
 {
     this.parent = parent;
     mcversion = mcver;
 }