| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <UserControl x:Class="MuchInfo.Chart.Infrastructure.Controls.DraggableWindowHeader"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d">
- <Border x:Name="borderMain"
- BorderBrush="Gray"
- BorderThickness="4,4,4,0"
- CornerRadius="5,5,0,0">
- <Border.Background>
- <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
- <LinearGradientBrush.GradientStops>
- <GradientStop Offset="0" Color="LightSteelBlue" />
- <GradientStop Offset="1" Color="#FFCCCCCC" />
- <!--
- <GradientStop Color="#FF383838" Offset="0"></GradientStop>
- <GradientStop Color="#224682B4" Offset=".7"></GradientStop>
- <GradientStop Color="#FF555555" Offset="1"></GradientStop>
- -->
- </LinearGradientBrush.GradientStops>
- </LinearGradientBrush>
- </Border.Background>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="auto" />
- </Grid.ColumnDefinitions>
- <StackPanel Orientation="Horizontal">
- <Image x:Name="headerIcon"
- Margin="4,0,0,0"
- Stretch="None"
- Visibility="Collapsed" />
- <TextBlock x:Name="txtHeader"
- Margin="4,4,4,4"
- VerticalAlignment="Center"
- Text="Edit TrendLine" />
- </StackPanel>
- <Border x:Name="borderGrab"
- Grid.ColumnSpan="2"
- Background="Transparent"
- LostMouseCapture="borderGrab_LostMouseCapture"
- MouseLeftButtonDown="borderGrab_MouseLeftButtonDown"
- MouseLeftButtonUp="borderGrab_MouseLeftButtonUp"
- MouseMove="borderGrab_MouseMove" />
- <Border x:Name="borderDelete"
- Grid.Column="2"
- Margin="5,2,1,2"
- Background="Transparent"
- BorderBrush="#FF333333"
- BorderThickness="2"
- CornerRadius="4"
- MouseEnter="borderDelete_MouseEnter"
- MouseLeave="borderDelete_MouseLeave"
- MouseLeftButtonDown="borderDelete_MouseLeftButtonDown">
- <TextBlock x:Name="txtDelete"
- Margin="3,-1,3,-1"
- FontSize="13"
- FontWeight="Bold"
- Foreground="#FF333333"
- Text="X" />
- </Border>
- </Grid>
- </Border>
- </UserControl>
|