CWInRack.xaml
来源:互联网 发布:韩国女排联赛数据 编辑:程序博客网 时间:2024/05/22 06:57
前办场
<controls:ChildWindow xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="ComputerDropDragControl.CWInRack"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
Width="400" Height="300"
Title="CWInRack">
<Grid x:Name="LayoutRoot" Margin="2">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Button x:Name="CancelButton" Content="取消" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
<Button x:Name="OKButton" Content="确定" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
</Grid>
</controls:ChildWindow>
后办场
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;
using SilverlightHtmlHost;
namespace ComputerDropDragControl
{
/// <summary>
/// 模态窗口
/// 创建人:吴兆娟
/// 创建时间:2011-11-2
/// </summary>
public partial class CWInRack : ChildWindow
{
#region <<页面加载>>
/// <summary>
/// “页面加载”
/// </summary>
public CWInRack()
{
InitializeComponent();
}
#endregion
#region <<控件事件>>
/// <summary>
/// “确定”按钮点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OKButton_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = true;
}
/// <summary>
/// “取消”按钮点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void CancelButton_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = false;
}
#endregion
#region <<辅助方法>>
#endregion
}
}
- CWInRack.xaml
- XAML
- XAML
- XAML
- XAML
- XAML
- XAML
- XAML
- XAML - What is XAML?
- App.xaml & MainWindow.xaml
- XAML,XAML Overview And XAML Syntax
- 前瞻XAML
- XAML Overview
- 什么是XAML
- XAML Guidelines
- XAML Guidelines
- XAML综述
- XAML 基础
- 正则表达式
- ComputerRoom.xaml
- ComputerUnit.xaml
- C#读取txt文本文件(dat)的方法
- 技术的荣耀与悲哀...
- CWInRack.xaml
- excel2007剔除重复数据,计算百分比
- 机器学习 4 model selection and feature selection
- Android模拟器横屏切换方法
- 活着就是幸福
- Java使用UDP实现数据的传输
- CWInRecyle.xaml
- 如何在EXCEL2010中插入符号“√” marlett字体
- HDU 2255 奔小康赚大钱(二分图最优匹配)