void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Carousels = ((AduSkin.Controls.Metro.Carousel)(target)); return; } this._contentLoaded = true; }
private static void OnAutoPlayChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { Carousel carousel = d as Carousel; carousel.autoPlayTimer.Enabled = (bool)e.NewValue; }