mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(AboutBox): image formats are sorted alphabetically.
This commit is contained in:
parent
6ef6a63b09
commit
6099177363
@ -34,11 +34,17 @@ IN THE SOFTWARE.
|
|||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<local:BooleanToVisibiltyConverter x:Key="guiBoolToVisibilityConverter" />
|
<local:BooleanToVisibiltyConverter x:Key="guiBoolToVisibilityConverter" />
|
||||||
<local:CanCreateConverter x:Key="guiCanCreateConverter"/>
|
<local:CanCreateConverter x:Key="guiCanCreateConverter"/>
|
||||||
<CollectionViewSource x:Key="FormatsSource" Source="{Binding Source={x:Static gr:FormatCatalog.Instance}, Path=ArcFormats, Mode=OneWay}">
|
<CollectionViewSource x:Key="ArcFormatsSource" Source="{Binding Source={x:Static gr:FormatCatalog.Instance}, Path=ArcFormats, Mode=OneWay}">
|
||||||
<CollectionViewSource.SortDescriptions>
|
<CollectionViewSource.SortDescriptions>
|
||||||
<scm:SortDescription PropertyName="Tag" Direction="Ascending"/>
|
<scm:SortDescription PropertyName="Tag" Direction="Ascending"/>
|
||||||
</CollectionViewSource.SortDescriptions>
|
</CollectionViewSource.SortDescriptions>
|
||||||
</CollectionViewSource>
|
</CollectionViewSource>
|
||||||
|
<CollectionViewSource x:Key="ImageFormatsSource" Source="{Binding Source={x:Static gr:FormatCatalog.Instance}, Path=ImageFormats, Mode=OneWay}">
|
||||||
|
<CollectionViewSource.SortDescriptions>
|
||||||
|
<scm:SortDescription PropertyName="IsBuiltin" Direction="Descending"/>
|
||||||
|
<scm:SortDescription PropertyName="Tag" Direction="Ascending"/>
|
||||||
|
</CollectionViewSource.SortDescriptions>
|
||||||
|
</CollectionViewSource>
|
||||||
<Style x:Key="HiddenHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
|
<Style x:Key="HiddenHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
|
||||||
<Setter Property="Visibility" Value="Collapsed" />
|
<Setter Property="Visibility" Value="Collapsed" />
|
||||||
</Style>
|
</Style>
|
||||||
@ -64,7 +70,7 @@ IN THE SOFTWARE.
|
|||||||
<TabControl>
|
<TabControl>
|
||||||
<TabItem Header="{x:Static s:guiStrings.TextAboutArchives}">
|
<TabItem Header="{x:Static s:guiStrings.TextAboutArchives}">
|
||||||
<Border BorderThickness="1" BorderBrush="Black" VerticalAlignment="Stretch" Margin="0" SnapsToDevicePixels="True">
|
<Border BorderThickness="1" BorderBrush="Black" VerticalAlignment="Stretch" Margin="0" SnapsToDevicePixels="True">
|
||||||
<ListView Name="ArchiveFormats" ItemsSource="{Binding Source={StaticResource FormatsSource}}"
|
<ListView Name="ArchiveFormats" ItemsSource="{Binding Source={StaticResource ArcFormatsSource}}"
|
||||||
ItemContainerStyle="{StaticResource DisableSelectionStyle}" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="False">
|
ItemContainerStyle="{StaticResource DisableSelectionStyle}" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="False">
|
||||||
<ListView.View>
|
<ListView.View>
|
||||||
<GridView ColumnHeaderContainerStyle="{StaticResource HiddenHeaderStyle}">
|
<GridView ColumnHeaderContainerStyle="{StaticResource HiddenHeaderStyle}">
|
||||||
@ -97,7 +103,7 @@ IN THE SOFTWARE.
|
|||||||
<TabItem Header="{x:Static s:guiStrings.TextAboutImages}">
|
<TabItem Header="{x:Static s:guiStrings.TextAboutImages}">
|
||||||
<Border BorderThickness="1" BorderBrush="Black" VerticalAlignment="Stretch" Margin="0" SnapsToDevicePixels="True">
|
<Border BorderThickness="1" BorderBrush="Black" VerticalAlignment="Stretch" Margin="0" SnapsToDevicePixels="True">
|
||||||
<ScrollViewer VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Margin="0" Background="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}">
|
<ScrollViewer VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Margin="0" Background="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}">
|
||||||
<ItemsControl Name="ImageFormats" ItemsSource="{Binding Source={x:Static gr:FormatCatalog.Instance}, Path=ImageFormats, Mode=OneWay}">
|
<ItemsControl Name="ImageFormats" ItemsSource="{Binding Source={StaticResource ImageFormatsSource}}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
|
Loading…
Reference in New Issue
Block a user