PageRenderTime 39ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/V1/trunk/Source/QuickStarts/UIComposition/UIComposition.Modules.Employee/Views/EmployeesDetailsView/EmployeesDetailsView.xaml

#
XAML | 42 lines | 42 code | 0 blank | 0 comment | 0 complexity | 537c31aa99d374b03b52840b2eeb6278 MD5 | raw file
  1. <UserControl x:Class="UIComposition.Modules.Employee.EmployeesDetailsView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:UIComposition.Modules.Employee"
  5. xmlns:cal="http://www.codeplex.com/CompositeWPF">
  6. <StackPanel Margin="0,5,0,5">
  7. <TabControl AutomationProperties.AutomationId="DetailsTabControl" cal:RegionManager.RegionName="{x:Static local:RegionNames.TabRegion}"
  8. Style="{DynamicResource SimpleTabControl}" Width="Auto" Height="Auto" Margin="0,5,0,0" HorizontalAlignment="Stretch">
  9. <TabControl.ItemContainerStyle>
  10. <Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource SimpleTabItem}">
  11. <Setter Property="Header" Value="{Binding Content.DataContext.HeaderInfo}" />
  12. </Style>
  13. </TabControl.ItemContainerStyle>
  14. <TabItem Header="General" Style="{DynamicResource SimpleTabItem}" >
  15. <Grid DataContext="{Binding SelectedEmployee}" Width="Auto" Height="Auto">
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width=".5*" />
  18. <ColumnDefinition Width=".5*" />
  19. </Grid.ColumnDefinitions>
  20. <StackPanel Grid.Column="0" Orientation="Vertical">
  21. <Label Content="First Name:" HorizontalAlignment="Left" Padding="0,5,5,5" FontWeight="Bold" ></Label>
  22. <TextBox AutomationProperties.AutomationId="FirstNameTextBox" Text="{Binding Path=FirstName}" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" Margin="0,5,100,5" ></TextBox>
  23. <Label Content="Phone:" HorizontalAlignment="Left" Padding="0,5,5,5" FontWeight="Bold" ></Label>
  24. <TextBox AutomationProperties.AutomationId="PhoneTextBox" Text="{Binding Path=Phone}" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" Margin="0,5,100,5" ></TextBox>
  25. </StackPanel>
  26. <StackPanel Grid.Column="1">
  27. <Label Content="Last Name:" HorizontalAlignment="Left" Padding="0,5,5,5" FontWeight="Bold" ></Label>
  28. <TextBox AutomationProperties.AutomationId="LastNameTextBox" Text="{Binding Path=LastName}" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" Margin="0,5,100,5" ></TextBox>
  29. <Label Content="Email:" HorizontalAlignment="Left" Padding="0,5,5,5" FontWeight="Bold" ></Label>
  30. <TextBox AutomationProperties.AutomationId="EmailTextBox" Text="{Binding Path=Email}" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" Margin="0,5,100,5" ></TextBox>
  31. </StackPanel>
  32. </Grid>
  33. </TabItem>
  34. <TabItem Header="Location" Style="{DynamicResource SimpleTabItem}" >
  35. <StackPanel>
  36. <Frame Source="{Binding AddressMapUrl}" Height="210" NavigationFailed="Frame_NavigationFailed" Navigated="Frame_Navigated"></Frame>
  37. <TextBlock Name="ErrorText" Foreground="Red" Visibility="Hidden" Style="{DynamicResource SimpleTextBlock}" ></TextBlock>
  38. </StackPanel>
  39. </TabItem>
  40. </TabControl>
  41. </StackPanel>
  42. </UserControl>