file-formats-wpf-demos/presentation/Views/FindAndReplace.xaml

73 строки
5.2 KiB
XML

<democommon:DemoControl
x:Class="syncfusion.presentationdemos.wpf.FindAndReplace"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:democommon="clr-namespace:syncfusion.demoscommon.wpf;assembly=syncfusion.demoscommon.wpf"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:numberformat="clr-namespace:System.Globalization;assembly=mscorlib"
xmlns:skin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
d:DesignHeight="400"
d:DesignWidth="800"
mc:Ignorable="d">
<ContentControl>
<Grid x:Name="Editing" Margin="5,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="25"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="25"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="25"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock x:Name="TextBlock2" Grid.Row="2" Grid.ColumnSpan="4"/>
<TextBlock x:Name="WinRTText2" Grid.Row="3" Grid.ColumnSpan="4" TextWrapping="Wrap" Text="Click the button to view the generated PowerPoint document. Please note that Microsoft PowerPoint Viewer or Microsoft PowerPoint is required to view the resultant PowerPoint document"/>
<TextBlock x:Name="text1" Grid.Row="4" Grid.ColumnSpan="4"/>
<TextBlock x:Name="TextBlock4" Grid.Row="5" TextWrapping="Wrap" Text="Look in :" Margin="0,5.333,0.333,5.333" />
<TextBox x:Name="textLook" Grid.Row="5" BorderThickness="1" Margin="101,0.333,116.333,1.333" Grid.ColumnSpan="2"/>
<Button Name="btnBrowse" Click="btnBrowse_Click" Grid.Row="5" Grid.Column="1" Content="Browse" Padding="0,0,0,0" Margin="135,0.333,32.667,1.333" Width="60"/>
<TextBlock x:Name="TextBlock5" Grid.Row="6" Grid.ColumnSpan="4"/>
<TextBlock Grid.Row="7" TextWrapping="Wrap" Text="Find Using : " Margin="0,5.333,0.333,5.333"/>
<ComboBox Grid.Row="7" x:Name="comboBoxFindUsing" SelectedIndex="0" Height="25" SelectionChanged="ComboBoxSelectedIndexChanged" Margin="101,0.333,32.667,0" BorderThickness="1" Grid.RowSpan="1">
<ComboBoxItem Content="Text"/>
<ComboBoxItem Content="Regex"/>
</ComboBox>
<TextBlock x:Name="TextBlock6" Grid.Row="10" Visibility="Visible" TextWrapping="Wrap" Text="Text to Find:" Margin="0,4.333,0.333,5.333"/>
<TextBox x:Name="textFind" Grid.Row="10" Visibility="Visible" BorderThickness="1" Margin="101,0.333,116.333,1.333" Grid.ColumnSpan="2"/>
<TextBlock x:Name="TextBlock7" Grid.Row="10" Visibility="Hidden" TextWrapping="Wrap" Text="Regex to Find :" Margin="0,5.333,0.333,5.333"/>
<TextBox x:Name="regexFind" Grid.Row="10" Visibility="Hidden" BorderThickness="1" Margin="101,0.333,116.333,1.333" Grid.ColumnSpan="2"/>
<TextBlock x:Name="TextBlock8" Grid.Row="11" Grid.ColumnSpan="4" />
<TextBlock x:Name="TextBlock9" Grid.Row="12" TextWrapping="Wrap" Text="Text to Replace:" Margin="0,5.333,0.333,5.333" />
<TextBox x:Name="textReplace" Grid.Row="12" BorderThickness="1" Margin="101,0.333,116.333,1.333" Grid.ColumnSpan="2"/>
<TextBlock x:Name="TextBlock10" Grid.Row="13" Grid.ColumnSpan="4" />
<StackPanel Name="groupMatch" Grid.Row="14" Grid.ColumnSpan="4" Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock x:Name="TextBlock11" Grid.Row="14" TextWrapping="Wrap" Text="Search Options : " />
<CheckBox x:Name="checkBoxCase" Click="checkBoxCase_Click" Grid.Row="14" Content="Match Casing" Height="Auto" Width="100"/>
<CheckBox x:Name="checkBoxWord" Click="checkBoxWord_Click" Grid.Row="14" Grid.Column="2" Content="Match whole Word" Height="Auto" Width="130"/>
<CheckBox x:Name="checkBoxFirstWord" Click="checkBoxFirstWord_Click" Grid.Row="14" Grid.Column="3" Content="Replace only the first occurrence" Height="Auto" Width="220"/>
</StackPanel>
<Button x:Name="btnReplace" Click="btnReplace_Click" Grid.Row="16" Grid.ColumnSpan="1" Content="Replace" HorizontalAlignment="Left" Height="Auto" Width="100" Padding="10,10,10,10" Margin="0,10" />
</Grid>
</ContentControl>
</democommon:DemoControl>