|
|
|
@ -16,244 +16,425 @@
|
|
|
|
|
Text="{DynamicResource Network}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
ToolTip="{DynamicResource PressEnterToApplySettingTip}">
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Vertical">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaServerPort}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
Name="nameAriaListenPort"
|
|
|
|
|
Width="100"
|
|
|
|
|
Height="20"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Text="{Binding AriaListenPort}">
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding
|
|
|
|
|
Key="Enter"
|
|
|
|
|
Command="{Binding AriaListenPortCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaListenPort, Path=Text}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
Text="{DynamicResource SelectDownloader}" />
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaLogLevel}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameAriaLogLevels"
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
ItemsSource="{Binding AriaLogLevels}"
|
|
|
|
|
SelectedValue="{Binding SelectedAriaLogLevel}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding AriaLogLevelsCommand}" CommandParameter="{Binding ElementName=nameAriaLogLevels, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<GroupBox
|
|
|
|
|
Margin="0,10,0,0"
|
|
|
|
|
BorderBrush="{x:Null}"
|
|
|
|
|
BorderThickness="0">
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<RadioButton
|
|
|
|
|
Command="{Binding SelectDownloaderCommand}"
|
|
|
|
|
CommandParameter="Builtin"
|
|
|
|
|
Content="{DynamicResource BuiltinDownloader}"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
IsChecked="{Binding Builtin}"
|
|
|
|
|
Style="{StaticResource RadioStyle}" />
|
|
|
|
|
<RadioButton
|
|
|
|
|
Margin="20,0,0,0"
|
|
|
|
|
Command="{Binding SelectDownloaderCommand}"
|
|
|
|
|
CommandParameter="Aria2c"
|
|
|
|
|
Content="{DynamicResource Aria2cDownloader}"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
IsChecked="{Binding Aria2c}"
|
|
|
|
|
Style="{StaticResource RadioStyle}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</GroupBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaMaxConcurrentDownloads}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameAriaMaxConcurrentDownloads"
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
ItemsSource="{Binding AriaMaxConcurrentDownloads}"
|
|
|
|
|
SelectedValue="{Binding SelectedAriaMaxConcurrentDownload}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding AriaMaxConcurrentDownloadsCommand}" CommandParameter="{Binding ElementName=nameAriaMaxConcurrentDownloads, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Height="1"
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
Background="{DynamicResource BrushBorder}" />
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaSplit}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameAriaSplits"
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
ItemsSource="{Binding AriaSplits}"
|
|
|
|
|
SelectedValue="{Binding SelectedAriaSplit}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding AriaSplitsCommand}" CommandParameter="{Binding ElementName=nameAriaSplits, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel x:Name="nameBuiltin">
|
|
|
|
|
<StackPanel.Style>
|
|
|
|
|
<Style TargetType="{x:Type StackPanel}">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding Builtin}" Value="True">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding Builtin}" Value="False">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</StackPanel.Style>
|
|
|
|
|
|
|
|
|
|
<GroupBox
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
Padding="10,5"
|
|
|
|
|
HorizontalAlignment="Left">
|
|
|
|
|
<GroupBox.Header>
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaDownloadLimit}" />
|
|
|
|
|
</GroupBox.Header>
|
|
|
|
|
Text="{DynamicResource MaxCurrentDownloads}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameMaxCurrentDownloads"
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
ItemsSource="{Binding MaxCurrentDownloads}"
|
|
|
|
|
SelectedValue="{Binding SelectedMaxCurrentDownload}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding MaxCurrentDownloadsCommand}" CommandParameter="{Binding ElementName=nameMaxCurrentDownloads, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<StackPanel Margin="0,10,0,0" Orientation="Horizontal">
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource Split}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameSplits"
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
ItemsSource="{Binding Splits}"
|
|
|
|
|
SelectedValue="{Binding SelectedSplit}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding SplitsCommand}" CommandParameter="{Binding ElementName=nameSplits, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
Name="nameIsHttpProxy"
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
Command="{Binding IsHttpProxyCommand}"
|
|
|
|
|
Content="{DynamicResource IsHttpProxy}"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
IsChecked="{Binding IsHttpProxy, Mode=TwoWay}"
|
|
|
|
|
Style="{StaticResource CheckBoxStyle}" />
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
Name="nameHttpProxyPanel"
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
ToolTip="{DynamicResource PressEnterToApplySettingTip}">
|
|
|
|
|
<StackPanel.Style>
|
|
|
|
|
<Style TargetType="{x:Type StackPanel}">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=nameIsHttpProxy, Path=IsChecked}" Value="false">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=nameIsHttpProxy, Path=IsChecked}" Value="true">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</StackPanel.Style>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="300"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaMaxOverallDownloadLimit}" />
|
|
|
|
|
Text="{DynamicResource HttpProxy}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
Name="nameAriaMaxOverallDownloadLimit"
|
|
|
|
|
Width="100"
|
|
|
|
|
Name="nameHttpProxy"
|
|
|
|
|
Width="200"
|
|
|
|
|
Height="20"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Text="{Binding AriaMaxOverallDownloadLimit}"
|
|
|
|
|
ToolTip="{DynamicResource PressEnterToApplySettingTip}">
|
|
|
|
|
Text="{Binding HttpProxy}">
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding
|
|
|
|
|
Key="Enter"
|
|
|
|
|
Command="{Binding AriaMaxOverallDownloadLimitCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaMaxOverallDownloadLimit, Path=Text}" />
|
|
|
|
|
Command="{Binding HttpProxyCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameHttpProxy, Path=Text}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Margin="0,10,0,5" Orientation="Horizontal">
|
|
|
|
|
<StackPanel Margin="30,0,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="300"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaMaxDownloadLimit}" />
|
|
|
|
|
Text="{DynamicResource HttpProxyPort}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
Name="nameAriaMaxDownloadLimit"
|
|
|
|
|
Name="nameHttpProxyPort"
|
|
|
|
|
Width="100"
|
|
|
|
|
Height="20"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Text="{Binding AriaMaxDownloadLimit}"
|
|
|
|
|
ToolTip="{DynamicResource PressEnterToApplySettingTip}">
|
|
|
|
|
Text="{Binding HttpProxyPort}">
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding
|
|
|
|
|
Key="Enter"
|
|
|
|
|
Command="{Binding AriaMaxDownloadLimitCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaMaxDownloadLimit, Path=Text}" />
|
|
|
|
|
Command="{Binding HttpProxyPortCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameHttpProxyPort, Path=Text}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
Name="nameIsAriaHttpProxy"
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
Command="{Binding IsAriaHttpProxyCommand}"
|
|
|
|
|
Content="{DynamicResource IsAriaHttpProxy}"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
IsChecked="{Binding IsAriaHttpProxy, Mode=TwoWay}"
|
|
|
|
|
Style="{StaticResource CheckBoxStyle}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
Name="nameAriaHttpProxyPanel"
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
ToolTip="{DynamicResource PressEnterToApplySettingTip}">
|
|
|
|
|
<StackPanel x:Name="nameAria">
|
|
|
|
|
<StackPanel.Style>
|
|
|
|
|
<Style TargetType="{x:Type StackPanel}">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=nameIsAriaHttpProxy, Path=IsChecked}" Value="false">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=nameIsAriaHttpProxy, Path=IsChecked}" Value="true">
|
|
|
|
|
<DataTrigger Binding="{Binding Aria2c}" Value="True">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding Aria2c}" Value="False">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</StackPanel.Style>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<StackPanel
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
ToolTip="{DynamicResource PressEnterToApplySettingTip}">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaHttpProxy}" />
|
|
|
|
|
Text="{DynamicResource AriaServerPort}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
Name="nameAriaHttpProxy"
|
|
|
|
|
Width="200"
|
|
|
|
|
Name="nameAriaListenPort"
|
|
|
|
|
Width="100"
|
|
|
|
|
Height="20"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Text="{Binding AriaHttpProxy}">
|
|
|
|
|
Text="{Binding AriaListenPort}">
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding
|
|
|
|
|
Key="Enter"
|
|
|
|
|
Command="{Binding AriaHttpProxyCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaHttpProxy, Path=Text}" />
|
|
|
|
|
Command="{Binding AriaListenPortCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaListenPort, Path=Text}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Margin="30,0,0,0" Orientation="Horizontal">
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaHttpProxyPort}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
Name="nameAriaHttpProxyPort"
|
|
|
|
|
Text="{DynamicResource AriaLogLevel}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameAriaLogLevels"
|
|
|
|
|
Width="100"
|
|
|
|
|
Height="20"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Text="{Binding AriaHttpProxyPort}">
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding
|
|
|
|
|
Key="Enter"
|
|
|
|
|
Command="{Binding AriaHttpProxyPortCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaHttpProxyPort, Path=Text}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
ItemsSource="{Binding AriaLogLevels}"
|
|
|
|
|
SelectedValue="{Binding SelectedAriaLogLevel}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding AriaLogLevelsCommand}" CommandParameter="{Binding ElementName=nameAriaLogLevels, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaMaxConcurrentDownloads}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameAriaMaxConcurrentDownloads"
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
ItemsSource="{Binding AriaMaxConcurrentDownloads}"
|
|
|
|
|
SelectedValue="{Binding SelectedAriaMaxConcurrentDownload}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding AriaMaxConcurrentDownloadsCommand}" CommandParameter="{Binding ElementName=nameAriaMaxConcurrentDownloads, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaSplit}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameAriaSplits"
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
ItemsSource="{Binding AriaSplits}"
|
|
|
|
|
SelectedValue="{Binding SelectedAriaSplit}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding AriaSplitsCommand}" CommandParameter="{Binding ElementName=nameAriaSplits, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<GroupBox
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
Padding="10,5"
|
|
|
|
|
HorizontalAlignment="Left">
|
|
|
|
|
<GroupBox.Header>
|
|
|
|
|
<TextBlock
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaDownloadLimit}" />
|
|
|
|
|
</GroupBox.Header>
|
|
|
|
|
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<StackPanel Margin="0,10,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="300"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaMaxOverallDownloadLimit}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
Name="nameAriaMaxOverallDownloadLimit"
|
|
|
|
|
Width="100"
|
|
|
|
|
Height="20"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Text="{Binding AriaMaxOverallDownloadLimit}"
|
|
|
|
|
ToolTip="{DynamicResource PressEnterToApplySettingTip}">
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding
|
|
|
|
|
Key="Enter"
|
|
|
|
|
Command="{Binding AriaMaxOverallDownloadLimitCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaMaxOverallDownloadLimit, Path=Text}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Margin="0,10,0,5" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="300"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaMaxDownloadLimit}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
Name="nameAriaMaxDownloadLimit"
|
|
|
|
|
Width="100"
|
|
|
|
|
Height="20"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Text="{Binding AriaMaxDownloadLimit}"
|
|
|
|
|
ToolTip="{DynamicResource PressEnterToApplySettingTip}">
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding
|
|
|
|
|
Key="Enter"
|
|
|
|
|
Command="{Binding AriaMaxDownloadLimitCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaMaxDownloadLimit, Path=Text}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
Name="nameIsAriaHttpProxy"
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
Command="{Binding IsAriaHttpProxyCommand}"
|
|
|
|
|
Content="{DynamicResource IsHttpProxy}"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaFileAllocation}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameAriaFileAllocations"
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
ItemsSource="{Binding AriaFileAllocations}"
|
|
|
|
|
SelectedValue="{Binding SelectedAriaFileAllocation}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding AriaFileAllocationsCommand}" CommandParameter="{Binding ElementName=nameAriaFileAllocations, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
IsChecked="{Binding IsAriaHttpProxy, Mode=TwoWay}"
|
|
|
|
|
Style="{StaticResource CheckBoxStyle}" />
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
Name="nameAriaHttpProxyPanel"
|
|
|
|
|
Margin="0,20,0,0"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
ToolTip="{DynamicResource PressEnterToApplySettingTip}">
|
|
|
|
|
<StackPanel.Style>
|
|
|
|
|
<Style TargetType="{x:Type StackPanel}">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=nameIsAriaHttpProxy, Path=IsChecked}" Value="false">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=nameIsAriaHttpProxy, Path=IsChecked}" Value="true">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</StackPanel.Style>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource HttpProxy}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
Name="nameAriaHttpProxy"
|
|
|
|
|
Width="200"
|
|
|
|
|
Height="20"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Text="{Binding AriaHttpProxy}">
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding
|
|
|
|
|
Key="Enter"
|
|
|
|
|
Command="{Binding AriaHttpProxyCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaHttpProxy, Path=Text}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Margin="30,0,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource HttpProxyPort}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
Name="nameAriaHttpProxyPort"
|
|
|
|
|
Width="100"
|
|
|
|
|
Height="20"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Text="{Binding AriaHttpProxyPort}">
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding
|
|
|
|
|
Key="Enter"
|
|
|
|
|
Command="{Binding AriaHttpProxyPortCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=nameAriaHttpProxyPort, Path=Text}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{DynamicResource BrushTextDark}"
|
|
|
|
|
Text="{DynamicResource AriaFileAllocation}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
Name="nameAriaFileAllocations"
|
|
|
|
|
Width="100"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
ItemsSource="{Binding AriaFileAllocations}"
|
|
|
|
|
SelectedValue="{Binding SelectedAriaFileAllocation}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction Command="{Binding AriaFileAllocationsCommand}" CommandParameter="{Binding ElementName=nameAriaFileAllocations, Path=SelectedValue}" />
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="10" />
|
|
|
|
|