source: trunk/CrypPlugins/WorkspaceManager/View/Container/PluginContainerView.xaml @ 1686

Last change on this file since 1686 was 1686, checked in by matkovic, 12 years ago

-small changes

File size: 6.8 KB
Line 
1<UserControl x:Class="WorkspaceManager.View.Container.PluginContainerView"
2             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6             xmlns:e="clr-namespace:WorkspaceManager.View.VisualComponents"
7             xmlns:z="clr-namespace:WorkspaceManager.View.Converter"
8             MinHeight="90" MinWidth="100" Width="100" Height="90"
9             mc:Ignorable="d">
10    <UserControl.Background>
11        <SolidColorBrush Opacity="0.01" Color="#444444"></SolidColorBrush>
12    </UserControl.Background>
13    <UserControl.Resources>
14        <ResourceDictionary>
15            <ResourceDictionary.MergedDictionaries>
16                <ResourceDictionary Source="../Resource/Styles.xaml"/>
17                <ResourceDictionary Source="../Resource/Animations.xaml"/>
18            </ResourceDictionary.MergedDictionaries>
19            <z:ScaleToPercentageConverter x:Key="PercentageConverter"></z:ScaleToPercentageConverter>
20        </ResourceDictionary>
21    </UserControl.Resources>
22    <DockPanel Name="Root" LastChildFill="True">
23        <StackPanel DockPanel.Dock="Right" Name="OutputConnectorPanel" Width="20" Height="{Binding ElementName=Window, Path=ActualHeight}" VerticalAlignment="Bottom"/>
24        <StackPanel DockPanel.Dock="Left" Name="InputConnectorPanel" Width="20" Height="{Binding ElementName=Window, Path=ActualHeight}" VerticalAlignment="Bottom"/>
25        <StackPanel DockPanel.Dock="Top" Name="ControlPanel" Visibility="Hidden" Orientation="Horizontal" HorizontalAlignment="Right">
26            <Button Height="20" Width="20" Style="{StaticResource ResourceKey=SettingsPluginContainerButtonStyle}" Margin="0,0,0,0" Click="Button_Click_1">
27                <Button.RenderTransform>
28                    <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
29                </Button.RenderTransform>
30                <Image Source="/WorkspaceManager;component/View/Image/setting.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
31            </Button>
32       
33            <Button Height="20" Width="20" Style="{StaticResource ResourceKey=DeletePluginContainerButtonStyle}" Margin="0,0,0,5" Click="Button_Click">
34                <Button.LayoutTransform>
35                    <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
36                </Button.LayoutTransform>
37                <Image Source="/WorkspaceManager;component/View/Image/delete.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
38            </Button>
39        </StackPanel>
40        <Grid DockPanel.Dock="Top" Width="{Binding ElementName=PresentationPanel, Path=ActualWidth}" Height="10">
41            <ProgressBar Name="ProgressBarInit" Background="Black" Height="10" Width="Auto" Foreground="ForestGreen" Opacity="1" Maximum="1">
42                <ProgressBar.Resources>
43                    <ResourceDictionary Source="/PresentationFramework.Aero;v3.0.0.0;31bf3856ad364e35;component/themes/aero.normalcolor.xaml"/>
44                </ProgressBar.Resources>
45            </ProgressBar>
46            <Label Name="Percentage" HorizontalAlignment="Center" FontSize="9" Margin="0,-10,0,0" Foreground="WhiteSmoke" ContentStringFormat="{}{0:F0} %" Content="{Binding ElementName=ProgressBarInit,Path=Value, Mode=OneWay, Converter={StaticResource ResourceKey=PercentageConverter}}"></Label>
47        </Grid>
48       
49
50        <!--<Border DockPanel.Dock="Bottom" Height="10" Width="{Binding ElementName=PresentationPanel, Path=ActualWidth}" Background="#82bbef" BorderBrush="#4c71bf" BorderThickness="1" Opacity="0.5" Margin="0,0,0,0">
51            <StackPanel/>
52        </Border>-->
53       
54        <Border Name="Window" CornerRadius="5" BorderThickness="2" BorderBrush="Beige">
55            <Border.Background>
56                <LinearGradientBrush Opacity="1" StartPoint="0,0" EndPoint="0,1">
57                    <GradientBrush.GradientStops>
58                        <GradientStopCollection>
59                            <GradientStop x:Name="BorderGradientStop" Color="#00b4fb" Offset="0.0"/>
60                            <GradientStop x:Name="BorderGradientStopSecond" Color="#3300b4fb" Offset="1"/>
61                        </GradientStopCollection>
62                    </GradientBrush.GradientStops>
63                </LinearGradientBrush>
64            </Border.Background>
65            <Grid>
66                <Thumb Name="BottomDelta" IsEnabled="False" Opacity="0" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Cursor="SizeNS" DragDelta="Thumb_DragDelta"></Thumb>
67                <Thumb Name="RightDelta" IsEnabled="False" Opacity="0" HorizontalAlignment="Right" VerticalAlignment="Stretch" Cursor="SizeWE" DragDelta="Thumb_DragDelta"></Thumb>
68                <Thumb Name="BottomRightDelta" IsEnabled="False" Opacity="0" HorizontalAlignment="Right" VerticalAlignment="Bottom" Cursor="SizeNWSE" Height="15" Width="15" DragDelta="Thumb_DragDelta"></Thumb>
69                <DockPanel Name="PresentationBase" Width="Auto" Height="Auto" LastChildFill="True" Margin="3">
70                    <!--<Grid Name="PluginNamePlate" DockPanel.Dock="Top" Margin="2.5,1.25,2.5,1.25" Height="17" Opacity="0.5" Background="#82bbef">
71                        <Label Name="PluginName" FontSize="11" Margin="0,-3,0,0" FontFamily="Georgia" Foreground="WhiteSmoke" Content="test" HorizontalAlignment="left"></Label>
72                    </Grid>-->
73                    <Border Name="MinMaxBorder" Height="7" DockPanel.Dock="Bottom" BorderBrush="#88FFFFFF" Background="#88444444" BorderThickness="1.7" CornerRadius="2" MouseLeftButtonDown="MinMaxBorder_MouseLeftButtonDown">
74                        <Border.Triggers>
75                            <EventTrigger RoutedEvent="MouseEnter">
76                                <BeginStoryboard Storyboard="{StaticResource ResourceKey=MaxMinColorAnimEnter}"/>
77                            </EventTrigger>
78                            <EventTrigger RoutedEvent="MouseLeave">
79                                <BeginStoryboard Storyboard="{StaticResource ResourceKey=MaxMinColorAnimLeave}"/>
80                            </EventTrigger>
81                        </Border.Triggers>
82                    </Border>
83                    <Border Name="PresentationPanel" Width="Auto" Height="Auto" Margin="2.5,2.5,2.5,2.5" Background="Transparent">
84                        <Border.Effect>
85                            <DropShadowEffect BlurRadius="2" Color="Black" ShadowDepth="0.1" Direction="90" Opacity="0.4"></DropShadowEffect>
86                        </Border.Effect>
87                    </Border>
88                </DockPanel>
89            </Grid>
90        </Border>
91    </DockPanel>
92</UserControl>
Note: See TracBrowser for help on using the repository browser.