/******************************/ /* 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); }
/// <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); }