Silverlight 登陆界面

2020-12-13 02:16

阅读:275

标签:des   style   blog   class   code   tar   

美术水平有限,不喜勿喷。

界面代码,效果如下图

soscw.com,搜素材

soscw.com,搜素材soscw.com,搜素材
"ElecDemoTelerikSL.Login"
    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"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:my="clr-namespace:Drawsee.Sl.AppBase.UserManage.UI;assembly=Drawsee.Sl.AppBase"
    mc:Ignorable="d"
    d:DesignHeight="800" d:DesignWidth="1200">
    
    "LayoutRoot" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
        "0.5,1" StartPoint="0.5,0">
                "#FF007CC3"/>
                "#FF93CAE2" Offset="1"/>
            "Center" VerticalAlignment="Center">
            "登陆测试" FontSize="24" HorizontalAlignment="Center" Margin="0,0,0,20" />
        "600" Height="300">
            "#50000000" RadiusX="10" RadiusY="10" Margin="10,10,-10,-15" />
            "images/elec_background.jpg" Height="300" HorizontalAlignment="Center" Name="imageBackground" Stretch="Fill" VerticalAlignment="Center" Width="600">
                "12" RadiusY="12" Rect="0,0,600,300" />
                "#80000000" BorderThickness="1" CornerRadius="10" >
            "358,124,29,42">
                "Fill" Fill="#4FFFFFFF" RadiusX="20" RadiusY="20" />
                
View Code

后台代码

soscw.com,搜素材soscw.com,搜素材
public partial class Login : UserControl
    {
        public Login()
        {
            InitializeComponent();
            
            txtLoginName.Text = "admin";
        }

        private void btnLogin_Click(object sender, RoutedEventArgs e)
        {
            string loginName =txtLoginName.Text.Trim();
            string loginPwd =txtLoginPwd.Password.Trim();
            if (loginName.Equals("admin") && loginName.Equals("admin"))
                this.Content = new MainPage(); //跳转到主页面
            else
                MessageBox.Show("登陆失败!", "提示", MessageBoxButton.OKCancel);
        }
    }
View Code

 

Silverlight 登陆界面,搜素材,soscw.com

Silverlight 登陆界面

标签:des   style   blog   class   code   tar   

原文地址:http://www.cnblogs.com/ZJ199012/p/3716095.html


评论


亲,登录后才可以留言!