|
37 | 37 | </ListView.ToolTip> |
38 | 38 | </ListView> |
39 | 39 |
|
40 | | - <Button Content="UP" Margin="55,0,54,74" Height="24" VerticalAlignment="Bottom" Click="Up"/> |
41 | | - <Button Grid.Column="1" Content="DOWN" Margin="55,0,55,74" Height="24" VerticalAlignment="Bottom" Click="Down"/> |
42 | | - <Button Grid.Column="2" Content="Settings" Margin="49,0,60,74" Click="ComprSettingsClicked" Height="24" VerticalAlignment="Bottom" /> |
| 40 | + <Button Content="UP" Margin="55,0,54,74" Height="24" VerticalAlignment="Bottom" Click="Up"> |
| 41 | + <Button.Style> |
| 42 | + <Style> |
| 43 | + <Style.Triggers> |
| 44 | + <DataTrigger Binding="{Binding SelectedIndex,ElementName=lstAlg}" Value="-1"> |
| 45 | + <Setter Property="Button.IsEnabled" Value="False"/> |
| 46 | + <Setter Property="Button.ToolTip" Value="Please select an algorithm. (Click on the empty space on the right side of its name to noch (un)check it."/> |
| 47 | + </DataTrigger> |
| 48 | + <DataTrigger Binding="{Binding SelectedIndex,ElementName=lstAlg}" Value="0"> |
| 49 | + <Setter Property="Button.IsEnabled" Value="False"/> |
| 50 | + </DataTrigger> |
| 51 | + </Style.Triggers> |
| 52 | + </Style> |
| 53 | + </Button.Style> |
| 54 | + </Button> |
| 55 | + <Button Grid.Column="1" Content="DOWN" Margin="55,0,55,74" Height="24" VerticalAlignment="Bottom" Click="Down"> |
| 56 | + <Button.Style> |
| 57 | + <Style> |
| 58 | + <Style.Triggers> |
| 59 | + <DataTrigger Binding="{Binding SelectedIndex,ElementName=lstAlg}" Value="-1"> |
| 60 | + <Setter Property="Button.IsEnabled" Value="False"/> |
| 61 | + <Setter Property="Button.ToolTip" Value="Please select an algorithm. (Click on the empty space on the right side of its name to noch (un)check it."/> |
| 62 | + </DataTrigger> |
| 63 | + </Style.Triggers> |
| 64 | + </Style> |
| 65 | + </Button.Style> |
| 66 | + </Button> |
| 67 | + <Button Grid.Column="2" Content="Settings" Margin="49,0,60,74" Click="ComprSettingsClicked" Height="24" VerticalAlignment="Bottom"> |
| 68 | + <Button.Style> |
| 69 | + <Style> |
| 70 | + <Style.Triggers> |
| 71 | + <DataTrigger Binding="{Binding SelectedIndex,ElementName=lstAlg}" Value="-1"> |
| 72 | + <Setter Property="Button.IsEnabled" Value="False"/> |
| 73 | + <Setter Property="Button.ToolTip" Value="Please select an algorithm. (Click on the empty space on the right side of its name to noch (un)check it."/> |
| 74 | + </DataTrigger> |
| 75 | + </Style.Triggers> |
| 76 | + </Style> |
| 77 | + </Button.Style> |
| 78 | + </Button> |
43 | 79 |
|
44 | 80 | <Button Content="OK" Margin="55,0,54,13" Height="24" VerticalAlignment="Bottom" Click="OK"/> |
45 | 81 | <Button Grid.Column="1" Content="Default" Margin="55,0,55,13" Height="24" VerticalAlignment="Bottom" Click="Default"/> |
|
0 commit comments