Guest User

Untitled

a guest
Apr 25th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <UserControl x:Name="firstUC"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:Pres"
  7. xmlns:syncfusion ="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF"
  8. mc:Ignorable="d" x:Class="Pres.CRUserControl" Height="643.287" Width="1250.5">
  9.  
  10.  
  11. <StackPanel Margin="0,0,2,2" RenderTransformOrigin="0.511,0.536">
  12. <StackPanel.Background>
  13. <ImageBrush/>
  14. </StackPanel.Background>
  15. <Grid Height="612" x:Name="NewGrid">
  16. <Grid.Background>
  17. <ImageBrush ImageSource="Pictures/winBack.jpg" Stretch="UniformToFill"/>
  18. </Grid.Background>
  19. <Button Style="{StaticResource ButtonStyle}" HorizontalAlignment="Left" Height="92" Margin="346,221,0,0" VerticalAlignment="Top" Width="290" Opacity="1" Click="Button_Click" >
  20.  
  21. <Button.Background>
  22. <ImageBrush ImageSource="Pictures/try.PNG"/>
  23. </Button.Background>
  24.  
  25.  
  26. </Button>
  27. </Grid>
  28. </stackpanel>
  29. </usercontrol>
  30.  
  31. private void Button_Click(object sender, RoutedEventArgs e)
  32. {
  33. Area.MainWindow myWindow = new Area.MainWindow();
  34. myWindow.Show();
  35. this.Hide();
  36. }
Add Comment
Please, Sign In to add comment