Exemplo n.º 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.imageWindow = ((RASTR_2.ImgWindow)(target));
         return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 2
0
        private void OpenImageInWindow(object sender, RoutedEventArgs e)
        {
            if ((sender as Image).Source == null)
            {
                return;
            }
            var imgWindow = new ImgWindow();

            imgWindow.Background = new ImageBrush((sender as Image).Source);
            imgWindow.Show();
        }