Statistics
| Branch: | Revision:

root / trunk / Pithos.Client.WPF / Shell / MiniStatusView.xaml @ 21141c06

History | View | Annotate | Download (2.2 kB)

1
<Window x:Class="Pithos.Client.WPF.Shell.MiniStatusView"
2
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
        
5
        Title="Pithos+ Status" Height="120" Width="350" WindowStyle="ToolWindow" Topmost="True" Icon="/PithosPlus;component/Images/PithosTaskbar.png" WindowStartupLocation="CenterOwner" xmlns:my="clr-namespace:Pithos.Client.WPF.Converters">
6
    <Window.Resources>
7
        <my:ImageNameToImageConverter x:Key="PathToImage" />
8
    </Window.Resources>
9
    <Border HorizontalAlignment="Stretch" 
10
            VerticalAlignment="Stretch" CornerRadius="2">
11
        <Grid>
12
            <Grid.ColumnDefinitions>
13
                <ColumnDefinition Width="Auto"/>
14
                <ColumnDefinition/>
15
                <ColumnDefinition Width="Auto"/>
16
            </Grid.ColumnDefinitions>
17
            <Grid.RowDefinitions>
18
                <RowDefinition  />
19
                <RowDefinition Height="20"/>
20
                <RowDefinition Height="Auto"/>
21
            </Grid.RowDefinitions>
22
            <Image Grid.Column="0" Width="48" Height="48" HorizontalAlignment="Right" VerticalAlignment="Center"  Source="/PithosPlus;component/Images/PithosTaskbar.png" Stretch="Fill" Opacity="0.7" ToolTip="Close Balloon" x:Name="DropList" 
23
          Drop="DropList_Drop" 
24
          DragEnter="DropList_DragEnter" AllowDrop="True" />
25
            <TextBlock TextWrapping="Wrap" x:Name="Status" 
26
                   HorizontalAlignment="Stretch"
27
                   VerticalAlignment="Stretch" Grid.Column="1" Grid.RowSpan="2" Margin="2,5,2,2"/>
28
            <ProgressBar x:Name="StatusProgressBar"  Grid.Column="0" Grid.ColumnSpan="2"  Grid.Row="1"  IsIndeterminate="False" Maximum="100" Value="{Binding Progress,Mode=OneWay}" Height="20" Foreground="#FF3582AC"/>
29
            <Button  Grid.Column="2" Grid.Row="1" x:Name="ToggleSyncing" 
30
                     ToolTip="{Binding PauseToolTip}"  >
31
                <Image Source="{Binding Path=PauseImage, Converter={StaticResource PathToImage},FallbackValue='Pause.png'}" 
32
                       Stretch="Uniform" Height="16" Width="16"/>
33
            </Button>
34
        </Grid>
35
    </Border>
36
</Window>