Пример #1
0
        // public DispatcherTimer _mTimer;
        public unsafe VideoPlayerHost()
        {
            Loaded   += VideoPlayer_Loaded;
            Unloaded += VideoPlayer_Unloaded;
            _callback = OnGetBuffer;
            _form     = new VideoPlayerForm(this);
            var host = new WindowsFormsHost {
                Child = _form
            };

            Content = host;

            _lft = null;
        }
Пример #2
0
        public static FloatingToolBars ShowToolBars(Window parent)
        {
            var ret = new FloatingToolBars
            {
                Owner = parent,

                DataContext = parent.DataContext,
            };

            ret.Left = parent.Left + parent.Width - 140;
            ret.Top  = parent.Top;
            //ret.Show();
            m_plf = ret;
            return(ret);
        }
Пример #3
0
        private void PhoneView_OnLoaded(object sender, RoutedEventArgs e)
        {
            var hwnd = new System.Windows.Interop.WindowInteropHelper(this).Handle;

            _rgn = NativeMethods.CreateRoundRectRgn(0, 0, Convert.ToInt32(ActualWidth), Convert.ToInt32(ActualHeight), 50, 50);
            NativeMethods.SetWindowRgn(hwnd, _rgn, true);

            m_lft = FloatingToolBars.ShowToolBars(Window.GetWindow(this));

            if (m_lft != null)
            {
                Player._lft = m_lft;

                m_PhoneViewModel._llft = m_lft;
            }


            //Window pw = Window.GetWindow(m_flt);
        }