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>
    下面是截图,感觉还是很漂亮呀.
  • 相关阅读:
    Classloader中loadClass()方法和Class.forName()区别
    java.lang.Class解析
    JDK_Proxy_InvocationHandler_动态代理
    spring之Annotation
    annotation之@Autowired、@Inject、@Resource三者区别
    spring之生命周期
    spring之lazy-init
    我是如何在SQLServer中处理每天四亿三千万记录的
    (转)SQL一次性插入大量数据
    SQL SERVER连接池
  • 原文地址:https://www.cnblogs.com/flaaash/p/1052153.html
Copyright © 2011-2022 走看看