Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 10578a8a authored by Harald Martini's avatar Harald Martini
Browse files

added tooltips to joblist, change width of columns, save joblist each time the...

added tooltips to joblist, change width of columns, save joblist each time the collection changes (not just on application exit)
parent c7b476e6
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,8 @@ namespace VECTO3GUI2020.ViewModel.Implementation
System.Windows.Application.Current.Exit += new ExitEventHandler(this.OnApplicationExit);
LoadFiles();
}
_jobs.CollectionChanged += (sender, args) => SaveFileNamesToFile();
}
......
......@@ -110,9 +110,46 @@
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn IsReadOnly="True" Header="Name" Binding="{Binding DocumentName}"></DataGridTextColumn>
<DataGridTextColumn IsReadOnly ="True" Header="Type" Binding="{Binding DocumentTypeName}"></DataGridTextColumn>
<DataGridTextColumn IsReadOnly ="True" Header="File" Binding="{Binding DataSource.SourceFile}"></DataGridTextColumn>
<DataGridTemplateColumn Header="Name" Width="0.5*">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Margin="2 2 2 2" Text="{Binding DocumentName}" TextAlignment="Left" VerticalAlignment="Center">
<TextBlock.ToolTip>
<Binding Path="DocumentName"></Binding>
</TextBlock.ToolTip>
</TextBlock>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<!--<DataGridTextColumn IsReadOnly="True" Header="Name" Binding="{Binding DocumentName}" Width="*">
<DataGridTextColumn.CellStyle>
<Style TargetType="DataGridCell">
<Setter Property="ToolTip" Value="{Binding DocumentName}" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
</DataGridTextColumn.CellStyle>
</DataGridTextColumn>-->
<DataGridTextColumn IsReadOnly ="True" Header="Type" Binding="{Binding DocumentTypeName}" Width="0.1*" MinWidth="150"></DataGridTextColumn>
<!--<DataGridTextColumn IsReadOnly ="True" Header="File" Binding="{Binding DataSource.SourceFile}" Width="*">
<DataGridTextColumn.CellStyle>
<Style TargetType="DataGridCell">
<Setter Property="ToolTip" Value="{Binding DataSource.SourceFile}" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
</DataGridTextColumn.CellStyle>
</DataGridTextColumn>-->
<DataGridTemplateColumn Header="File" Width="*">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Margin="2 2 2 2" Text="{Binding DataSource.SourceFile}" TextAlignment="Left" VerticalAlignment="Center">
<TextBlock.ToolTip>
<Binding Path="DataSource.SourceFile"></Binding>
</TextBlock.ToolTip>
</TextBlock>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
<DataGrid.InputBindings>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment