Example #1
0
        /******************************/
        /*           Events           */
        /******************************/
        #region Events

        /// <summary>
        /// Window_Loaded
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _visualHost      = new MyVisualHost();
            _visualHost.Hit += HitHandler;
            MyCanvas.Children.Add(_visualHost);
        }
Example #2
0
 /// <summary>
 /// Window_Loaded
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     _visualHost = new MyVisualHost();
     _visualHost.Hit += HitHandler;
     MyCanvas.Children.Add(_visualHost);
 }