mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-14 09:44:20 +08:00
added text files preview.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:GARbro.GUI"
|
||||
xmlns:jv="clr-namespace:JustView"
|
||||
xmlns:s="clr-namespace:GARbro.GUI.Strings"
|
||||
xmlns:p="clr-namespace:GARbro.GUI.Properties"
|
||||
Title="GARbro" MinHeight="250" ResizeMode="CanResizeWithGrip"
|
||||
@@ -212,6 +213,15 @@
|
||||
<Image Source="Images/48x48/refresh.png" Height="16" Width="16"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" x:Name="EncodingWidget" Visibility="{Binding ElementName=TextView, Path=Visibility}">
|
||||
<Separator/>
|
||||
<TextBlock Text="{x:Static s:guiStrings.LabelEncoding}" VerticalAlignment="Center" Margin="5,0,5,0"/>
|
||||
<ComboBox x:Name="EncodingChoice" IsEditable="False" Height="22" DisplayMemberPath="EncodingName"
|
||||
ItemsSource="{Binding ElementName=AppWindow, Path=TextEncodings}"
|
||||
SelectedValue="{Binding Source={x:Static p:Settings.Default}, Path=appTextEncoding, Mode=TwoWay}"
|
||||
SelectedValuePath="CodePage" SelectionChanged="OnEncodingSelect"/>
|
||||
<Separator/>
|
||||
</StackPanel>
|
||||
<Button ToolTip="{x:Static s:guiStrings.MenuAbout}" DockPanel.Dock="Right" Margin="0,2,10,2"
|
||||
Command="{x:Static local:Commands.About}">
|
||||
<Image Source="{StaticResource Icon32x32Help}"/>
|
||||
@@ -323,11 +333,13 @@
|
||||
</GridView>
|
||||
</ListView.View>
|
||||
</local:ListViewEx>
|
||||
<ScrollViewer Grid.Column="2" Background="LightGray"
|
||||
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
|
||||
<Image Name="PreviewPane" Stretch="None" UseLayoutRounding="True" SnapsToDevicePixels="True"
|
||||
local:TouchScrolling.IsEnabled="True"/>
|
||||
</ScrollViewer>
|
||||
<Grid Grid.Column="2" Name="PreviewPane" SnapsToDevicePixels="True">
|
||||
<ScrollViewer Name="ImageView" Background="LightGray" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
|
||||
<Image Name="ImageCanvas" Stretch="None" UseLayoutRounding="True" SnapsToDevicePixels="True"
|
||||
local:TouchScrolling.IsEnabled="True"/>
|
||||
</ScrollViewer>
|
||||
<jv:TextViewer x:Name="TextView" Visibility="Collapsed" BorderThickness="1,0,0,0" BorderBrush="Black"/>
|
||||
</Grid>
|
||||
<!-- Margin and BorderThickness help to react early on mouse pointer -->
|
||||
<GridSplitter Grid.Column="1" Background="Black" ShowsPreview="False" Focusable="False"
|
||||
Margin="-3,0" BorderThickness="3,0" BorderBrush="Transparent"
|
||||
|
||||
Reference in New Issue
Block a user