Example #1
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            this.Loaded += MusicPlayer_Loaded;

            this.PART_MusicProgress   = this.GetTemplateChild("PART_MusicProgress") as FlatSilder;
            this.PART_CurrentProgress = this.GetTemplateChild("PART_CurrentProgress") as TextBlock;

            if (this.PART_MusicProgress != null)
            {
                this.PART_MusicProgress.DropValueChanged += PART_MusicProgress_DropValueChanged;
            }
        }
Example #2
0
        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;
        }