You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.9 KiB

  1. <Window x:Class="ICSharpCode.ILSpy.Options.OptionsDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:properties="clr-namespace:ICSharpCode.ILSpy.Properties"
  5. xmlns:options="clr-namespace:ICSharpCode.ILSpy.Options"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:toms="urn:TomsToolbox"
  9. mc:Ignorable="d"
  10. d:DataContext="{d:DesignInstance options:OptionsDialogViewModel}"
  11. Style="{StaticResource DialogWindow}"
  12. WindowStartupLocation="CenterOwner"
  13. ResizeMode="CanResizeWithGrip"
  14. Title="{x:Static properties:Resources.Options}" Height="500" Width="600">
  15. <DockPanel>
  16. <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="12,8">
  17. <Button Margin="2,0"
  18. Command="{Binding ResetDefaultsCommand}"
  19. Content="{x:Static properties:Resources.ResetToDefaults}" />
  20. <Button IsDefault="True" Margin="2,0"
  21. toms:Button.DialogResult="true"
  22. Command="{Binding CommitCommand}"
  23. Content="{x:Static properties:Resources.OK}" />
  24. <Button IsCancel="True" Margin="2,0"
  25. Content="{x:Static properties:Resources.Cancel}" />
  26. </StackPanel>
  27. <TabControl ItemsSource="{Binding OptionPages}"
  28. SelectedIndex="0"
  29. SelectedValuePath="Content"
  30. SelectedValue="{Binding SelectedPage}">
  31. <TabControl.ItemTemplate>
  32. <DataTemplate DataType="options:OptionsItemViewModel">
  33. <TextBlock Text="{Binding Title}" />
  34. </DataTemplate>
  35. </TabControl.ItemTemplate>
  36. <TabControl.ContentTemplate>
  37. <DataTemplate DataType="options:OptionsItemViewModel">
  38. <ContentPresenter Content="{Binding Content}" />
  39. </DataTemplate>
  40. </TabControl.ContentTemplate>
  41. </TabControl>
  42. </DockPanel>
  43. </Window>