<UserControl x:Class="Perforce.View.SearchView" 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"> <DockPanel> <StackPanel DockPanel.Dock="Top"> <DockPanel> <StackPanel DockPanel.Dock="Left" Orientation="Horizontal"> <Label>Search for:</Label> <Label Name="SearchTerm" Content="{Binding SearchStr}" FontWeight="Bold" /> </StackPanel> <ToggleButton DockPanel.Dock="Right" Name="ShowMoreButton" HorizontalAlignment="Right" Click="ShowMoreButton_Click">More Options</ToggleButton> </DockPanel> <StackPanel Name="SearchOptions" Visibility="Collapsed"> <Separator /> <StackPanel Orientation="Horizontal"> <Label>Location:</Label> <RadioButton Width="100" Name="AllFilesButton" GroupName="location" IsChecked="{Binding AllFilesLocation, Mode=TwoWay}" Click="UIEvent_Click" Style="{StaticResource {x:Type ToggleButton}}">All Files</RadioButton> <Label Width="20" /> <RadioButton Width="100" Name="MyWorkspaceButton" GroupName="location" IsChecked="{Binding MyWorkspaceLocation, Mode=TwoWay}" Click="UIEvent_Click" Style="{StaticResource {x:Type ToggleButton}}">My Workspace</RadioButton> <Label Width="20" /> <ToggleButton MinWidth="100" Name="RestrictFolderButton" IsChecked="{Binding RestrictSearchToFolder, Mode=TwoWay}" Click="UIEvent_Click"> <ToggleButton.Style> <Style TargetType="ToggleButton"> <Setter Property="Content" Value="{Binding SelectedFolderName}" /> <Style.Triggers> <DataTrigger Binding="{Binding DepotPathSelected}" Value="True"> <Setter Property="Visibility" Value="Visible" /> </DataTrigger> <DataTrigger Binding="{Binding DepotPathSelected}" Value="False"> <Setter Property="Visibility" Value="Hidden" /> </DataTrigger> </Style.Triggers> </Style> </ToggleButton.Style> </ToggleButton> </StackPanel> <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> <Label VerticalContentAlignment="Center">Search in:</Label> <CheckBox Name="FileSearch" IsChecked="{Binding FileSearch, Mode=TwoWay}" Click="UIEvent_Click" VerticalContentAlignment="Center" Margin="0,0,4,0">File name</CheckBox> <CheckBox Name="ContentSearch" IsChecked="{Binding ContentSearch, Mode=TwoWay}" Click="UIEvent_Click" VerticalContentAlignment="Center" Margin="0,0,4,0">Content</CheckBox> <CheckBox Name="TagSearch" IsChecked="{Binding TagSearch, Mode=TwoWay}" Click="UIEvent_Click" VerticalContentAlignment="Center" Margin="0,0,4,0">Tags</CheckBox> <Label VerticalContentAlignment="Center" >Tags:</Label> <ComboBox Name="SearchTags" ItemsSource="{Binding TagList, Mode=OneWay}" IsReadOnly="True" IsEditable="True" Text="{Binding TagListText}" PreviewMouseDown="SearchTags_PreviewMouseDown" SelectionChanged="SearchTags_SelectionChanged" VerticalContentAlignment="Center"> <ComboBox.Style> <Style TargetType="ComboBox"> <Style.Triggers> <DataTrigger Binding="{Binding ElementName=TagSearch, Path=IsChecked}" Value="True"> <Setter Property="IsEnabled" Value="True" /> </DataTrigger> <DataTrigger Binding="{Binding ElementName=TagSearch, Path=IsChecked}" Value="False"> <Setter Property="IsEnabled" Value="False" /> </DataTrigger> </Style.Triggers> </Style> </ComboBox.Style> <ComboBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox IsChecked="{Binding IsSelected}" Width="20" VerticalAlignment="Center" /> <TextBlock Text="{Binding ObjectData}" VerticalAlignment="Center" /> </StackPanel> </DataTemplate> </ComboBox.ItemTemplate> </ComboBox> </StackPanel> </StackPanel> <Separator /> </StackPanel> <Grid Name="ResultsGrid" Loaded="ResultsGrid_Loaded" /> </DockPanel> </UserControl>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16507 | perforce_software | Move to main branch. | ||
//guest/perforce_software/piper/windows/R1.1/Perforce/View/SearchView.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/SearchView.xaml | |||||
#1 | 11255 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/windows/Perforce/View/SearchView.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. |