PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/VBWPFClipboardViewer/MainWindow.xaml

#
XAML | 21 lines | 18 code | 3 blank | 0 comment | 0 complexity | 1e97f226b01aa4350ee36ac7a4a477bf MD5 | raw file
 1<Window x:Class="MainWindow"
 2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4    Title="Clipboard Viewer" Height="480" Width="640" Background="Black" Closed="Window_Closed">
 5    <Grid>
 6        <Grid.RowDefinitions>
 7            <RowDefinition Height="Auto"/>
 8            <RowDefinition/>
 9            <RowDefinition Height="Auto"/>
10        </Grid.RowDefinitions>
11
12        <Label Grid.Row="0" Foreground="White" Margin="6,0,6,0">Clipboard content:</Label>
13
14        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
15            <Button x:Name="btnSwitch" Width="90" Height="25" Content="Start viewer" Padding="3" Margin="6,6,6,6" Click="btnSwitch_Click" />
16            <Button x:Name="btnClose" Width="90" Height="25" Content="Close" Padding="3" Margin="6,6,6,6" Click="btnClose_Click" />
17        </StackPanel>
18
19        <DockPanel x:Name="pnlContent" Grid.Row="1" Background="White" Margin="6,6,6,6" LastChildFill="True"/>
20    </Grid>
21</Window>