コード例 #1
0
 public void SetScreen(Screen screen)
 {
     if (screen != null)
     {
         ForEachElementInTree_BreadthFirst(new SetScreenAction(screen));
     }
 }
コード例 #2
0
        public void Minimize()
        {
            WindowState = FormWindowState.Minimized;
            Screen screen = _screenManager.FocusedScreen;

            if (screen != null)
            {
                screen.RemoveCurrentFocus();
            }
        }
コード例 #3
0
        public void StopStoryboard(Storyboard board)
        {
            Screen screen = Screen;

            if (screen == null)
            {
                return;
            }
            screen.Animator.StopStoryboard(board, this);
        }
コード例 #4
0
        public void StartStoryboard(Storyboard board, HandoffBehavior handoffBehavior)
        {
            Screen screen = Screen;

            if (screen == null)
            {
                return;
            }
            screen.Animator.StartStoryboard(board, this, handoffBehavior);
        }
コード例 #5
0
        protected internal void StopAndDispose()
        {
            Screen screen = Screen;

            if (screen != null)
            {
                screen.Animator.StopAll(this);
            }

            Dispose(); // First dispose bindings before we can reset our VisualParent
            VisualParent = null;
        }
コード例 #6
0
        public void SetValueInRenderThread(IDataDescriptor dataDescriptor, object value)
        {
            if (_elementState == ElementState.Disposing)
            {
                return;
            }
            Screen screen = Screen;

            if (screen == null || _elementState == ElementState.Available || _elementState == ElementState.Preparing ||
                Thread.CurrentThread == SkinContext.RenderThread)
            {
                dataDescriptor.Value = value;
            }
            else
            {
                screen.Animator.SetValue(dataDescriptor, value);
            }
        }
コード例 #7
0
ファイル: UIElement.cs プロジェクト: BigGranu/MediaPortal-2
 public void SetScreen(Screen screen)
 {
   if (screen != null)
     ForEachElementInTree_BreadthFirst(new SetScreenAction(screen));
 }
コード例 #8
0
ファイル: UIElement.cs プロジェクト: BigGranu/MediaPortal-2
 public SetScreenAction(Screen screen)
 {
   _screen = screen;
 }
コード例 #9
0
 public SetScreenAction(Screen screen)
 {
     _screen = screen;
 }