Advertisement
desdemona

wpf task manager layout

Nov 12th, 2014
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.71 KB | None | 0 0
  1. <Window x:Class="task_manager.MainWindow"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.        Title="Doskonały menadżer zadań" Height="650" Width="600" ResizeMode="NoResize">
  5.     <Grid>
  6.         <StackPanel Orientation="Vertical">
  7.                 <StackPanel VerticalAlignment="Top" Orientation="Horizontal">
  8.                     <Label Content="Lista procesów"/>
  9.                 <Button Content="Odśwież listę" Width="200" HorizontalAlignment="Center" Click="Button_Refresh"/>
  10.                 </StackPanel>
  11.  
  12.             <ListBox x:Name="Master" Height="250"/>
  13.  
  14.             <Label Content="Szczegóły dotyczące procestu" VerticalAlignment="Bottom"/>
  15.             <Grid VerticalAlignment="Bottom" Height="300">
  16.                 <Grid.RowDefinitions>
  17.                     <RowDefinition Height="Auto" />
  18.                     <RowDefinition Height="Auto" />
  19.                     <RowDefinition Height="Auto" />
  20.                     <RowDefinition Height="Auto" />
  21.                     <RowDefinition Height="*" />
  22.                     <RowDefinition Height="*" />
  23.                     <RowDefinition Height="Auto" />
  24.                 </Grid.RowDefinitions>
  25.                 <Grid.ColumnDefinitions>
  26.                     <ColumnDefinition Width="Auto" />
  27.                     <ColumnDefinition Width="*" />
  28.                 </Grid.ColumnDefinitions>
  29.  
  30.                 <Label Grid.Row="0" Grid.Column="0" Content="Nazwa:"/>
  31.                 <Label Grid.Row="1" Grid.Column="0" Content="Id:"/>
  32.                 <Label Grid.Row="2" Grid.Column="0" Content="Priorytet:"/>
  33.                 <Label Grid.Row="3" Grid.Column="0" Content="Parametry startowe:"/>
  34.                 <Label Grid.Row="4" Grid.Column="0" Content="Lista wątków:"/>
  35.                 <Label Grid.Row="5" Grid.Column="0" Content="Lista modułów:"/>
  36.  
  37.                 <Label x:Name="nameLabel" Grid.Row="0" Grid.Column="1" />
  38.                 <Label x:Name="idLabel" Grid.Row="1" Grid.Column="1"/>
  39.                 <Label x:Name="priorityLabel"  Grid.Row="2" Grid.Column="1" />
  40.                 <Label x:Name="startParameters"  Grid.Row="3" Grid.Column="1" />
  41.                 <ListBox x:Name="threadList"  Grid.Row="4" Grid.Column="1" />
  42.                 <ListBox x:Name="moduleList" Grid.Row="5" Grid.Column="1" />
  43.                
  44.                 <StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal">
  45.                     <Button Content="Zabij" HorizontalAlignment="Left" Width="100"/>
  46.                     <Button Content="Zmień prorytet" HorizontalAlignment="Right" Width="100"/>
  47.                 </StackPanel>
  48.             </Grid>
  49.         </StackPanel>
  50.     </Grid>
  51. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement