|
149 | 149 | MouseDoubleClick="programSourceView_MouseDoubleClick"
|
150 | 150 | PreviewMouseRightButtonUp="ProgramSourceView_PreviewMouseRightButtonUp"
|
151 | 151 | SelectionChanged="programSourceView_SelectionChanged"
|
152 |
| - SelectionMode="Extended"> |
| 152 | + SelectionMode="Extended" |
| 153 | + SizeChanged="ListView_SizeChanged"> |
153 | 154 | <ListView.View>
|
154 | 155 | <GridView>
|
155 | 156 | <GridViewColumn Width="150" Header="{DynamicResource flowlauncher_plugin_program_name}">
|
|
159 | 160 | </DataTemplate>
|
160 | 161 | </GridViewColumn.CellTemplate>
|
161 | 162 | </GridViewColumn>
|
162 |
| - <GridViewColumn Header="{DynamicResource flowlauncher_plugin_program_enabled}"> |
| 163 | + <GridViewColumn Width="90" Header="{DynamicResource flowlauncher_plugin_program_enabled}"> |
163 | 164 | <GridViewColumn.CellTemplate>
|
164 | 165 | <DataTemplate>
|
165 |
| - <TextBlock |
166 |
| - MaxWidth="60" |
167 |
| - Text="{Binding Enabled}" |
168 |
| - TextAlignment="Center" /> |
| 166 | + <TextBlock x:Name="ListViewEnabled" TextAlignment="Left"> |
| 167 | + <TextBlock.Style> |
| 168 | + <Style TargetType="TextBlock"> |
| 169 | + <Setter Property="Text" Value="{DynamicResource flowlauncher_plugin_program_false}" /> |
| 170 | + <Style.Triggers> |
| 171 | + <DataTrigger Binding="{Binding Enabled, UpdateSourceTrigger=PropertyChanged}" Value="True"> |
| 172 | + <Setter Property="Text" Value="{DynamicResource flowlauncher_plugin_program_true}" /> |
| 173 | + </DataTrigger> |
| 174 | + </Style.Triggers> |
| 175 | + </Style> |
| 176 | + </TextBlock.Style> |
| 177 | + </TextBlock> |
169 | 178 | </DataTemplate>
|
170 | 179 | </GridViewColumn.CellTemplate>
|
171 | 180 | </GridViewColumn>
|
172 |
| - <GridViewColumn Width="550" Header="{DynamicResource flowlauncher_plugin_program_location}"> |
| 181 | + <GridViewColumn Header="{DynamicResource flowlauncher_plugin_program_location}"> |
173 | 182 | <GridViewColumn.CellTemplate>
|
174 | 183 | <DataTemplate>
|
175 |
| - <TextBlock Text="{Binding Location, ConverterParameter=(null), Converter={program:LocationConverter}}" /> |
| 184 | + <TextBlock Text="{Binding Location, ConverterParameter=(null), Converter={program:LocationConverter}}" TextTrimming="CharacterEllipsis" /> |
176 | 185 | </DataTemplate>
|
177 | 186 | </GridViewColumn.CellTemplate>
|
178 | 187 | </GridViewColumn>
|
|
0 commit comments