Merge branch 'FileManager' of github.com:onesounds/Flow.Launcher into FileManager

This commit is contained in:
Kevin Zhang 2021-11-06 15:08:21 -05:00
commit 16a07dc8d0
3 changed files with 202 additions and 202 deletions

View file

@ -51,19 +51,31 @@ namespace Flow.Launcher.Infrastructure.UserSettings
{ {
Name = "Explorer", Name = "Explorer",
Path = "explorer", Path = "explorer",
FileArgument = "/select, \"%f\"",
DirectoryArgument = "\"%d\"", DirectoryArgument = "\"%d\"",
FileArgument = "/select, \"%f\"",
Editable = false Editable = false
}, },
new() new()
{ {
Name = "Total Commander", Name = "Total Commander",
Path = @"C:\Program Files\TOTALCMD\totalcommander.exe" Path = @"C:\Program Files\totalcmd\TOTALCMD64.exe",
DirectoryArgument = "/O /A /S /T \"%d\"",
FileArgument = "/O /A /S /T \"%f\""
}, },
new() new()
{ {
Name = "Dopus", Name = "Directory Opus",
Path = @"c:\programe files\dopus\dopus.exe" Path = @"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe",
DirectoryArgument = "/cmd Go \"%d\"",
FileArgument = "/cmd Go \"%f\""
},
new()
{
Name = "Files",
Path = "Files",
DirectoryArgument = "-select \"%d\"",
FileArgument = "-select \"%f\""
} }
}; };

View file

@ -1,7 +1,8 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <ResourceDictionary
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:system="clr-namespace:System;assembly=mscorlib"> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
<!--MainWindow--> xmlns:system="clr-namespace:System;assembly=mscorlib">
<!-- MainWindow -->
<system:String x:Key="registerHotkeyFailed">Failed to register hotkey: {0}</system:String> <system:String x:Key="registerHotkeyFailed">Failed to register hotkey: {0}</system:String>
<system:String x:Key="couldnotStartCmd">Could not start {0}</system:String> <system:String x:Key="couldnotStartCmd">Could not start {0}</system:String>
<system:String x:Key="invalidFlowLauncherPluginFileFormat">Invalid Flow Launcher plugin file format</system:String> <system:String x:Key="invalidFlowLauncherPluginFileFormat">Invalid Flow Launcher plugin file format</system:String>
@ -15,7 +16,7 @@
<system:String x:Key="iconTrayExit">Exit</system:String> <system:String x:Key="iconTrayExit">Exit</system:String>
<system:String x:Key="closeWindow">Close</system:String> <system:String x:Key="closeWindow">Close</system:String>
<!--Setting General--> <!-- Setting General -->
<system:String x:Key="flowlauncher_settings">Flow Launcher Settings</system:String> <system:String x:Key="flowlauncher_settings">Flow Launcher Settings</system:String>
<system:String x:Key="general">General</system:String> <system:String x:Key="general">General</system:String>
<system:String x:Key="portableMode">Portable Mode</system:String> <system:String x:Key="portableMode">Portable Mode</system:String>
@ -44,7 +45,7 @@
<system:String x:Key="ShouldUsePinyinToolTip">Allows using Pinyin to search. Pinyin is the standard system of romanized spelling for translating Chinese</system:String> <system:String x:Key="ShouldUsePinyinToolTip">Allows using Pinyin to search. Pinyin is the standard system of romanized spelling for translating Chinese</system:String>
<system:String x:Key="shadowEffectNotAllowed">Shadow effect is not allowed while current theme has blur effect enabled</system:String> <system:String x:Key="shadowEffectNotAllowed">Shadow effect is not allowed while current theme has blur effect enabled</system:String>
<!--Setting Plugin--> <!-- Setting Plugin -->
<system:String x:Key="plugin">Plugins</system:String> <system:String x:Key="plugin">Plugins</system:String>
<system:String x:Key="browserMorePlugins">Find more plugins</system:String> <system:String x:Key="browserMorePlugins">Find more plugins</system:String>
<system:String x:Key="enable">On</system:String> <system:String x:Key="enable">On</system:String>
@ -62,12 +63,12 @@
<system:String x:Key="plugin_query_time">Query time:</system:String> <system:String x:Key="plugin_query_time">Query time:</system:String>
<!--Setting Plugin Store--> <!-- Setting Plugin Store -->
<system:String x:Key="pluginStore">Plugin Store</system:String> <system:String x:Key="pluginStore">Plugin Store</system:String>
<system:String x:Key="refresh">Refresh</system:String> <system:String x:Key="refresh">Refresh</system:String>
<system:String x:Key="install">Install</system:String> <system:String x:Key="install">Install</system:String>
<!--Setting Theme--> <!-- Setting Theme -->
<system:String x:Key="theme">Theme</system:String> <system:String x:Key="theme">Theme</system:String>
<system:String x:Key="browserMoreThemes">Theme Gallery</system:String> <system:String x:Key="browserMoreThemes">Theme Gallery</system:String>
<system:String x:Key="howToCreateTheme">How to create a theme</system:String> <system:String x:Key="howToCreateTheme">How to create a theme</system:String>
@ -81,7 +82,7 @@
<system:String x:Key="ThemeFolder">Theme Folder</system:String> <system:String x:Key="ThemeFolder">Theme Folder</system:String>
<system:String x:Key="OpenThemeFolder">Open Theme Folder</system:String> <system:String x:Key="OpenThemeFolder">Open Theme Folder</system:String>
<!--Setting Hotkey--> <!-- Setting Hotkey -->
<system:String x:Key="hotkey">Hotkey</system:String> <system:String x:Key="hotkey">Hotkey</system:String>
<system:String x:Key="flowlauncherHotkey">Flow Launcher Hotkey</system:String> <system:String x:Key="flowlauncherHotkey">Flow Launcher Hotkey</system:String>
<system:String x:Key="flowlauncherHotkeyToolTip">Enter shortcut to show/hide Flow Launcher.</system:String> <system:String x:Key="flowlauncherHotkeyToolTip">Enter shortcut to show/hide Flow Launcher.</system:String>
@ -102,7 +103,7 @@
<system:String x:Key="useGlyphUI">Use Segoe Fluent Icons</system:String> <system:String x:Key="useGlyphUI">Use Segoe Fluent Icons</system:String>
<system:String x:Key="useGlyphUIEffect">Use Segoe Fluent Icons for query results where supported</system:String> <system:String x:Key="useGlyphUIEffect">Use Segoe Fluent Icons for query results where supported</system:String>
<!--Setting Proxy--> <!-- Setting Proxy -->
<system:String x:Key="proxy">HTTP Proxy</system:String> <system:String x:Key="proxy">HTTP Proxy</system:String>
<system:String x:Key="enableProxy">Enable HTTP Proxy</system:String> <system:String x:Key="enableProxy">Enable HTTP Proxy</system:String>
<system:String x:Key="server">HTTP Server</system:String> <system:String x:Key="server">HTTP Server</system:String>
@ -118,7 +119,7 @@
<system:String x:Key="proxyIsCorrect">Proxy configured correctly</system:String> <system:String x:Key="proxyIsCorrect">Proxy configured correctly</system:String>
<system:String x:Key="proxyConnectFailed">Proxy connection failed</system:String> <system:String x:Key="proxyConnectFailed">Proxy connection failed</system:String>
<!--Setting About--> <!-- Setting About -->
<system:String x:Key="about">About</system:String> <system:String x:Key="about">About</system:String>
<system:String x:Key="website">Website</system:String> <system:String x:Key="website">Website</system:String>
<system:String x:Key="version">Version</system:String> <system:String x:Key="version">Version</system:String>
@ -133,21 +134,21 @@
<system:String x:Key="releaseNotes">Release Notes</system:String> <system:String x:Key="releaseNotes">Release Notes</system:String>
<system:String x:Key="documentation">Usage Tips:</system:String> <system:String x:Key="documentation">Usage Tips:</system:String>
<!--FileManager Setting Dialog--> <!-- FileManager Setting Dialog -->
<system:String x:Key="fileManagerWindow">Select File Manager</system:String> <system:String x:Key="fileManagerWindow">Select File Manager</system:String>
<system:String x:Key="fileManager_tips">Please specify the file location of the file manager you using and add arguments (optional) if necessary.</system:String> <system:String x:Key="fileManager_tips">Please specify the file location of the file manager you using and add arguments if necessary. The default arguments is &quot;%d&quot;, and a path is entered at that location. For example, If a command is required such as &quot;totalcmd.exe /A c:\windows&quot;, Argument is /A &quot;%d&quot;.</system:String>
<system:String x:Key="fileManager_name">File Manager</system:String> <system:String x:Key="fileManager_name">File Manager</system:String>
<system:String x:Key="fileManager_profile_name">Profile Name</system:String> <system:String x:Key="fileManager_profile_name">Profile Name</system:String>
<system:String x:Key="fileManager_path">Path</system:String> <system:String x:Key="fileManager_path">File Manager Path</system:String>
<system:String x:Key="fileManager_directory_arg">Argument For Directory</system:String> <system:String x:Key="fileManager_directory_arg">Arguments For Folder</system:String>
<system:String x:Key="fileManager_file_arg">Argument For File Parent Directory</system:String> <system:String x:Key="fileManager_file_arg">Arguments For File</system:String>
<!--Priority Setting Dialog--> <!-- Priority Setting Dialog -->
<system:String x:Key="changePriorityWindow">Change Priority</system:String> <system:String x:Key="changePriorityWindow">Change Priority</system:String>
<system:String x:Key="priority_tips">Greater the number, the higher the result will be ranked. Try setting it as 5. If you want the results to be lower than any other plugin's, provide a negative number</system:String> <system:String x:Key="priority_tips">Greater the number, the higher the result will be ranked. Try setting it as 5. If you want the results to be lower than any other plugin's, provide a negative number</system:String>
<system:String x:Key="invalidPriority">Please provide an valid integer for Priority!</system:String> <system:String x:Key="invalidPriority">Please provide an valid integer for Priority!</system:String>
<!--Action Keyword Setting Dialog--> <!-- Action Keyword Setting Dialog -->
<system:String x:Key="oldActionKeywords">Old Action Keyword</system:String> <system:String x:Key="oldActionKeywords">Old Action Keyword</system:String>
<system:String x:Key="newActionKeywords">New Action Keyword</system:String> <system:String x:Key="newActionKeywords">New Action Keyword</system:String>
<system:String x:Key="cancel">Cancel</system:String> <system:String x:Key="cancel">Cancel</system:String>
@ -157,9 +158,9 @@
<system:String x:Key="newActionKeywordsHasBeenAssigned">This new Action Keyword is already assigned to another plugin, please choose a different one</system:String> <system:String x:Key="newActionKeywordsHasBeenAssigned">This new Action Keyword is already assigned to another plugin, please choose a different one</system:String>
<system:String x:Key="success">Success</system:String> <system:String x:Key="success">Success</system:String>
<system:String x:Key="completedSuccessfully">Completed successfully</system:String> <system:String x:Key="completedSuccessfully">Completed successfully</system:String>
<system:String x:Key="actionkeyword_tips">Enter the action keyword you need to start the plug-in. Use * if you don't want to specify an action keyword. In the case, The plug-in works without keywords. </system:String> <system:String x:Key="actionkeyword_tips">Enter the action keyword you need to start the plug-in. Use * if you don't want to specify an action keyword. In the case, The plug-in works without keywords.</system:String>
<!--Custom Query Hotkey Dialog--> <!-- Custom Query Hotkey Dialog -->
<system:String x:Key="customeQueryHotkeyTitle">Custom Query Hotkey</system:String> <system:String x:Key="customeQueryHotkeyTitle">Custom Query Hotkey</system:String>
<system:String x:Key="customeQueryHotkeyTips">Press the custom hotkey to automatically insert the specified query.</system:String> <system:String x:Key="customeQueryHotkeyTips">Press the custom hotkey to automatically insert the specified query.</system:String>
<system:String x:Key="preview">Preview</system:String> <system:String x:Key="preview">Preview</system:String>
@ -167,10 +168,10 @@
<system:String x:Key="invalidPluginHotkey">Invalid plugin hotkey</system:String> <system:String x:Key="invalidPluginHotkey">Invalid plugin hotkey</system:String>
<system:String x:Key="update">Update</system:String> <system:String x:Key="update">Update</system:String>
<!--Hotkey Control--> <!-- Hotkey Control -->
<system:String x:Key="hotkeyUnavailable">Hotkey Unavailable</system:String> <system:String x:Key="hotkeyUnavailable">Hotkey Unavailable</system:String>
<!--Crash Reporter--> <!-- Crash Reporter -->
<system:String x:Key="reportWindow_version">Version</system:String> <system:String x:Key="reportWindow_version">Version</system:String>
<system:String x:Key="reportWindow_time">Time</system:String> <system:String x:Key="reportWindow_time">Time</system:String>
<system:String x:Key="reportWindow_reproduce">Please tell us how application crashed so we can fix it</system:String> <system:String x:Key="reportWindow_reproduce">Please tell us how application crashed so we can fix it</system:String>
@ -186,16 +187,18 @@
<system:String x:Key="reportWindow_report_failed">Failed to send report</system:String> <system:String x:Key="reportWindow_report_failed">Failed to send report</system:String>
<system:String x:Key="reportWindow_flowlauncher_got_an_error">Flow Launcher got an error</system:String> <system:String x:Key="reportWindow_flowlauncher_got_an_error">Flow Launcher got an error</system:String>
<!--General Notice--> <!-- General Notice -->
<system:String x:Key="pleaseWait">Please wait...</system:String> <system:String x:Key="pleaseWait">Please wait...</system:String>
<!--update--> <!-- update -->
<system:String x:Key="update_flowlauncher_update_check">Checking for new update</system:String> <system:String x:Key="update_flowlauncher_update_check">Checking for new update</system:String>
<system:String x:Key="update_flowlauncher_already_on_latest">You already have the latest Flow Launcher version</system:String> <system:String x:Key="update_flowlauncher_already_on_latest">You already have the latest Flow Launcher version</system:String>
<system:String x:Key="update_flowlauncher_update_found">Update found</system:String> <system:String x:Key="update_flowlauncher_update_found">Update found</system:String>
<system:String x:Key="update_flowlauncher_updating">Updating...</system:String> <system:String x:Key="update_flowlauncher_updating">Updating...</system:String>
<system:String x:Key="update_flowlauncher_fail_moving_portable_user_profile_data">Flow Launcher was not able to move your user profile data to the new update version. <system:String x:Key="update_flowlauncher_fail_moving_portable_user_profile_data">
Please manually move your profile data folder from {0} to {1}</system:String> Flow Launcher was not able to move your user profile data to the new update version.
Please manually move your profile data folder from {0} to {1}
</system:String>
<system:String x:Key="update_flowlauncher_new_update">New Update</system:String> <system:String x:Key="update_flowlauncher_new_update">New Update</system:String>
<system:String x:Key="update_flowlauncher_update_new_version_available">New Flow Launcher release {0} is now available</system:String> <system:String x:Key="update_flowlauncher_update_new_version_available">New Flow Launcher release {0} is now available</system:String>
<system:String x:Key="update_flowlauncher_update_error">An error occurred while trying to install software updates</system:String> <system:String x:Key="update_flowlauncher_update_error">An error occurred while trying to install software updates</system:String>

View file

@ -1,78 +1,94 @@
<Window x:Class="Flow.Launcher.SelectFileManagerWindow" <Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" x:Class="Flow.Launcher.SelectFileManagerWindow"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Flow.Launcher" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Flow.Launcher"
xmlns:ui="http://schemas.modernwpf.com/2019" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="{DynamicResource fileManagerWindow}" xmlns:ui="http://schemas.modernwpf.com/2019"
Width="600" Title="{DynamicResource fileManagerWindow}"
Height="500" Background="#f3f3f3"
Background="#f3f3f3" DataContext="{Binding RelativeSource={RelativeSource Self}}"
DataContext="{Binding RelativeSource={RelativeSource Self}}" ResizeMode="NoResize"
ResizeMode="NoResize" SizeToContent="WidthAndHeight"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
mc:Ignorable="d"> mc:Ignorable="d">
<Grid> <Grid Width="600">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition /> <RowDefinition />
<RowDefinition Height="80" /> <RowDefinition Height="80" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Border Padding="26,26,26,0" <Border
Background="#ffffff" Padding="26,26,26,0"
BorderBrush="#e5e5e5" Background="#ffffff"
BorderThickness="0,0,0,1"> BorderBrush="#e5e5e5"
BorderThickness="0,0,0,1">
<Grid> <Grid>
<StackPanel> <StackPanel>
<StackPanel Grid.Row="0" Margin="0,0,0,12"> <StackPanel Grid.Row="0" Margin="0,0,0,12">
<TextBlock Grid.Column="0" <TextBlock
Margin="0,0,0,0" Grid.Column="0"
FontFamily="Segoe UI" Margin="0,0,0,0"
FontSize="20" FontFamily="Segoe UI"
FontWeight="SemiBold" FontSize="20"
Text="{DynamicResource fileManagerWindow}" FontWeight="SemiBold"
TextAlignment="Left" /> Text="{DynamicResource fileManagerWindow}"
TextAlignment="Left" />
</StackPanel> </StackPanel>
<StackPanel> <StackPanel>
<TextBlock FontSize="14" <TextBlock
Foreground="#1b1b1b" FontSize="14"
Text="{DynamicResource fileManager_tips}" Foreground="#1b1b1b"
TextAlignment="Left" Text="{DynamicResource fileManager_tips}"
TextWrapping="WrapWithOverflow" /> TextAlignment="Left"
TextWrapping="WrapWithOverflow" />
</StackPanel> </StackPanel>
<StackPanel Margin="14,28,0,0" Orientation="Horizontal"> <StackPanel Margin="14,28,0,0" Orientation="Horizontal">
<TextBlock Grid.Column="1" <TextBlock
HorizontalAlignment="Left" Grid.Column="1"
VerticalAlignment="Center" HorizontalAlignment="Left"
FontSize="14" VerticalAlignment="Center"
Text="{DynamicResource fileManager_name}" /> FontSize="14"
<ComboBox Name="comboBox" Text="{DynamicResource fileManager_name}" />
Width="200" <ComboBox
Height="35" Name="comboBox"
Margin="14,0,0,0" Width="200"
HorizontalAlignment="Left" Height="35"
VerticalAlignment="Center" Margin="14,0,0,0"
ItemsSource="{Binding CustomExplorers}" HorizontalAlignment="Left"
SelectedIndex="{Binding SelectedCustomExplorerIndex}"> VerticalAlignment="Center"
ItemsSource="{Binding CustomExplorers}"
SelectedIndex="{Binding SelectedCustomExplorerIndex}">
<ComboBox.ItemTemplate> <ComboBox.ItemTemplate>
<DataTemplate> <DataTemplate>
<TextBlock Text="{Binding Name}" /> <TextBlock Text="{Binding Name}" />
</DataTemplate> </DataTemplate>
</ComboBox.ItemTemplate> </ComboBox.ItemTemplate>
</ComboBox> </ComboBox>
<Button Click="btnAdd_Click" Content="{DynamicResource add}" /> <Button
<Button Click="btnDelete_Click" Content="{DynamicResource delete}" IsEnabled="{Binding CustomExplorer.Editable}" /> Margin="10,0,0,0"
Click="btnAdd_Click"
Content="{DynamicResource add}" />
<Button
Margin="10,0,0,0"
Click="btnDelete_Click"
Content="{DynamicResource delete}"
IsEnabled="{Binding CustomExplorer.Editable}" />
</StackPanel> </StackPanel>
<Rectangle Height="1" Margin="0,20,0,12" Fill="#cecece" /> <Rectangle
<StackPanel Margin="0,0,0,0" Height="1"
HorizontalAlignment="Stretch" Margin="0,20,0,12"
DataContext="{Binding CustomExplorer}" Fill="#cecece" />
Orientation="Horizontal"> <StackPanel
<Grid Width="500"> Margin="0,0,0,0"
HorizontalAlignment="Stretch"
DataContext="{Binding CustomExplorer}"
Orientation="Horizontal">
<Grid Width="545">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="250" /> <ColumnDefinition Width="220" />
<ColumnDefinition /> <ColumnDefinition />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Grid.RowDefinitions> <Grid.RowDefinitions>
@ -81,128 +97,97 @@
<RowDefinition /> <RowDefinition />
<RowDefinition /> <RowDefinition />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<TextBlock Grid.Row="0" <TextBlock
Grid.Column="0" Grid.Row="0"
Margin="14,0,0,0" Grid.Column="0"
HorizontalAlignment="Left" Margin="14,5,0,0"
VerticalAlignment="Center" HorizontalAlignment="Left"
FontSize="14" VerticalAlignment="Center"
Text="{DynamicResource fileManager_profile_name}" /> FontSize="14"
<TextBox Grid.Row="0" Text="{DynamicResource fileManager_profile_name}" />
Grid.Column="1" <TextBox
Width="Auto" Grid.Row="0"
Margin="10,0,15,0" Grid.Column="1"
HorizontalAlignment="Stretch" Width="Auto"
VerticalAlignment="Center" Margin="10,5,15,0"
IsEnabled="{Binding Editable}" HorizontalAlignment="Stretch"
Text="{Binding Name}"> VerticalAlignment="Center"
<TextBox.Style> IsEnabled="{Binding Editable}"
<Style TargetType="TextBox"> Text="{Binding Name}" />
<Setter Property="Background" Value="#ffffff" /> <TextBlock
<Setter Property="Height" Value="34" /> Grid.Row="1"
<Setter Property="FontSize" Value="14" /> Grid.Column="0"
<Setter Property="Padding" Value="6,6,0,0" /> Margin="14,10,0,0"
<Setter Property="VerticalAlignment" Value="Center" /> HorizontalAlignment="Left"
<Setter Property="BorderBrush" Value="#000000" /> VerticalAlignment="Center"
</Style> FontSize="14"
</TextBox.Style> Text="{DynamicResource fileManager_path}" />
</TextBox> <TextBox
<TextBlock Grid.Row="1" Grid.Row="1"
Grid.Column="0" Grid.Column="1"
Margin="14,0,0,0" Width="Auto"
HorizontalAlignment="Left" Margin="10,10,15,0"
VerticalAlignment="Center" HorizontalAlignment="Stretch"
FontSize="14" VerticalAlignment="Center"
Text="{DynamicResource fileManager_path}" /> IsEnabled="{Binding Editable}"
<TextBox Grid.Row="1" Text="{Binding Path}" />
Grid.Column="1" <TextBlock
Width="Auto" Grid.Row="2"
Margin="10,0,15,0" Grid.Column="0"
HorizontalAlignment="Stretch" Margin="14,10,0,0"
VerticalAlignment="Center" HorizontalAlignment="Left"
IsEnabled="{Binding Editable}" VerticalAlignment="Center"
Text="{Binding Path}"> FontSize="14"
<TextBox.Style> Text="{DynamicResource fileManager_directory_arg}" />
<Style TargetType="TextBox"> <TextBox
<Setter Property="Background" Value="#ffffff" /> Grid.Row="2"
<Setter Property="Height" Value="34" /> Grid.Column="1"
<Setter Property="FontSize" Value="14" /> Width="Auto"
<Setter Property="Padding" Value="6,6,0,0" /> Margin="10,10,15,0"
<Setter Property="VerticalAlignment" Value="Center" /> HorizontalAlignment="Stretch"
<Setter Property="BorderBrush" Value="#000000" /> VerticalAlignment="Center"
</Style> IsEnabled="{Binding Editable}"
</TextBox.Style> Text="{Binding DirectoryArgument}" />
</TextBox> <TextBlock
<TextBlock Grid.Row="2" Grid.Row="3"
Grid.Column="0" Grid.Column="0"
Margin="14,15,0,0" Margin="14,10,0,20"
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Center" VerticalAlignment="Center"
FontSize="14" FontSize="14"
Text="{DynamicResource fileManager_directory_arg}" /> Text="{DynamicResource fileManager_file_arg}" />
<TextBox Grid.Row="2" <TextBox
Grid.Column="1" Grid.Row="3"
Width="Auto" Grid.Column="1"
Margin="10,15,15,0" Width="Auto"
HorizontalAlignment="Stretch" Margin="10,10,15,20"
VerticalAlignment="Center" HorizontalAlignment="Stretch"
IsEnabled="{Binding Editable}" VerticalAlignment="Center"
Text="{Binding DirectoryArgument}"> IsEnabled="{Binding Editable}"
<TextBox.Style> Text="{Binding FileArgument}" />
<Style TargetType="TextBox">
<Setter Property="Background" Value="#ffffff" />
<Setter Property="Height" Value="34" />
<Setter Property="FontSize" Value="14" />
<Setter Property="Padding" Value="6,6,0,0" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#000000" />
</Style>
</TextBox.Style>
</TextBox>
<TextBlock Grid.Row="3"
Grid.Column="0"
Margin="14,15,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontSize="14"
Text="{DynamicResource fileManager_file_arg}" />
<TextBox Grid.Row="3"
Grid.Column="1"
Width="Auto"
Margin="10,15,15,0"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
IsEnabled="{Binding Editable}"
Text="{Binding FileArgument}">
<TextBox.Style>
<Style TargetType="TextBox">
<Setter Property="Background" Value="#ffffff" />
<Setter Property="Height" Value="34" />
<Setter Property="FontSize" Value="14" />
<Setter Property="Padding" Value="6,6,0,0" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#000000" />
</Style>
</TextBox.Style>
</TextBox>
</Grid> </Grid>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Grid> </Grid>
</Border> </Border>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" Orientation="Horizontal"> <StackPanel
<Button x:Name="btnCancel" Grid.Row="1"
Width="100" HorizontalAlignment="Center"
Height="30" Orientation="Horizontal">
Margin="0,0,5,0" <Button
Click="btnCancel_Click" x:Name="btnCancel"
Content="{DynamicResource cancel}" /> Width="100"
<Button x:Name="btnDone" Height="30"
Width="100" Margin="0,0,5,0"
Height="30" Click="btnCancel_Click"
Margin="5,0,0,0" Content="{DynamicResource cancel}" />
Click="btnDone_Click" <Button
Content="{DynamicResource done}" /> x:Name="btnDone"
Width="100"
Height="30"
Margin="5,0,0,0"
Click="btnDone_Click"
Content="{DynamicResource done}" />
</StackPanel> </StackPanel>
</Grid> </Grid>
</Window> </Window>