PasteBeaver

Service Manager Custom Form - Lendable Item

May 13th, 2014
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.44 KB | None | 0 0
  1. <UserControl
  2.             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5.             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6.             xmlns:scwpf="http://schemas.microsoft.com/SystemCenter/Common/UI/Wpf"
  7.             x:Class="CB.LendableCI.LendableCIForm"
  8.             xmlns:Custom="http://schemas.microsoft.com/wpf/2008/toolkit"    
  9.             mc:Ignorable="d"
  10.             d:DesignHeight="600" d:DesignWidth="500">
  11.     <Grid>
  12.         <Grid.ColumnDefinitions>
  13.             <ColumnDefinition/>
  14.             <ColumnDefinition/>
  15.         </Grid.ColumnDefinitions>
  16.         <Grid.RowDefinitions>
  17.             <RowDefinition Height="45"/>
  18.             <RowDefinition/>
  19.         </Grid.RowDefinitions>
  20.         <TextBox Grid.Column="0" Grid.Row="0" Text="{Binding Path=CB_ItemID, Mode=OneWay}" IsEnabled="False" VerticalAlignment="Center" />
  21.         <TabControl Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
  22.             <TabItem TabIndex="0" Header="General">
  23.                 <Grid>
  24.                     <Grid.ColumnDefinitions>
  25.                         <ColumnDefinition/>
  26.                         <ColumnDefinition/>
  27.                     </Grid.ColumnDefinitions>
  28.                     <Grid.RowDefinitions>
  29.                         <RowDefinition/>
  30.                         <RowDefinition/>
  31.                         <RowDefinition/>
  32.                         <RowDefinition/>
  33.                     </Grid.RowDefinitions>
  34.                     <StackPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
  35.                         <Label Content="Display Name:"/>
  36.                         <TextBox Text="{Binding DisplayName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="120" HorizontalAlignment="Left"/>
  37.                     </StackPanel>
  38.                     <StackPanel Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
  39.                         <Label Content="Status"/>
  40.                         <scwpf:ListPicker ParentCategoryId="3e1f693c-31d9-450f-5e17-a18b0dbf6bd4" SelectedItem="{Binding Path=CB_Status, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  41.                     </StackPanel>
  42.                     <StackPanel Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2">
  43.                         <Grid>
  44.                             <Grid.ColumnDefinitions>
  45.                                 <ColumnDefinition/>
  46.                                 <ColumnDefinition/>
  47.                                 <ColumnDefinition/>
  48.                             </Grid.ColumnDefinitions>
  49.                             <Grid.RowDefinitions>
  50.                                 <RowDefinition/>
  51.                             </Grid.RowDefinitions>
  52.                             <StackPanel Grid.Column="0" Grid.Row="0">
  53.                                 <Label Content="Reserved Date:"/>
  54.                                 <Custom:DatePicker SelectedDate="{Binding Path=CB_ReservedDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  55.                             </StackPanel>
  56.                             <StackPanel Grid.Column="1" Grid.Row="0">
  57.                                 <Label Content="Borrowed Date:"/>
  58.                                 <Custom:DatePicker SelectedDate="{Binding Path=CB_BorrowedDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  59.                             </StackPanel>
  60.                             <StackPanel Grid.Column="2" Grid.Row="0">
  61.                                 <Label Content="Return Date:"/>
  62.                                 <Custom:DatePicker SelectedDate="{Binding Path=CB_ReturnDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  63.                             </StackPanel>
  64.                         </Grid>
  65.                     </StackPanel>
  66.                     <StackPanel Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2">
  67.                         <Grid>
  68.                             <Grid.ColumnDefinitions>
  69.                                 <ColumnDefinition/>
  70.                                 <ColumnDefinition/>
  71.                             </Grid.ColumnDefinitions>
  72.                             <Grid.RowDefinitions>
  73.                                 <RowDefinition/>
  74.                             </Grid.RowDefinitions>
  75.                             <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Vertical" >
  76.                                 <Label Content="Reserved By:"/>
  77.                                 <scwpf:SingleInstancePicker Instance="{Binding Path=IsReservedBy, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  78.                                                            BaseClassId="10a7f898-e672-ccf3-8881-360bfb6a8f9a"/>
  79.                             </StackPanel>
  80.                             <StackPanel Grid.Column="1" Grid.Row="0" Orientation="Vertical">
  81.                                 <Label Content="Borrowed By:"/>
  82.                                 <scwpf:SingleInstancePicker Instance="{Binding Path=IsBorrowedBy, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  83.                                                            BaseClassId="10a7f898-e672-ccf3-8881-360bfb6a8f9a"/>
  84.                             </StackPanel>
  85.                         </Grid>
  86.                     </StackPanel>
  87.                 </Grid>
  88.             </TabItem>
  89.         </TabControl>
  90.     </Grid>
  91. </UserControl>
Add Comment
Please, Sign In to add comment