private void CreateControl(HwndSource piclSource)
 {
     TickerControl loclControl = new TickerControl();
     loclControl.InitializeComponent();
     
     Window loclHostWindow = new Window();
     loclHostWindow.WindowStyle = WindowStyle.None;
     loclHostWindow.WindowState = WindowState.Normal;
     loclHostWindow.Left = 0;
     loclHostWindow.Top = 0;
     loclHostWindow.ShowInTaskbar = false;
     loclHostWindow.Content = loclControl;
     loclHostWindow.ShowActivated = true;
     loclControl.Height = 200;
     loclControl.Width = (double)f_Window.Dispatcher.Invoke(new Func<double>(() => { return f_Window.Width; }));
     piclSource.SizeToContent = SizeToContent.WidthAndHeight;
     loclHostWindow.SizeToContent = SizeToContent.WidthAndHeight;
     loclHostWindow.Show();
     SetParent(new WindowInteropHelper(loclHostWindow).Handle, piclSource.Handle);
 }
 private void AddControl(TickerControl piclControl)
 {
     f_Window.Content = new ContentControl() { Content = piclControl };
 }