Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 23rd, 2012  |  syntax: None  |  size: 1.14 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Image margin behavior
  2. System.Windows.Controls.Image proba = new System.Windows.Controls.Image();
  3.         ImageSource imageSource = GetSlidePart(PresentationDocument.Open(path, false), 0, "rId2");
  4.         proba.Source = imageSource;
  5.         proba.Width = 2245721 / 9525;
  6.         proba.Height = 2286004 / 9525;
  7.         proba.Margin = new Thickness(40, 16, 0, 0);
  8.         gridName.Children.Add(proba);
  9.        
  10. image1.Source = GetSlidePart(PresentationDocument.Open(path, false), 0, "rId2");
  11.        
  12. <Window x:Class="GetInfoFromPptxFile.MainWindow"
  13.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  14.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  15.     Title="MainWindow" Height="720" Width="960">
  16.  
  17. <Grid Name="gridName">
  18.     <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="416,20,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
  19.     <Image Height="150" HorizontalAlignment="Left" Margin="40,16,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="200" />
  20. </Grid>
  21. </Window>
  22.        
  23. proba.VerticalAlignment = VerticalAlignment.Top;
  24. proba.HorizontalAlignment = HorizontalAlignment.Left;