コード例 #1
0
        public ProgressAttributes(ProgressAttributes attributes) : base(attributes)
        {
            if (null == attributes)
            {
                return;
            }

            if (null != attributes.TrackImageAttributes)
            {
                TrackImageAttributes = attributes.TrackImageAttributes.Clone() as ImageAttributes;
            }

            if (null != attributes.ProgressImageAttributes)
            {
                ProgressImageAttributes = attributes.ProgressImageAttributes.Clone() as ImageAttributes;
            }

            if (null != attributes.BufferImageAttributes)
            {
                BufferImageAttributes = attributes.BufferImageAttributes.Clone() as ImageAttributes;
            }

            if (null != attributes.LoadingImageAttributes)
            {
                LoadingImageAttributes = attributes.LoadingImageAttributes.Clone() as ImageAttributes;
            }
        }
コード例 #2
0
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            ProgressAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as ProgressAttributes;

            if (null != tempAttributes)
            {
                attributes = progressAttrs = tempAttributes;
                RelayoutRequest();
            }
        }
コード例 #3
0
        private void Initialize()
        {
            progressAttrs = attributes as ProgressAttributes;
            if (null == progressAttrs)
            {
                throw new Exception("Progress attribute parse error.");
            }

            // create necessary components
            InitializeTrack();
            InitializeBuffer();
            InitializeProgress();
            InitializeLoading();
        }
コード例 #4
0
 public Progress(ProgressAttributes attributes) : base(attributes)
 {
     Initialize();
 }