src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs
changeset 168 d70ee2002f75
parent 162 0b9f989bcb37
child 169 3a407c966e57
equal deleted inserted replaced
165:e78e40b9d761 168:d70ee2002f75
    96             {
    96             {
    97                 timer = value;
    97                 timer = value;
    98             }
    98             }
    99         }
    99         }
   100         #endregion
   100         #endregion
   101         
   101 
   102 
   102 
   103 
   103         #region Constructors
   104         
   104 
   105 		public UserControlTimeLine()
   105         public UserControlTimeLine()
   106 		{
   106 		{
   107 			this.InitializeComponent();
   107 			this.InitializeComponent();
   108             
   108             
   109 			// Insert code required on object creation below this point.
   109 			// Insert code required on object creation below this point.
   110             
   110 
   111 		}
   111         }
       
   112         #endregion
   112 
   113 
   113         public void initslider(double totalmillisecondsPar)
   114         public void initslider(double totalmillisecondsPar)
   114         {
   115         {
   115             totalmilliseconds = totalmillisecondsPar;
   116             totalmilliseconds = totalmillisecondsPar;
   116             slider.Maximum = totalmilliseconds;
   117             slider.Maximum = totalmilliseconds;
   217         {
   218         {
   218             //startOrEndAnnotation();
   219             //startOrEndAnnotation();
   219         }
   220         }
   220         #endregion
   221         #endregion
   221 
   222 
       
   223         public void thumbRotation(bool isplaying)
       
   224         { 
       
   225             //Templateslider.Style.Setters["Template"]
       
   226             if(isplaying)
       
   227                 slider.Style = FindResource("FingersDance.Control.Slider") as Style;
       
   228             else
       
   229                 slider.Style = FindResource("SurfaceSliderStylePause") as Style;
       
   230         }
   222         public Boolean isAnnotationAccepted(AnnotationViewModel avm)
   231         public Boolean isAnnotationAccepted(AnnotationViewModel avm)
   223         {
   232         {
   224             Boolean annotOk = true;
   233             Boolean annotOk = true;
   225             // We check if the annotation's begin and end timecodes allow a new annotation creation
   234             // We check if the annotation's begin and end timecodes allow a new annotation creation
   226             if (CuttingVM != null && AnnotWaiting == false)
   235             if (CuttingVM != null && AnnotWaiting == false)