xaml
-
<Window x:Class="SearchApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit" Title="Window1" Height="500" Width="500"> <Grid> <Label Content="Directory : " HorizontalAlignment="Stretch" Margin="12,12,356,400" VerticalAlignment="Center" Background="Beige" FontSize="20" Loaded="Label_Loaded"/> <Label Background="Beige" Content="Search Prase :" FontSize="20" HorizontalAlignment="Stretch" Margin="12,67,324,345" VerticalAlignment="Center" /> <Label Background="Beige" Content="Recursive Flag :" FontSize="20" HorizontalAlignment="Stretch" Margin="12,122,311,290" VerticalAlignment="Center" /> <TextBox Height="23" Text="{Binding Path=DirName, ValidatesOnExceptions=True, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" HorizontalAlignment="Left" Margin="151,29,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" /> <TextBox Height="23" Text="{Binding Path=SearchCriteria, ValidatesOnExceptions=True, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" HorizontalAlignment="Left" Margin="171,84,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" /> <TextBox Height="23" HorizontalAlignment="Left" Margin="181,139,0,0" Name="textBox3" VerticalAlignment="Top" Width="120" /> <Grid Height="187" HorizontalAlignment="Left" Margin="30,0,0,54" Name="grid1" VerticalAlignment="Bottom" Width="416"> <DataGrid DockPanel.Dock="Top" AutoGenerateColumns="True" Name="DGComm" CanUserResizeColumns="True" IsReadOnly="True" ItemsSource="{Binding Source=dataGridRows}" Margin="-10,6,-15,-46"> <DataGrid.Columns> <DataGridTextColumn Header="File Name" Binding="{Binding FileName}" Width="0.1*" /> </DataGrid.Columns> </DataGrid> </Grid> </Grid;> </Window;>