Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.94 KB | None | 0 0
  1. <Window x:Class="FinalPasteBin.MainWindow"
  2.         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.         Title="C# PasteBin" Height="480" Width="645
  5.        " ResizeMode="NoResize" WindowStartupLocation="CenterScreen" HorizontalAlignment="Center" VerticalAlignment="Center">
  6.     <Window.TaskbarItemInfo>
  7.         <TaskbarItemInfo Description="C# Pastebin"/>
  8.     </Window.TaskbarItemInfo>
  9.     <Window.Background>
  10.         <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  11.             <GradientStop Color="Black" Offset="0.594"/>
  12.             <GradientStop Color="#FF3C3939" Offset="1"/>
  13.         </LinearGradientBrush>
  14.     </Window.Background>
  15.     <Grid OpacityMask="Black" Height="451" VerticalAlignment="Top">
  16.         <Grid.ColumnDefinitions>
  17.             <ColumnDefinition Width="40*"/>
  18.             <ColumnDefinition Width="39*"/>
  19.         </Grid.ColumnDefinitions>
  20.         <Grid.RowDefinitions>
  21.             <RowDefinition Height="40*"/>
  22.             <RowDefinition Height="345*"/>
  23.             <RowDefinition Height="51*"/>
  24.             <RowDefinition Height="15*"/>
  25.         </Grid.RowDefinitions>
  26.         <TextBox x:Name="txtCode" Height="328" Grid.Row="1"  TabIndex="1" TextWrapping="Wrap" VerticalAlignment="Bottom" Margin="10,0,10,7" Padding="10,10,10,10" Grid.ColumnSpan="2" OpacityMask="Black" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" Foreground="White" BorderBrush="#FF3399FF">
  27.             <TextBox.Background>
  28.                 <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  29.                     <GradientStop Color="Black" Offset="0"/>
  30.                     <GradientStop Color="#FF111111" Offset="1"/>
  31.                 </LinearGradientBrush>
  32.             </TextBox.Background>
  33.         </TextBox>
  34.         <TextBox x:Name="txtTitle" Height="18" Margin="48,10,10,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="10" Grid.ColumnSpan="2" OpacityMask="Black" Background="Black" BorderBrush="#FF18348B" Foreground="White" TabIndex="0"/>
  35.         <Grid Margin="10,0,10,30" Grid.Row="2">
  36.             <Grid.ColumnDefinitions>
  37.                 <ColumnDefinition/>
  38.                 <ColumnDefinition/>
  39.             </Grid.ColumnDefinitions>
  40.             <Button x:Name="btnPasteFromClipboard" Content="From Clipboard" VerticalAlignment="Top" Grid.Column="1" Height="20" RenderTransformOrigin="0.5,0.5" Margin="2,0,0,0" Foreground="Black" FontFamily="Euphemia" BorderBrush="{x:Null}" FontWeight="Bold" TabIndex="3" Click="BtnPasteFromClipboard_OnClick">
  41.                 <Button.Background>
  42.                     <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
  43.                         <GradientStop Color="#FF0A630E" Offset="0.207"/>
  44.                         <GradientStop Color="#FF00FF0C" Offset="0.888"/>
  45.                     </LinearGradientBrush>
  46.                 </Button.Background>
  47.                 <Button.RenderTransform>
  48.                     <TransformGroup>
  49.                         <ScaleTransform/>
  50.                         <SkewTransform/>
  51.                         <RotateTransform Angle="0.203"/>
  52.                         <TranslateTransform/>
  53.                     </TransformGroup>
  54.                 </Button.RenderTransform>
  55.             </Button>
  56.             <Button Content="From Text" VerticalAlignment="Top" Height="20" Margin="0,0,6,0" Foreground="Black" BorderBrush="{x:Null}" FontFamily="Euphemia" FontWeight="Bold" TabIndex="2" Click="FromTextButtonClick">
  57.                 <Button.Background>
  58.                     <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
  59.                         <GradientStop Color="#FF0A630E" Offset="0.207"/>
  60.                         <GradientStop Color="#FF00FF0C" Offset="0.888"/>
  61.                     </LinearGradientBrush>
  62.                 </Button.Background>
  63.             </Button>
  64.         </Grid>
  65.         <Label Content="Title" HorizontalAlignment="Left" Margin="11,4,0,0" VerticalAlignment="Top" Height="28" OpacityMask="Black" Foreground="White" Width="32"/>
  66.         <Button Content="Exit" Margin="10,0" Grid.Row="2" VerticalAlignment="Top" Height="21" Foreground="White" TabIndex="4" Click="ExitButtonClick" Grid.Column="1">
  67.             <Button.BorderBrush>
  68.                 <SolidColorBrush Color="Black" Opacity="0.2"/>
  69.             </Button.BorderBrush>
  70.             <Button.Background>
  71.                 <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  72.                     <GradientStop Color="Black" Offset="0"/>
  73.                     <GradientStop Color="#FF7A2121" Offset="1"/>
  74.                     <GradientStop Color="#FFC50202" Offset="0.438"/>
  75.                 </LinearGradientBrush>
  76.             </Button.Background>
  77.         </Button>
  78.         <TextBox x:Name="txtOutput" Margin="10,30,10,0" Grid.Row="2" TextWrapping="Wrap"  Background="{x:Null}" BorderBrush="{x:Null}" Foreground="White" IsReadOnly="True"/>
  79.  
  80.     </Grid>
  81. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement