Skip to content

Commit

Permalink
Update file opener settings view
Browse files Browse the repository at this point in the history
  • Loading branch information
dogzz9445 committed Jul 15, 2024
1 parent d0b0596 commit 968f496
Showing 1 changed file with 9 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
</ComboBox>
</settings:SettingsBlock>

<!-- Files ExecutableAppDataSourceSelector -->
<settings:SettingsBlock CategoryText="Opener:"
Header="Executable App for Open File or Folder..">
<ContentPresenter Grid.Row="1"
Content="{Binding ExecutableAppDataSourceSelector}"
DataContext="{Binding ExecutableAppDataSourceSelector}" />
</settings:SettingsBlock>

<!-- Files -->
<settings:SettingsBlock CategoryText="Opener-Files:"
Visibility="{Binding OpenType, Converter={StaticResource FileOpenTypeFileToVisibleConverter}, Mode=OneWay}"
Expand Down Expand Up @@ -93,15 +101,6 @@
</Grid>
</settings:SettingsBlock>

<!-- Files ExecutableAppDataSourceSelector -->
<settings:SettingsBlock CategoryText="Opener-Files:"
Visibility="{Binding OpenType, Converter={StaticResource FileOpenTypeFileToVisibleConverter}, Mode=OneWay}"
Header="Executable App..">
<ContentPresenter Grid.Row="1"
Content="{Binding ExecutableAppDataSourceSelector}"
DataContext="{Binding ExecutableAppDataSourceSelector}" />
</settings:SettingsBlock>

<!-- Folders -->
<settings:SettingsBlock CategoryText="Opener-Folders:"
Visibility="{Binding OpenType, Converter={StaticResource FileOpenTypeFolderToVisibleConverter}, Mode=OneWay}"
Expand Down Expand Up @@ -133,7 +132,7 @@
Margin="4 0"
Style="{StaticResource IconButton24}"
Icon="{ui:SymbolIcon OpenFolder24}"
Command="{Binding DataContext.OpenFileCommand, RelativeSource={RelativeSource AncestorType={x:Type ListBox}}}"
Command="{Binding DataContext.OpenFolderCommand, RelativeSource={RelativeSource AncestorType={x:Type ListBox}}}"
CommandParameter="{Binding DataContext, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
ToolTip="Open Folder" />
<ui:Button Grid.Column="2"
Expand All @@ -150,15 +149,6 @@
</Grid>
</settings:SettingsBlock>

<!-- Folders ExecutableAppDataSourceSelector -->
<settings:SettingsBlock CategoryText="Opener-Folders:"
Visibility="{Binding OpenType, Converter={StaticResource FileOpenTypeFolderToVisibleConverter}, Mode=OneWay}"
Header="Executable App for Open Folders..">
<ContentPresenter Grid.Row="1"
Content="{Binding ExecutableAppDataSourceSelector}"
DataContext="{Binding ExecutableAppDataSourceSelector}" />
</settings:SettingsBlock>

</StackPanel>
</DataTemplate>
</ResourceDictionary>

0 comments on commit 968f496

Please sign in to comment.