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

Last change on this file since 1680 was 1680, checked in by kopal, 12 years ago
  • Execution now is always triggered when one input changed and provides also old inputs
  • Added support for dynamic Connectors
  • some small bug fixing
File size: 5.0 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.Container"
7             MinHeight="100" MinWidth="130" Width="130" Height="100"
8             mc:Ignorable="d">
9    <UserControl.Background>
10        <SolidColorBrush Opacity="0.01" Color="#444444"></SolidColorBrush>
11    </UserControl.Background>
12    <UserControl.Resources>
13        <ResourceDictionary>
14            <ResourceDictionary.MergedDictionaries>
15                <ResourceDictionary Source="../Resource/Styles.xaml"/>
16            </ResourceDictionary.MergedDictionaries>
17        </ResourceDictionary>
18    </UserControl.Resources>
19    <DockPanel Name="Root" LastChildFill="True">
20        <StackPanel DockPanel.Dock="Right" Name="OutputConnectorPanel" Width="20" Height="{Binding ElementName=Window, Path=ActualHeight}" VerticalAlignment="Bottom"/>
21        <StackPanel DockPanel.Dock="Left" Name="InputConnectorPanel" Width="20" Height="{Binding ElementName=Window, Path=ActualHeight}" VerticalAlignment="Bottom"/>
22        <StackPanel DockPanel.Dock="Top" Name="ControlPanel" Visibility="Hidden" Orientation="Horizontal" HorizontalAlignment="Right">
23            <Button Height="20" Width="20" Style="{StaticResource ResourceKey=SettingsPluginContainerButtonStyle}" Margin="0,0,0,0" Click="Button_Click_1">
24                <Button.RenderTransform>
25                    <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
26                </Button.RenderTransform>
27                <Image Source="/WorkspaceManager;component/View/Image/setting.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
28            </Button>
29       
30            <Button Height="20" Width="20" Style="{StaticResource ResourceKey=DeletePluginContainerButtonStyle}" Margin="0,0,0,5" Click="Button_Click">
31                <Button.LayoutTransform>
32                    <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
33                </Button.LayoutTransform>
34                <Image Source="/WorkspaceManager;component/View/Image/delete.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
35            </Button>
36        </StackPanel>
37       
38        <!--<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">
39            <StackPanel/>
40        </Border>-->
41       
42        <Border Name="Window" Background="{StaticResource ResourceKey=GlassBrush}" CornerRadius="7" BorderBrush="#82bbef" BorderThickness="1.3">
43            <Grid>
44                <ProgressBar Name="ProgressBar" Maximum="1.0" Foreground="Green" Background="{Binding ElementName=PluginNamePlate, Path=Fill}" Opacity="0.3" >
45                    <ProgressBar.Resources>
46                        <ResourceDictionary Source="/PresentationFramework.Aero;v3.0.0.0;31bf3856ad364e35;component/themes/aero.normalcolor.xaml"/>
47                    </ProgressBar.Resources>
48                </ProgressBar>
49                <Thumb Name="BottomDelta" Opacity="0" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Cursor="SizeNS" DragDelta="Thumb_DragDelta"></Thumb>
50                <Thumb Name="RightDelta" Opacity="0" HorizontalAlignment="Right" VerticalAlignment="Stretch" Cursor="SizeWE" DragDelta="Thumb_DragDelta" ></Thumb>
51                <Thumb Name="BottomRightDelta" Opacity="0" HorizontalAlignment="Right" VerticalAlignment="Bottom" Cursor="SizeNWSE" Height="15" Width="15" DragDelta="Thumb_DragDelta"></Thumb>
52                <Grid Name="PresentationBase" Width="Auto" Height="Auto" Margin="3">
53                    <Grid.RowDefinitions>
54                        <RowDefinition Height="20"></RowDefinition>
55                        <RowDefinition Height="*"></RowDefinition>
56                    </Grid.RowDefinitions>
57                    <Rectangle Name="PluginNamePlate" Margin="2.5,1.25,2.5,1.25" Height="10" Opacity="0.5" Fill="#82bbef"/>
58               
59                    <Label Name="PluginName" FontSize="11" Margin="3,-2,0,0" FontFamily="Georgia" Foreground="WhiteSmoke" Content="test" HorizontalAlignment="left"></Label>
60
61                    <Grid Grid.Row="1" Name="PresentationPanel" Width="Auto" Height="Auto" Margin="5,0,5,5" Background="Transparent">
62                        <Grid.Effect>
63                            <DropShadowEffect BlurRadius="2" Color="Black" ShadowDepth="0.1" Direction="90" Opacity="0.4"></DropShadowEffect>
64                        </Grid.Effect>
65                    </Grid>
66                </Grid>
67            </Grid>
68        </Border>
69    </DockPanel>
70</UserControl>
Note: See TracBrowser for help on using the repository browser.