source: trunk/CrypPlugins/WorkspaceManager/View/VisualComponents/ImageWrapper.xaml @ 2388

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

-Fullscreen enhanced
-TextInput added
-Picture scaling added
-Textinput scaling added
-Textinput format command added
-Several style changes
-Progressbar redesigned
-Last log message now appearing
-IControlContainer commenced
-Several icons added
-Plugin state now stored and loaded
-Plugin height and width now storing and loading
-Several misc changes

File size: 2.8 KB
Line 
1<UserControl x:Class="WorkspaceManager.View.VisualComponents.ImageWrapper"
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             mc:Ignorable="d"
9             d:DesignHeight="300" d:DesignWidth="300" MinHeight="50" MinWidth="50">
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:SelectedContentVisibilityConverter x:Key="SContentVisibilityConverter"></z:SelectedContentVisibilityConverter>
17            <z:SelectedContentBrushConverter x:Key="SelectedContentBrushConverter"></z:SelectedContentBrushConverter>
18            <z:ContextMenuFixUnfixConverter x:Key="ContextMenuFixUnfixConverter"></z:ContextMenuFixUnfixConverter>
19        </ResourceDictionary>
20    </UserControl.Resources>
21    <UserControl.ContextMenu>
22        <ContextMenu x:Name="ContextMenu">
23            <MenuItem x:Name="DeleteMenuItem" Header="Delete" Click="MenuItem_Click"></MenuItem>
24            <MenuItem x:Name="FixUnfixMenuItem" Click="MenuItem_Click_1"></MenuItem>
25        </ContextMenu>
26    </UserControl.ContextMenu>
27    <Grid>
28        <Grid x:Name="ParentPanel" Panel.ZIndex="201" IsEnabledChanged="IsEnabledChanged">
29            <Grid x:Name="root" Margin="10">
30                <Thumb x:Name="OverLayingControl" Opacity="0.01" DragDelta="OverLayingControl_DragDelta_Move" Panel.ZIndex="100" IsEnabled="{Binding Path=IsSelected}"></Thumb>
31            </Grid>
32            <Border x:Name="Border" Margin="4.5" BorderBrush="WhiteSmoke" BorderThickness="{Binding Path=IsSelected, Converter={StaticResource ResourceKey=SelectedContentBrushConverter}, FallbackValue=1}"></Border>
33            <Thumb Margin="15" Panel.ZIndex="200" Style="{StaticResource ResourceKey=ImageWrapperThumbStyle}" Name="BottomRightDelta" Opacity="1" Visibility="{Binding Path=IsSelected, Converter={StaticResource ResourceKey=SContentVisibilityConverter}, FallbackValue=Visible}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Cursor="SizeNWSE" DragDelta="Thumb_DragDelta">
34                <Thumb.Background>
35                    <SolidColorBrush Opacity="0.01" Color="Black"></SolidColorBrush>
36                </Thumb.Background>
37            </Thumb>
38        </Grid>
39    </Grid>
40</UserControl>
Note: See TracBrowser for help on using the repository browser.