void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Carousel = ((ZdfFlatUI.Carousel)(target)); return; case 2: this.toggleBtnAutoPlay = ((ZdfFlatUI.FlatToggleButton)(target)); return; case 3: this.FlatSilder = ((ZdfFlatUI.FlatSilder)(target)); return; case 4: this.Carousel2 = ((ZdfFlatUI.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; }