Silverlight4入门之CheckBoxrdiobutton控件(五)

Silverlight4入门之CheckBoxrdiobutton控件(五),第1张

概述  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.  
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 FirstSilverlightApplication{    public partial class MainPage : UserControl    {        public MainPage()        {            InitializeComponent();                   }        private voID checkBox1_Checked(object sender,RoutedEventArgs e)        {            textBox1.Text=checkBox1.IsChecked.ToString();        }        private voID checkBox1_Unchecked(object sender,RoutedEventArgs e)        {            textBox1.Text= checkBox1.IsChecked.ToString();        }          }}

<UserControl x:Class="FirstSilverlightApplication.MainPage"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:d="http://schemas.microsoft.com/Expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d"    d:DesignHeight="300" d:DesignWIDth="400" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">    <GrID x:name="LayoutRoot" Background="White">        <CheckBox Height="16" HorizontalAlignment="left" margin="70,30,0" name="checkBox1" VerticalAlignment="top" Checked="checkBox1_Checked" Unchecked="checkBox1_Unchecked" Content="Check" />        <TextBox Height="23" HorizontalAlignment="left" margin="70,67,0" name="textBox1" VerticalAlignment="top" WIDth="120" /><!--<frameworkElement margin="left,top,right,bottom"/>-->        <Radiobutton Content="Option 1" Height="16" HorizontalAlignment="left" margin="0,10,0" name="radiobutton1" VerticalAlignment="top" WIDth="120" />        <Radiobutton Content="Option 2" Height="16" HorizontalAlignment="left" margin="100,20,0" name="radiobutton2" VerticalAlignment="top" WIDth="120" />        <Radiobutton Content="Option 8" Height="16" HorizontalAlignment="left" margin="200,0" name="radiobutton8" VerticalAlignment="top" WIDth="120" />    </GrID></UserControl>
总结

以上是内存溢出为你收集整理的Silverlight4入门之CheckBox/rdiobutton控件(五)全部内容,希望文章能够帮你解决Silverlight4入门之CheckBox/rdiobutton控件(五)所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1073237.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存