Blame view

sources/RoboforkApp/UserControls/ucDisplayCoordinate.xaml 1.31 KB
729be9a6d   doan   New Project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  <UserControl x:Class="RoboforkApp.ucDisplayCoordinate"
               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="DisplayCoordinate">
      <Thumb Name="tmbThumb" >
          <Thumb.Template>
              <ControlTemplate>
                  <Grid Name="btnDisplay"
                        Width="200">
                      <Grid.ColumnDefinitions>
                          <ColumnDefinition Width="2*"/>
                      </Grid.ColumnDefinitions>
                      <TextBlock Grid.Row="0" 
                                 Grid.Column="1" 
                                 FontSize="18"
                                 HorizontalAlignment="Left"
                                 VerticalAlignment="Center"
                                 Foreground="Blue"
                                 Margin="0 0 0 0"
                                 FontWeight="Bold"
                                 Text="{Binding coordString, ElementName=DisplayCoordinate}" />
                  </Grid>
              </ControlTemplate>
          </Thumb.Template>
      </Thumb>
  </UserControl>