小编Daw*_*Lis的帖子

属性内容设置不止一次

我想在一个scrollviewer中有文本块和超链接按钮,但是它说属性内容被设置多次...

        <!--ContentPanel - place additional content here-->

        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0">
            <ScrollViewer>
                <TextBlock HorizontalAlignment="Left" Margin="1,15,0,85" Width="460" Height="1500" Name="TextBlock1" TextWrapping="Wrap"> 
            <LineBreak />
        <Run FontFamily="Segoe WP" FontSize="27" FontWeight="ExtraBlack" TextDecorations="Underline">
           Weider 6 pack Training is a perfect exercise for flat stomach. 
            </Run>
            <LineBreak />
        <Run Text="This easy training programme has many advantages." FontSize="27" />
        <LineBreak />
        <Run Text="1. It's perfect for beginners and for experts" FontWeight="ExtraBlack" TextDecorations="Underline" FontSize="27" />
        <Run Text=" – exercises are easy and begin with the basic level, so every …
Run Code Online (Sandbox Code Playgroud)

c# visual-studio-2010 windows-phone-7

2
推荐指数
1
解决办法
5109
查看次数

将cs转换为vb

任何人都可以告诉我这个.cs代码中的"j"和"i"是什么?

private void zoom_out(object sender, RoutedEventArgs e)
    {
        if(j>0)
        {
            image1.Height -= 50;
            image1.Width -= 50;
            j--;
            i = j;
        }
    }
private void zoom_in(object sender, RoutedEventArgs e)
    {
       if(i<2)
        {
            image1.Height += 50;
            image1.Width += 50;
            i++;
            j = i;
        }
    }
Run Code Online (Sandbox Code Playgroud)

并为.vb代码更改"j"和"i".它是用于缩小和缩小的代码.

visual-studio-2010 image-zoom windows-phone-7

-2
推荐指数
1
解决办法
166
查看次数