SubmitForm.xaml #1

  • //
  • guest/
  • perforce_software/
  • piper/
  • main/
  • windows/
  • R1.1/
  • Perforce/
  • View/
  • SubmitForm.xaml
  • View
  • Commits
  • Open Download .zip Download (2 KB)
<UserControl x:Class="Perforce.View.SubmitForm"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d">
    <StackPanel>
        <Label>Submit Message</Label>
        <TextBox Name="DescriptionText" Width="700" Height="70" Text="{Binding Description}" AcceptsReturn="True" AcceptsTab="True" KeyUp="DescriptionText_KeyUp" />
        <Label Height="10" />
        <DataGrid Name="ChangelistFiles" HorizontalScrollBarVisibility="Auto"
                  ItemsSource="{Binding ChangelistFiles}" 
                  AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeColumns="True" CanUserSortColumns="True"
                  Width="700" Height="200">
            <DataGrid.Columns>
                <DataGridTemplateColumn Width="30" x:Name="SelectedColumn" CanUserResize="False" SortMemberPath="Selected" SortDirection="Descending">
                    <DataGridTemplateColumn.HeaderTemplate>
                        <DataTemplate>
                            <CheckBox Name="SelectAll" 
                                      IsChecked="True"
                                      Click="CheckBox_Click"
                                      Checked="SelectAll_Checked" 
                                      Unchecked="SelectAll_Unchecked" />
                        </DataTemplate>
                    </DataGridTemplateColumn.HeaderTemplate>
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <CheckBox HorizontalAlignment="Center" HorizontalContentAlignment="Center" Click="CheckBox_Click"
                                      IsChecked="{Binding Path=Selected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn Header="Filename" Binding="{Binding Filename}" IsReadOnly="True" Width="*" />
                <DataGridTextColumn Header="Path" Binding="{Binding Path}" IsReadOnly="True" Width="*" />
                <DataGridTextColumn Header="Pending Action" Binding="{Binding Action}" IsReadOnly="True" Width="*" />
            </DataGrid.Columns>
        </DataGrid>
    </StackPanel>
</UserControl>
# Change User Description Committed
#1 16507 perforce_software Move to main branch.
//guest/perforce_software/piper/windows/R1.1/Perforce/View/SubmitForm.xaml
#2 13572 alan_petersen updating R1.1
#1 11256 alan_petersen Populate //guest/perforce_software/piper/windows/R1.1/...
from //guest/perforce_software/piper/windows/main/....
//guest/perforce_software/piper/windows/main/Perforce/View/SubmitForm.xaml
#1 11255 alan_petersen Rename/move file(s)
//guest/perforce_software/piper/windows/Perforce/View/SubmitForm.xaml
#1 10761 alan_petersen initial drop of Piper for Windows....

this version still has _many_ bugs (er... i mean "unintended features") but I will be updating it over the next week as more stability is added.