MyImage.ImageOpened += new EventHandler(Image_ImageOpened); } void Image_ImageOpened(object sender, RoutedEventArgs e) { Image img = (Image)sender; BitmapImage bi = (BitmapImage)img.Source; double width = bi.PixelWidth; double height = bi.PixelHeight; }