Exemplo n.º 1
0
        public MediaPreviewView()
        {
            InitializeComponent();
          
            TabName = "Preview";
            TabIsSelected = true;          
            TabMargin = new Thickness(2);
            TabBorderThickness = new Thickness(2);
            TabBorderBrush = ClassicBorderDecorator.ClassicBorderBrush;
           
            TimeAdorner = new TimeAdorner(previewImage);
                  
            Timer = new DispatcherTimer();
            Timer.Tick += Timer_Elapsed;
            Timer.Interval = new TimeSpan(0, 0, 0, 0, 5);

            nrWaitingThreads = 0;
            Semaphore = new SemaphoreSlim(1);
        }
        public MediaPreviewView()
        {
            InitializeComponent();

            TabName            = "Preview";
            TabIsSelected      = true;
            TabMargin          = new Thickness(2);
            TabBorderThickness = new Thickness(2);
            TabBorderBrush     = ClassicBorderDecorator.ClassicBorderBrush;

            TimeAdorner = new TimeAdorner(previewImage);

            Timer          = new DispatcherTimer();
            Timer.Tick    += Timer_Elapsed;
            Timer.Interval = new TimeSpan(0, 0, 0, 0, 5);

            nrWaitingThreads = 0;
            Semaphore        = new SemaphoreSlim(1);
        }