~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/Misc/SharpRefactoring/Project/Src/Gui/InsertCtorDialog.xaml

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<gui:AbstractInlineRefactorDialog x:Class="SharpRefactoring.Gui.InsertCtorDialog"
 
2
        Header="{sd:Localize AddIns.SharpRefactoring.InsertCtor}"
 
3
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 
4
        xmlns:gui="clr-namespace:SharpRefactoring.Gui"
 
5
        xmlns:addin="clr-namespace:SharpRefactoring"
 
6
        xmlns:sd="http://icsharpcode.net/sharpdevelop/core"
 
7
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 
8
        <gui:AbstractInlineRefactorDialog.Resources>
 
9
                <gui:IntToBoolConverter x:Key="intToBoolConverter" />
 
10
                <Style TargetType="Button" BasedOn="{x:Static sd:GlobalStyles.ButtonStyle}"/>
 
11
        </gui:AbstractInlineRefactorDialog.Resources>
 
12
        <StackPanel Cursor="Arrow">
 
13
                <TextBlock DockPanel.Dock="Top" Margin="3"
 
14
                           Text="{sd:Localize AddIns.SharpRefactoring.InsertCtor.Description}"
 
15
                           TextWrapping="Wrap" />
 
16
                <ListView x:Name="varList" MaxHeight="300">
 
17
                        <ListView.View>
 
18
                                <GridView>
 
19
                                        <GridViewColumn Header="{sd:Localize AddIns.SharpRefactoring.InsertCtor.VariableLabel}">
 
20
                                                <GridViewColumn.CellTemplate>
 
21
                                                        <DataTemplate>
 
22
                                                                <CheckBox Content="{Binding Text}" IsChecked="{Binding IsSelected, Mode=TwoWay}" />
 
23
                                                        </DataTemplate>
 
24
                                                </GridViewColumn.CellTemplate>
 
25
                                        </GridViewColumn>
 
26
                                        <GridViewColumn Header="{sd:Localize AddIns.SharpRefactoring.InsertCtor.AddCheckForNullLabel}">
 
27
                                                <GridViewColumn.CellTemplate>
 
28
                                                        <DataTemplate>
 
29
                                                                <CheckBox IsChecked="{Binding AddCheckForNull, Mode=TwoWay}" IsEnabled="{Binding IsNullable}" />
 
30
                                                        </DataTemplate>
 
31
                                                </GridViewColumn.CellTemplate>
 
32
                                        </GridViewColumn>
 
33
                                        <GridViewColumn Header="{sd:Localize AddIns.SharpRefactoring.InsertCtor.AddRangeCheckLabel}">
 
34
                                                <GridViewColumn.CellTemplate>
 
35
                                                        <DataTemplate>
 
36
                                                                <CheckBox IsChecked="{Binding AddRangeCheck, Mode=TwoWay}" IsEnabled="{Binding HasRange}" />
 
37
                                                        </DataTemplate>
 
38
                                                </GridViewColumn.CellTemplate>
 
39
                                        </GridViewColumn>
 
40
                                </GridView>
 
41
                        </ListView.View>
 
42
                </ListView>
 
43
                <DockPanel LastChildFill="False">
 
44
                        <Button DockPanel.Dock="Left" Content="{sd:Localize Global.OKButtonText}" Margin="3" Click="OKButtonClick" />
 
45
                        <Button DockPanel.Dock="Left" Content="{sd:Localize Global.CancelButtonText}" Margin="3" Click="CancelButtonClick" />
 
46
                        <Button DockPanel.Dock="Right" Content="{sd:Localize Global.MoveDown}" Margin="3" IsEnabled="{Binding SelectedIndex, ElementName=varList, Converter={StaticResource intToBoolConverter}}" Click="DownClick" />
 
47
                        <Button DockPanel.Dock="Right" Content="{sd:Localize Global.MoveUp}" Margin="3" IsEnabled="{Binding SelectedIndex, ElementName=varList, Converter={StaticResource intToBoolConverter}}" Click="UpClick" />
 
48
                        <ToggleButton DockPanel.Dock="Right" Content="{sd:Localize Global.SelectAllButtonText}" Margin="3" IsChecked="{Binding AllSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type gui:InsertCtorDialog}}, Mode=OneWay}" Checked="SelectAllChecked" Unchecked="SelectAllUnchecked" />
 
49
                </DockPanel>
 
50
        </StackPanel>
 
51
</gui:AbstractInlineRefactorDialog>
 
 
b'\\ No newline at end of file'