windows 8.1 MessageDialog
private Popup p;
private void Button_Click(object sender, RoutedEventArgs e)
{
p=new Popup();
DengluDemo dl=new DengluDemo();
dl.Width = ;
dl.Height = ;
dl.Margin = new Thickness(, , , );
//if (p != null || p.IsOpen == true)
//{
// return;
//}
MessageDialog md = new MessageDialog("是否退出登陆");
md.Commands.Add(new UICommand("确定", (a) =>
{ }, ));
md.Commands.Add(new UICommand("取消", (a) =>
{ }, ));
md.DefaultCommandIndex = ;
md.CancelCommandIndex = ;
var cmd = md.ShowAsync();
dl.eh = (a, b) =>
{
p.Child = dl;
p.IsOpen = true;
};
p.Child = dl;
p.IsOpen = true; }
}
<UserControl
x:Class="vs2013win8._1.DengluDemo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:vs2013win8._1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="260"
d:DesignWidth="1360"> <Grid>
<Grid.Background>
<SolidColorBrush Color="Black" Opacity="0.7"></SolidColorBrush>
</Grid.Background>
<StackPanel Background="LightSeaGreen" Orientation="Vertical" > <StackPanel Orientation="Horizontal" Margin="428,40,0,0">
<TextBlock Text="用户名:" FontSize="25" Width="80"></TextBlock>
<TextBox x:Name="txt_Name" Width="273" Margin="20,0,0,0"></TextBox>
</StackPanel> <StackPanel Orientation="Horizontal" Margin="428,40,0,0">
<TextBlock Text="密 码:" FontSize="25" Width="80"></TextBlock>
<PasswordBox x:Name="txt_Password" Width="273" Margin="20,0,0,0"></PasswordBox>
</StackPanel> <StackPanel Orientation="Horizontal" Margin="428,30,0,0">
<HyperlinkButton Tapped="Button_Tapped_3" FontSize="18" Foreground="White">还没有账号 点击去注册</HyperlinkButton>
<Button Tapped="Button_Tapped_1" Content="登录" FontSize="20" Foreground="White" Background="LightSeaGreen" Width="150" Height="49" Margin="180,0,0,0"/>
<Button Tapped="Button_Tapped_2" Content="取消" FontSize="20" Foreground="White" Background="LightSeaGreen" Width="153" Height="49" Margin="20,0,0,0"/>
</StackPanel>
</StackPanel>
</Grid>
</UserControl>
public EventHandler eh;
private void Button_Tapped_1(object sender, TappedRoutedEventArgs e)
{
if (eh != null)
{
eh(this,null);
}
}
windows 8.1 MessageDialog的更多相关文章
- MessageDialog
var messageDialog = new Windows.UI.Popups.MessageDialog("Media player components unavailable&qu ...
- xamarin UWP中MessageDialog与ContentDialog的区别
MessageDialog与ContentDialog的异同点解析: 相同点一:都是uwp应用上的一个弹窗控件.都能做为弹出应用. 相异点一:所在命名空间不同,MessageDialog在Window ...
- Windows Phone 二十、陀螺仪
API 示例 // 获取陀螺仪传感器监听对象 Gyrometer gyrometer = Gyrometer.GetDefault(); if (gyrometer == null) { await ...
- Windows Phone 十四、磁贴通知
磁贴(Tile) Windows Phone 磁贴种类: 小尺寸 SmallLogo:71x71: Square71x71 中等 Logo:150x150: Square150x150 宽 WideL ...
- Windows Phone 十三、吐司通知
弹出通知对话框 <Grid> <Button Content="弹出通知" Click="Button_Click"/> </Gr ...
- Windows Store 开发总结——文件操作
1.读取Isolated Storage 每个Metro程序都有三个文件夹:Local,Roaming,Temp.每个文件夹的访问方法都是相同的. Local用于将数据存储在本地,这是程序特定的文件夹 ...
- 重新想象 Windows 8 Store Apps (36) - 通知: Tile 详解
[源码下载] 重新想象 Windows 8 Store Apps (36) - 通知: Tile 详解 作者:webabcd 介绍重新想象 Windows 8 Store Apps 之 通知 Tile ...
- Devlop Win 8 and Windows Phone App for Microsoft Dynamics CRM
Microsoft Dynamics CRM App for Windows Phone http://www.windowsphone.com/en-us/store/app/dynamics-cr ...
- Windows 8 动手实验系列教程 实验8:Windows应用商店API
动手实验 实验 8: Windows应用商店API 2012年9月 简介 编写Windows应用商店应用最令人瞩目的理由之一是您可以方便地将它们发布到Windows应用商店.考虑到世界范围内目前有超过 ...
随机推荐
- ruby-rails 环境搭建
https://ruby-china.org/wiki/install_ruby_guide
- iOS使用AVFoundation实现二维码扫描
原文:http://strivingboy.github.io/blog/2014/11/08/scan-qrcode/ 关于二维码扫描有不少优秀第三方库如: ZBar SDK 里面有详细的文档,相应 ...
- Hibernate的dialect大全
RDBMS 方言 DB2 org.hibernate.dialect.DB2Dialect DB2 AS/400 org.hibernate.dialect.DB2400Dialect DB2 OS3 ...
- poj 1258 Agri-Net 最小生成树 kruskal
点击打开链接 Agri-Net Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 33733 Accepted: 13539 ...
- Oracle GoldenGate 11.2 OGG-01168(转)
为客户部署的Oracle GoldenGate在测试阶段出现如下的错误: 2012-04-24 10:45:20 ERROR OGG-01168 Oracle GoldenGate Deliv ...
- 共享一个MVC通过NPOI导出excel的通用方法
public static System.IO.MemoryStream ExportExcel<T>(string title, List<T> objList, param ...
- H264的句法和语法总结(一)分层结构
在H.264 中,句法元素共被组织成 序列.图像.片.宏块.子宏块五个层次.在这样的结构中,每一层的头部和它的数据部分形成管理与被管理的强依赖关系,头部的句法元素是该层数据的核心,而一旦头部丢失,数 ...
- vc 递归删除非空文件夹
我觉得这是一个非常不错的递归例子 头文件 #pragma once #include <atlstr.h> #include <io.h> #include <strin ...
- python编写接口
- maven搭建项目的时候,src/main/java无法建立的问题,提示信息The folder is already a source folder.(文件夹已经是源文件夹。)
原因:maven自己引的jdk包不对,需要重新引包 操作方式: 1.在项目上右击(或用快捷键ALT+ENTER),打开properties-->java builder path-->re ...