DownloadIndicator.xaml.cs (1443B)
1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Runtime.InteropServices.WindowsRuntime; 6 using Windows.Foundation; 7 using Windows.Foundation.Collections; 8 using Windows.UI.Xaml; 9 using Windows.UI.Xaml.Controls; 10 using Windows.UI.Xaml.Controls.Primitives; 11 using Windows.UI.Xaml.Data; 12 using Windows.UI.Xaml.Input; 13 using Windows.UI.Xaml.Media; 14 using Windows.UI.Xaml.Navigation; 15 16 // The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236 17 18 namespace File360 19 { 20 public sealed partial class DownloadIndicator : Button 21 { 22 public DownloadIndicator() 23 { 24 this.InitializeComponent(); 25 //Width = (Window.Current.Bounds.Width * 2) / 3; 26 //Height = Window.Current.Bounds.Height / 10; 27 } 28 29 public string ContentText 30 { 31 get { return FileName.Text; } 32 set { FileName.Text = value; } 33 } 34 public double ProgressBarValue 35 { 36 get { return progBar.Value; } 37 set { progBar.Value = value; } 38 } 39 public double DownSpeed 40 { 41 get { return progBar.Value; } 42 set { progBar.Value = value; } 43 } 44 //public SolidColorBrush Status 45 //{ 46 // get { return (SolidColorBrush)LayoutGrid.Background; } 47 // set { LayoutGrid.Background = value; } 48 //} 49 } 50 }