Advertisement
jovanovski

КИ Лаб4 XAML

Mar 18th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.93 KB | None | 0 0
  1. <Window x:Class="lab4.MainWindow"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:local="clr-namespace:lab4"
  4.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5.        Title="MainWindow" Height="350" Width="525">
  6.     <Window.Resources>
  7.         <local:ImageConverter x:Key="ImageConverter"></local:ImageConverter>
  8.     </Window.Resources>
  9.     <Grid>
  10.         <Grid.RowDefinitions>
  11.             <RowDefinition Height="*"></RowDefinition>
  12.             <RowDefinition Height="*"></RowDefinition>
  13.             <RowDefinition Height="5*"></RowDefinition>
  14.             <RowDefinition Height="*"></RowDefinition>
  15.             <RowDefinition Height="4*"></RowDefinition>
  16.             <RowDefinition></RowDefinition>
  17.         </Grid.RowDefinitions>
  18.         <Label Grid.Row="0">Cities:</Label>
  19.         <ComboBox Name="lstTeams" Grid.Row="1" DisplayMemberPath="TeamName" SelectionChanged="lstTeams_SelectionChanged">
  20.         </ComboBox>
  21.         <StackPanel Orientation="Horizontal" Grid.Row="2">
  22.             <Label HorizontalAlignment="Left" Name="TeamName" FontSize="40" VerticalAlignment="Center" Content="{Binding ElementName=lstTeams, Path=SelectedItem.TeamName}"></Label>
  23.             <Image HorizontalAlignment="Right" Name="TeamImage" VerticalAlignment="Center" Source="{Binding ElementName=lstTeams, Path=SelectedItem.ImageName, Converter={StaticResource ImageConverter}}">
  24.             </Image>
  25.         </StackPanel>
  26.         <Label Grid.Row="3">Players:</Label>
  27.         <ListBox Name="lstPlayers" Grid.Row="4"></ListBox>
  28.         <StackPanel Orientation="Horizontal" Grid.Row="5">
  29.             <Label>Options:</Label>
  30.             <RadioButton Name="Rd1" IsChecked="True"  VerticalAlignment="Center" Checked="Rd1_Checked">Points per game</RadioButton>
  31.             <RadioButton Name="Rd2" VerticalAlignment="Center" Checked="Rd2_Checked">Minutes played</RadioButton>
  32.         </StackPanel>
  33.     </Grid>
  34. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement