zoukankan      html  css  js  c++  java
  • WPF窗体对话框

    WPF Unleashed第三章有个例题,实现一个对话框,据说在XamlPad程序内直接测试就OK.
    我尝试了,XamlPad只能做Page页面,而Window页面不能产生(改Page为Window),不知什么原因.
    感觉越来越像HTML编程了,将来的WEB页面和WinForm页面都采用相同的标记进行统一!
    下面是代码部分:
    <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:sys
    ="clr-namespace:System;assembly=mscorlib" 
        xmlns:x
    ="http://schemas.microsoft.com/winfx/2006/xaml" 
        Title
    ="About WPF Study" Background="OrangeRed" 
        
    >
        
    <StackPanel>
            
    <Label FontWeight="Bold" FontSize="20" Foreground="White">
                XUMH'S WPF STUDY DEMO (Version 3.0)
            
    </Label>
            
    <Label>Copyright 2006 XUMINGHUI @ ACCP,YanTai</Label>
            
    <Label>所带班级及课程</Label>
            
    <ListBox>
                
    <ListBoxItem>AS130: C, HTML, SQLSERVER, JAVA</ListBoxItem>
                
    <ListBoxItem>AS216,AS218: SQLSERVER, C#, WINFORM</ListBoxItem>
                
    <ListBoxItem>AS306,AS308: XML, ASP.NET, PM</ListBoxItem>
            
    </ListBox>
            
    <StackPanel>
                
    <Button MinWidth="75" Margin="10">Help</Button>
                
    <Button MinWidth="75" Margin="10">OK</Button>
            
    </StackPanel>
            
    <StatusBar>愿我所有的学员都能找到理想的工作!</StatusBar>
        
    </StackPanel>
    </Page>
    下面是截图,感觉还是很漂亮呀.
  • 相关阅读:
    kotlin记一次报错:java.lang.IllegalStateException: recycler_View must not be null
    Android-----关于泛型CONTRACT的使用
    kotlin-----实现侧滑菜单
    kotlin-----整合开源组件Sweet Alert Dialog到项目中
    OC之runtime(共用体)
    阿里云云服务器 ECS 部署web项目
    阿里云云服务器 ECS SSHKEY登录
    Centos8 安装mysql和配置
    iOS websocket
    iOS字体适配
  • 原文地址:https://www.cnblogs.com/flaaash/p/1052153.html
Copyright © 2011-2022 走看看