equal
deleted
inserted
replaced
|
1 using System; |
|
2 using System.IO; |
|
3 using System.Net; |
|
4 using System.Windows; |
|
5 using System.Windows.Controls; |
|
6 using System.Windows.Data; |
|
7 using System.Windows.Media; |
|
8 using System.Windows.Media.Animation; |
|
9 using System.Windows.Navigation; |
|
10 |
|
11 namespace FingersDance.Control.TimeLine |
|
12 { |
|
13 public partial class UserControlTimeLine |
|
14 { |
|
15 public Microsoft.Surface.Presentation.Controls.SurfaceSlider Slider |
|
16 { |
|
17 get { |
|
18 return SurfaceSlider; |
|
19 } |
|
20 set { |
|
21 SurfaceSlider = value; |
|
22 } |
|
23 } |
|
24 |
|
25 public UserControlTimeLine() |
|
26 { |
|
27 this.InitializeComponent(); |
|
28 |
|
29 // Insert code required on object creation below this point. |
|
30 } |
|
31 |
|
32 private void SurfaceSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e) |
|
33 { |
|
34 /*TimeSpan ts = TimeSpan.FromSeconds(e.NewValue); |
|
35 LabelSliderPosition.Content = |
|
36 String.Format("{0:00}:{1:00}:{2:00}", |
|
37 ts.Hours, ts.Minutes, ts.Seconds); |
|
38 SurfaceSlider.Maximum = ts.TotalSeconds; |
|
39 SurfaceSlider.SmallChange = 1; |
|
40 SurfaceSlider.LargeChange = Math.Min(10, ts.Seconds / 10);*/ |
|
41 } |
|
42 } |
|
43 } |