Программирование - это просто
Advertisement
arrow C# arrow SilverLight . arrow SilverLight . 2. .
06.02.2023 .
1:
C#
Delphi
Web-
Excel-
.
SilverLight . 2. . E-mail
megabax   
28.04.2013 .
Delphi

SilverLight . 2. .

TextBox, :

 SilverLight  .  2.  .

1 , TextBox:

 SilverLight  .  2.  .

TextChanged :

using System;

using System.Collections.Generic;

using System.Linq;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Animation;

using System.Windows.Shapes;

 

namespace SilverlightApplication1

{

    public partial class MainPage : UserControl

    {

        public MainPage()

        {

            InitializeComponent();

        }

 

        private void textBox1_TextChanged(object sender, TextChangedEventArgs e)

        {

            label1.FontSize = Convert.ToInt16(textBox1.Text);

        }

 

        private void button1_Click(object sender, RoutedEventArgs e)

        {

            label1.FontSize = 8;

        }

 

        private void button2_Click(object sender, RoutedEventArgs e)

        {

            label1.FontSize = 12;

        }

 

        private void button3_Click(object sender, RoutedEventArgs e)

        {

            label1.FontSize = 16;

        }

    }

}

, :

 SilverLight  .  2.  .

" ". , FontSize Label. , , . Visual Studio, , . VC, :

  SilverLight  .  2.  .

( textBox1_TextChanged):

        private void textBox1_TextChanged(object sender, TextChangedEventArgs e)

        {

            try

            {

                label1.FontSize = Convert.ToInt16(textBox1.Text);

            }

            catch

            {

                MessageBox.Show(" ");

            }

        }

:

 SilverLight  .  2.  .


, *,   "Microsoft Visual Studio 2010 Professional", Microsoft.. 


 

 

 

( 28.04.2013 . )
 
« .   . »
 
© 2023 Программирование - это просто
Joomla! - , GNU/GPL.
© 2005-2008 Joom.Ru - Joomla!
Design by Mamboteam.com | Powered by Mambobanner.de
  .