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; } }
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e) { ProgressAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as ProgressAttributes; if (null != tempAttributes) { attributes = progressAttrs = tempAttributes; RelayoutRequest(); } }
private void Initialize() { progressAttrs = attributes as ProgressAttributes; if (null == progressAttrs) { throw new Exception("Progress attribute parse error."); } // create necessary components InitializeTrack(); InitializeBuffer(); InitializeProgress(); InitializeLoading(); }
public Progress(ProgressAttributes attributes) : base(attributes) { Initialize(); }