mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-21 10:01:58 +01:00
68 lines
3.7 KiB
XML
68 lines
3.7 KiB
XML
<Window
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:FileConverter"
|
|
xmlns:valueConverters="clr-namespace:FileConverter.ValueConverters"
|
|
xmlns:project="clr-namespace:FileConverter.Properties"
|
|
xmlns:controls="clr-namespace:FileConverter.Controls"
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
xmlns:command="http://www.galasoft.ch/mvvmlight"
|
|
mc:Ignorable="d" x:Class="FileConverter.Views.MainWindow"
|
|
Height="500" Width="950" MinHeight="480" MinWidth="640" WindowStartupLocation="CenterScreen" Icon="/FileConverter;component/Resources/ApplicationIcon.ico"
|
|
DataContext="{Binding Main, Source={StaticResource Locator}}">
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="Closing">
|
|
<command:EventToCommand Command="{Binding CloseCommand}" PassEventArgsToCommand="True" />
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
<Window.Resources>
|
|
<valueConverters:ConversionJobsToProgressState x:Key="ConversionJobsToProgressState" />
|
|
<valueConverters:ConversionJobsToProgressValue x:Key="ConversionJobsToProgressValue" />
|
|
</Window.Resources>
|
|
<Window.Title>
|
|
<Binding Converter="{StaticResource ApplicationVersionToApplicationName}" Mode="OneWay" Path="(local:Application.ApplicationVersion)"/>
|
|
</Window.Title>
|
|
<Window.TaskbarItemInfo>
|
|
<TaskbarItemInfo
|
|
ProgressState="{Binding ConversionJobs, Converter={StaticResource ConversionJobsToProgressState}}"
|
|
ProgressValue="{Binding ConversionJobs, Converter={StaticResource ConversionJobsToProgressValue}}" />
|
|
</Window.TaskbarItemInfo>
|
|
|
|
<Grid Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="64" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="64" />
|
|
<ColumnDefinition Width="64" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<DockPanel Grid.Column="0">
|
|
<Label Content="{x:Static project:Resources.ConversionQueueTitle}" VerticalAlignment="Center" FontSize="18" FontWeight="Bold"/>
|
|
<Label Content="{Binding InformationMessage}" VerticalAlignment="Center" FontSize="13.333" HorizontalAlignment="Right"/>
|
|
</DockPanel>
|
|
<Button Grid.Column="1" Margin="3" Command="{Binding ShowDiagnosticsCommand}" ToolTip="{x:Static project:Resources.DiagnosticsButtonTooltip}">
|
|
<Image HorizontalAlignment="Left" Height="48" Width="48" VerticalAlignment="Top" Source="/Resources/LogIcon.png" />
|
|
</Button>
|
|
<Button Grid.Column="2" Margin="3" Command="{Binding ShowSettingsCommand}" ToolTip="{x:Static project:Resources.SettingsButtonTooltip}">
|
|
<Image HorizontalAlignment="Left" Height="48" Width="48" VerticalAlignment="Top" Source="/Resources/SettingsIcon.ico" />
|
|
</Button>
|
|
</Grid>
|
|
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
|
|
<ItemsControl ItemsSource="{Binding ConversionJobs}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<controls:ConversionJobControl></controls:ConversionJobControl>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Window>
|