Click here to Skip to main content
Click here to Skip to main content

WPF Book Reader

By , 10 May 2012
 
BookReaderv1.zip
BookReader.application
BookReader.exe
BookReader.exe.manifest
Dependencies
7z.dll
ICSharpCode.SharpZipLib.dll
SevenZipSharp.dll
WPFToolkit.dll
BookReaderv1_source.zip
BookReader
ClassDiagram.cd
Dependencies
7z.dll
7-zip.dll
ICSharpCode.SharpZipLib.dll
SevenZipSharp.dll
WPFToolkit.dll
Properties
app.manifest
Settings.settings
Reader
Catalog
Common
Images
RAR
ZIP
Resources
TheRedPushPin.png
XAML
BookReaderv2.zip
BookReader.application
BookReader.exe
BookReader.exe.manifest
7z.dll
SevenZipSharp.dll
WPFToolkit.dll
BookReaderv2_8.zip
Release
BookReader.application
BookReader.exe
BookReader.exe.manifest
Dependencies
7z.dll
pdftohtml.exe
SevenZipSharp.dll
WPFToolkit.dll
BookReaderv2_8_source.zip
BookReader.csproj.user
BookReader.csproj.vspscc
7z.dll
pdftohtml.exe
SevenZipSharp.dll
WPFToolkit.dll
app.manifest
Settings.settings
acroread.png
document.png
ecran.png
exit.png
FitHeight.png
FitWidth.png
info.png
open_folder.png
refresh.png
Search.png
Theme
TheRedPushPin.png
tools.png
BookReaderv2_source.zip
BookReader.csproj.user
ClassDiagram.cd
7z.dll
7-zip.dll
ICSharpCode.SharpZipLib.dll
SevenZipSharp.dll
WPFToolkit.dll
app.manifest
Settings.settings
TheRedPushPin.png
BookReaderv3_0.zip
BookReader.application
BookReader.exe
BookReader.exe.manifest
BookReader.vshost.exe
7z.dll
pdftohtml.exe
SevenZipSharp.dll
WPFToolkit.dll
BookReaderv3_0_source.zip
BookReader.csproj.user
BookReader.csproj.vspscc
7z.dll
pdftohtml.exe
SevenZipSharp.dll
WPFToolkit.dll
app.manifest
Settings.settings
acroread.png
book.ico
document.png
ecran.png
exit.png
FitHeight.png
FitWidth.png
info.png
open_folder.png
refresh.png
Search.png
TheRedPushPin.png
tools.png
<Window x:Class="BookReader.OptionWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Options" Height="290" Width="514" WindowStartupLocation="Manual" AllowsTransparency="True" WindowStyle="None" MouseLeftButtonDown="Window_MouseLeftButtonDown" Background="Transparent" Loaded="Window_Loaded">
    <Grid Margin="3">
        <!--WINDOW RECT-->
        <Rectangle Name="windowRect" RadiusX="16" RadiusY="16" Margin="2" Fill="{StaticResource windowBrush}" Opacity="0.8" StrokeThickness="0" Stroke="{StaticResource sliderBrush}">
            <Rectangle.BitmapEffect>
                <DropShadowBitmapEffect></DropShadowBitmapEffect>
            </Rectangle.BitmapEffect>
        </Rectangle>

        <!--WINDOW HEADER-->
        <Label Height="20" Margin="15,5,118,0" Name="headerLabel" VerticalAlignment="Top" FontSize="11" Foreground="{StaticResource sliderBrush}" FontWeight="Normal">Book Reader</Label>
        <Button Style="{StaticResource closeButton}" Height="11" HorizontalAlignment="Right" Margin="0,4,15,0" Name="closeButton" VerticalAlignment="Top" Width="11" Click="closeButton_Click" ToolTip="Exit">Button</Button>
        
        <GroupBox Margin="10,20,10,10" Header="Options">
        <Grid Margin="7">
            <Grid.RowDefinitions>
                <RowDefinition Height="32" />
                <RowDefinition Height="32" />
                <RowDefinition Height="32" />
                <RowDefinition Height="32" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="140*" />
                <ColumnDefinition Width="296*" />
            </Grid.ColumnDefinitions>
                <Label Grid.Column="0" HorizontalAlignment="Left">Catalog Path</Label>
                <TextBox Height="25" Grid.Column="1" Margin="0,0,21,0" VerticalAlignment="Top" HorizontalAlignment="Stretch" Name="textBoxPath" ToolTip="The path to your books. Include sub-directories"/>
                <Button Grid.Column="1" Height="25" Width="20" HorizontalAlignment="Right" VerticalAlignment="Top" Name="btnBrowse" Click="btnBrowse_Click">...</Button>
                    
                <Label Grid.Column="0" Grid.Row="1" HorizontalAlignment="Stretch">Image Cache</Label>
                <TextBox Grid.Row="1" Grid.Column="1" Height="25"  VerticalAlignment="Top" HorizontalAlignment="Stretch" Name="textBoxCache" ToolTip="Number of images to keep in cache. This allways include 3 pages after the current one for quick reading." />
                
                <Label Grid.Column="0" Grid.Row="2" HorizontalAlignment="Stretch" >Image Cache Duration</Label>
                <Slider Grid.Column="1" Grid.Row="2" Name="sliderDurationCache" Height="25"  VerticalAlignment="Top" Value="5" SmallChange="1" LargeChange="1" Maximum="10" TickPlacement="TopLeft" TickFrequency="1" IsSnapToTickEnabled="True" AutoToolTipPlacement="None" ToolTip="From 0 to 10, How long the images stays in memory from his last acces" />
                <Label Grid.Column="0" Grid.Row="3" HorizontalAlignment="Stretch">Debuging</Label>
                <CheckBox Grid.Column="1" Grid.Row="3" Margin="2,2,2,2" Name="chkUseDebug" ToolTip="Display a dialog with 'debug' information">Activate debuging display.</CheckBox>

                <Button Grid.Row="4" Name="BtnReset" Click="Reset_Click" ToolTip="Reset to default settings" Margin="33.142,19,33.142,0">Reset</Button>
                <Button Grid.Column="1" Grid.Row="5" HorizontalAlignment="Left" Name="BtnCancel" Width="75" Click="Cancel_Click" IsCancel="True" Margin="50,0,0,0" ToolTip="Cancel">Cancel</Button>
                <Button Grid.Column="1" Grid.Row="5 " HorizontalAlignment="Right" Name="BtnOk" Width="75" Click="Ok_Click" IsDefault="True" Margin="0,0,50,0" ToolTip="Ok">Ok</Button>
                
            </Grid>
            </GroupBox>
    </Grid>
</Window>

By viewing downloads associated with this article you agree to the Terms of use and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)

About the Author

Guillaume Waser
Architect A.C.S.
France France
No Biography provided

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130619.1 | Last Updated 10 May 2012
Article Copyright 2009 by Guillaume Waser
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid