source: trunk/CrypPlugins/WorkspaceManager/View/Container/IControlPlaceHolder.xaml @ 2280

Last change on this file since 2280 was 2280, checked in by matkovic, 11 years ago

-fixed "Fit to Screen"
-fixed Scrollbars
-fixed Dragging
-added custom names
-New: IControl- Presentation
--Loading adjusted
-New: Multi selection
-New: Copy /Past (not complete)
-New: Multi Dragging
-New: PluginContainerView Highlighting added

File size: 3.4 KB
Line 
1<UserControl x:Class="WorkspaceManager.View.Container.IControlPlaceHolder"
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             xmlns:y="clr-namespace:WorkspaceManager.View.Container"
9             mc:Ignorable="d" Width="25" Height="25">
10    <UserControl.Resources>
11        <ResourceDictionary>
12            <ResourceDictionary.MergedDictionaries>
13                <ResourceDictionary Source="../Resource/Styles.xaml"/>
14                <ResourceDictionary Source="../Resource/Animations.xaml"/>
15            </ResourceDictionary.MergedDictionaries>
16            <z:PluginModelImageConverter x:Key="PluginModelImageConverter"></z:PluginModelImageConverter>
17            <SolidColorBrush x:Key="Color" Color="Black"></SolidColorBrush>
18        </ResourceDictionary>
19    </UserControl.Resources>
20    <UserControl.ContextMenu>
21        <ContextMenu>
22            <MenuItem Click="MenuItem_Click">Delete</MenuItem>
23        </ContextMenu>
24    </UserControl.ContextMenu>
25    <Grid>
26        <Path Data="M 20 20 L 0 20 L 0 0" Stroke="{StaticResource ResourceKey=Color}" StrokeThickness="9" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="20" Height="20">
27            <Path.LayoutTransform>
28                <TransformGroup>
29                    <RotateTransform Angle="270"></RotateTransform>
30                    <ScaleTransform ScaleX="0.5" ScaleY="0.5"></ScaleTransform>
31                </TransformGroup>
32            </Path.LayoutTransform>
33        </Path>
34        <Path Data="M 20 20 L 0 20 L 0 0" Stroke="{StaticResource ResourceKey=Color}" StrokeThickness="9" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="20" Height="20">
35            <Path.LayoutTransform>
36                <TransformGroup>
37                    <ScaleTransform ScaleX="0.5" ScaleY="0.5"></ScaleTransform>
38                </TransformGroup>
39            </Path.LayoutTransform>
40        </Path>
41        <Path Data="M 20 20 L 0 20 L 0 0" Stroke="{StaticResource ResourceKey=Color}" StrokeThickness="9"  HorizontalAlignment="Right" VerticalAlignment="Top" Width="20" Height="20">
42            <Path.LayoutTransform>
43                <TransformGroup>
44                    <RotateTransform Angle="180"></RotateTransform>
45                    <ScaleTransform ScaleX="0.5" ScaleY="0.5"></ScaleTransform>
46                </TransformGroup>
47            </Path.LayoutTransform>
48        </Path>
49        <Path Data="M 20 20 L 0 20 L 0 0" Stroke="{StaticResource ResourceKey=Color}" StrokeThickness="9"  HorizontalAlignment="Left" VerticalAlignment="Top" Width="20" Height="20">
50            <Path.LayoutTransform>
51                <TransformGroup>
52                    <RotateTransform Angle="90"></RotateTransform>
53                    <ScaleTransform ScaleX="0.5" ScaleY="0.5"></ScaleTransform>
54                </TransformGroup>
55            </Path.LayoutTransform>
56        </Path>
57        <Rectangle Fill="{Binding Mode=OneWay,Converter={StaticResource ResourceKey=PluginModelImageConverter}}" RadiusX="60" RadiusY="60" x:Name="bg" Panel.ZIndex="-1"></Rectangle>
58    </Grid>
59</UserControl>
Note: See TracBrowser for help on using the repository browser.