Blame view

sources/RoboforkApp/UserControls/ucNode.xaml 2.56 KB
b338e1ff5   nguyen_nam   no message
1
2
3
4
5
6
7
8
  <UserControl x:Class="RoboforkApp.ucNode"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
               mc:Ignorable="d" 
               x:Name="userControlNode">
              <!--<Thumb Name="tmbThumb" DragDelta="tmbThumb_DragDelta" DragCompleted="tmbThumb_DragCompleted">-->
e3ae88363   toan   RM2077: Commit so...
9
          <Thumb Name="tmbThumb" DragDelta="tmbThumb_DragDelta" MouseDoubleClick="tmbThumb_MouseDoubleClick" DragCompleted="tmbThumb_DragCompleted"  >
b338e1ff5   nguyen_nam   no message
10
11
12
13
              <Thumb.Template>
              <ControlTemplate>
                  <Grid Name="btnHello" Width="150">
                      <Grid.ColumnDefinitions>
d96c9e481   doan   Update Source Code
14
15
                          <ColumnDefinition Width="34"/>
                          <ColumnDefinition Width="*"/>
b338e1ff5   nguyen_nam   no message
16
17
18
19
20
                      </Grid.ColumnDefinitions>
                      <Ellipse Name="eCicle" Grid.Row="0" 
                                  Grid.Column="0" 
                                  VerticalAlignment="Center" 
                                  HorizontalAlignment="Center"
80ae927f4   doan   no message
21
22
                                  Width="{Binding btnWidth, ElementName=userControlNode}" 
                                  Height="{Binding btnHeight, ElementName=userControlNode}"
ebf4e3eed   nguyen_nam   Update Task 2045
23
                                  Fill="{Binding fillColor, ElementName=userControlNode}"
b338e1ff5   nguyen_nam   no message
24
25
26
27
28
29
30
                                  Stroke="BlueViolet"
                                  Cursor="Hand"
                                  StrokeThickness="2"/>
                      <TextBlock Grid.Row="0" 
                                  Grid.Column="0" 
                                  VerticalAlignment="Center" 
                                  HorizontalAlignment="Center" 
80ae927f4   doan   no message
31
                                  FontSize="18"
b338e1ff5   nguyen_nam   no message
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
                                  Foreground="White" FontWeight="Bold"
                                  Text="{Binding txtNode, ElementName=userControlNode}" />
                      <TextBlock Grid.Row="0" 
                                  Grid.Column="1" 
                                  FontSize="15"
                                  HorizontalAlignment="Left"
                                  VerticalAlignment="Center"
                                  Foreground="Blue"
                                  Margin="2 0 0 0"
                                  Text="{Binding coordString, ElementName=userControlNode}" />
                  </Grid>
              </ControlTemplate>
          </Thumb.Template>
      </Thumb>
  </UserControl>