Border Class
来源:互联网 发布:java 返回值类 怎么用 编辑:程序博客网 时间:2024/06/04 01:35
原文链接:Border Class
Namespace:System.Windows.Controls
Assembly:PresentationFramework.dll
Draws a border, background, or both around another element.
弹出框阴影效果:
XAML代码:
<Window x:Class="PopupDemo.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid Background="LightBlue"> <Grid Width="300" Height="300"> <Grid.RowDefinitions> <RowDefinition Height="50"/> <RowDefinition Height="50"/> <RowDefinition Height="50"/> <RowDefinition/> </Grid.RowDefinitions> <Button Content="注册" Grid.Row="2" Width="100" Height="23" HorizontalAlignment="Right" Click="Button_Click"></Button> </Grid> <Popup AllowsTransparency="True" Placement="Center" StaysOpen="False" x:Name="popup"> <Border Background="White" CornerRadius="20" Margin="20"> <Border.Effect> <DropShadowEffect BlurRadius="15" Direction="-90" RenderingBias="Quality" ShadowDepth="2"/> </Border.Effect> <Grid Width="300" Height="300"> <Button Content="弹窗测试" Grid.Row="2" Width="100" Height="23"></Button> </Grid> </Border> </Popup> </Grid> </Window>
效果图:
备注:
必须有这两个才能显示出该效果。
阅读全文
0 0
- Border Class
- border
- Border
- border
- Border
- Border
- border
- border
- border
- border
- border
- border
- border
- border
- border
- border和border-style
- border:none,border:0
- views::Border
- 怎么超越一个人?
- 仿千牛网登录
- 如何在本机上安装两个不同版本的python
- spring的模块化配置文件加载
- 云监控服务使用教程详解
- Border Class
- 下拉菜单
- Python3的正则表达式,re模块
- pascals-triangle
- 微信jsapi开发
- java基础
- 图文讲解jQuery事件
- 解决httplistener querystring 中文乱码、返回json中文格式乱码
- goahead3.6.4移植总结