PageRenderTime 25ms CodeModel.GetById 23ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/CodeMaid/UI/Dialogs/Options/Cleaning/CleaningFileTypesDataTemplate.xaml

https://bitbucket.org/s_cadwallader/codemaid
XAML | 51 lines | 46 code | 5 blank | 0 comment | 0 complexity | b4db00db208753df1ea856fdd1fb0291 MD5 | raw file
Possible License(s): LGPL-3.0
 1<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 2        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 3        xmlns:local="clr-namespace:SteveCadwallader.CodeMaid.UI.Dialogs.Options.Cleaning"
 4        xmlns:cnv="clr-namespace:SteveCadwallader.CodeMaid.UI.Converters">
 5    <DataTemplate DataType="{x:Type local:CleaningFileTypesViewModel}">
 6        <StackPanel>
 7            <GroupBox Header="Include">
 8                <Grid>
 9                    <Grid.RowDefinitions>
10                        <RowDefinition Height="Auto" />
11                        <RowDefinition Height="Auto" />
12                        <RowDefinition Height="Auto" />
13                    </Grid.RowDefinitions>
14                    <Grid.ColumnDefinitions>
15                        <ColumnDefinition Width="Auto" />
16                        <ColumnDefinition Width="10" />
17                        <ColumnDefinition Width="Auto" />
18                        <ColumnDefinition Width="10" />
19                        <ColumnDefinition Width="Auto" />
20                        <ColumnDefinition Width="10" />
21                        <ColumnDefinition Width="Auto" />
22                    </Grid.ColumnDefinitions>
23
24                    <CheckBox Content="C#" IsChecked="{Binding IncludeCSharp}" />
25                    <CheckBox Grid.Column="2" Content="C++" IsChecked="{Binding IncludeCPlusPlus}" />
26                    <CheckBox Grid.Column="4" Content="F#" IsChecked="{Binding IncludeFSharp}" />
27                    <CheckBox Grid.Column="6" Content="VB" IsChecked="{Binding IncludeVisualBasic}" />
28
29                    <CheckBox Grid.Row="1" Content="XAML" IsChecked="{Binding IncludeXAML}" />
30                    <CheckBox Grid.Row="1" Grid.Column="2" Content="XML" IsChecked="{Binding IncludeXML}" />
31
32                    <CheckBox Grid.Row="2" Content="HTML" IsChecked="{Binding IncludeHTML}" />
33                    <CheckBox Grid.Row="2" Grid.Column="2" Content="CSS" IsChecked="{Binding IncludeCSS}" />
34                    <CheckBox Grid.Row="2" Grid.Column="4" Content="JavaScript" IsChecked="{Binding IncludeJavaScript}" />
35                    <CheckBox Grid.Row="2" Grid.Column="6" Content="TypeScript" IsChecked="{Binding IncludeTypeScript}" />
36                </Grid>
37            </GroupBox>
38
39            <GroupBox Header="Exclude">
40                <StackPanel>
41                    <CheckBox Content="T4 generated code" IsChecked="{Binding ExcludeT4GeneratedCode}" />
42
43                    <TextBlock Text="Regular expressions that match file names to exclude  (ex: .*\.resx )" Margin="5,5,5,0" />
44                    <TextBox Style="{DynamicResource TextBoxMultiLine}"
45                             Text="{Binding ExclusionExpression, Converter={x:Static cnv:StringReplaceConverter.DoublePipeToNewLine}, UpdateSourceTrigger=PropertyChanged}" />
46                    <TextBlock FontStyle="Italic" Text="Place each regular expression on a separate line" />
47                </StackPanel>
48            </GroupBox>
49        </StackPanel>
50    </DataTemplate>
51</ResourceDictionary>