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

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

-fixed pathfinding
-fixed line drawing
-added Colorpicker
-fixed lock/unlock at TextInputWrapper
-feature: Background and TextForeground in TextInputWrapper added
-fixed a issue With loading and such
-WorkspaceModel doesn't throw exception anymore (Samples functional again)
-fixed some Styles
-Startable implemented and loaded right
-Startable Logo moved

File size: 2.1 KB
Line 
1<Popup x:Class="WorkspaceManager.View.VisualComponents.ColorPickPopUp"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    Placement="MousePoint"
5    PopupAnimation="Slide"
6    StaysOpen="False">
7    <Popup.Resources>
8        <LinearGradientBrush x:Key="NormalBrush" StartPoint="0,0" EndPoint="0,1">
9            <GradientBrush.GradientStops>
10                <GradientStopCollection>
11                    <GradientStop Color="#222222" Offset="0.0"/>
12                    <GradientStop Color="#444444" Offset="1.0"/>
13                </GradientStopCollection>
14            </GradientBrush.GradientStops>
15        </LinearGradientBrush>
16
17        <VisualBrush x:Key="transparent">
18            <VisualBrush.Visual>
19                <Canvas Name="canvas" Height="25"  Width="25">
20                    <Path Stroke="Red" StrokeThickness="2">
21                        <Path.Data>
22                            <PathGeometry>
23                                <PathGeometry.Figures>
24                                    <PathFigure StartPoint="0,0">
25                                        <LineSegment Point="25,25"/>
26                                    </PathFigure>
27                                    <PathFigure StartPoint="0,25">
28                                        <LineSegment Point="25,0"/>
29                                    </PathFigure>
30                                </PathGeometry.Figures>
31                            </PathGeometry>
32                        </Path.Data>
33                    </Path>
34                </Canvas>
35            </VisualBrush.Visual>
36        </VisualBrush>
37    </Popup.Resources>
38    <Border BorderBrush="#999999" BorderThickness="1.5" Background="{StaticResource NormalBrush}">
39        <StackPanel Name="root" Orientation="Vertical">
40            <StackPanel Orientation="Horizontal">
41                <Label Foreground="WhiteSmoke" Padding="6" Content="Colors" DockPanel.Dock="Left" FontSize="14" FontWeight="Bold"/>
42            </StackPanel>
43        </StackPanel>
44    </Border>
45</Popup>
Note: See TracBrowser for help on using the repository browser.