tao666

怎样方便的TextBlock放到图片上指定的位置?

 

 

 

<Grid.RowDefinitions>
                <RowDefinition Height="80"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />

            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
             
            </Grid.ColumnDefinitions>
            <!--<Button x:Name="print"  Content="打印" Click="btnPrint_Click"  Grid.Column="5"  HorizontalAlignment="Center" VerticalAlignment="Center" Height="23" Margin="25,12,23,4" Width="43"></Button>-->
                       
            <TextBlock Text="{Binding ProName}" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding CityName}" Grid.Row="1" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding CouName}" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding TownName}" Grid.Row="1" Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding VilName}" Grid.Row="1" Grid.Column="5" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding ProjectNam}" Grid.Row="1" Grid.Column="10" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding ConArea}" Grid.Row="3" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding InvAmount}" Grid.Row="1" Grid.Column="13" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding LeadingInd}" Grid.Row="3" Grid.Column="10" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding Year}" Grid.Row="1" Grid.Column="15" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding Remarks}" Grid.Row="1" Grid.Column="16" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding CheAccAre}" Grid.Row="1" Grid.Column="17" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding CheAccGra}" Grid.Row="1" Grid.Column="18" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding CommFinan}" Grid.Row="1" Grid.Column="19" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding CroSeFina}" Grid.Row="1" Grid.Column="20" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding FieAdjust}" Grid.Row="1" Grid.Column="21" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding BuiRidge}" Grid.Row="1" Grid.Column="22" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding IrriDrai}" Grid.Row="1" Grid.Column="23" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding CanalStr}" Grid.Row="1" Grid.Column="24" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding HillArea}" Grid.Row="1" Grid.Column="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding WatIntCr}" Grid.Row="1" Grid.Column="26" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding BriWatSta}" Grid.Row="1" Grid.Column="27" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding StoPadFie}" Grid.Row="1" Grid.Column="28" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding Other}" Grid.Row="1" Grid.Column="29" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding TillWay}" Grid.Row="1" Grid.Column="30" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding YieWay}" Grid.Row="1" Grid.Column="31" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding FerFarm}" Grid.Row="1" Grid.Column="32" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <TextBlock Text="{Binding yesno}" Grid.Row="1" Grid.Column="33" HorizontalAlignment="Center" VerticalAlignment="Center" />

        </Grid>

posted on 2012-09-15 19:36  读书走廊  阅读(...)  评论(...编辑  收藏

My Links

Blog Stats