'宣言 Public Property ExpandStoryboard As Storyboard
public Storyboard ExpandStoryboard {get; set;}
Private Sub InitSB () xamOutlookBar1.ExpandStoryboard = Me.Resources("XOBexpand") xamOutlookBar1.MinimizeStoryboard = Me.Resources("XOBminimize") End Sub
public IG_XamOutlookBar_Properties() { InitializeComponent(); xamOutlookBar1.ExpandStoryboard = this.Resources["XOBexpand"] as Storyboard; xamOutlookBar1.MinimizeStoryboard= this.Resources["XOBminimize"] as Storyboard; }