zoukankan      html  css  js  c++  java
  • AllowsTransparency="True" 怎么放大缩小窗体

    后台都不用写任何代码!

    xaml:

    <Window x:Class="TestNoBorderWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
            Title="TestNoBorderWindow"
            Width="300"
            Height="300"
            MinWidth="100"
            MinHeight="100"
            mc:Ignorable="d">
        <Window.Style>
            <Style TargetType="Window">
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="WindowStyle" Value="None" />
                <Setter Property="ResizeMode" Value="CanResize" />
                <Setter Property="AllowsTransparency" Value="True" />
                <Setter Property="WindowChrome.WindowChrome">
                    <Setter.Value>
                        <WindowChrome CaptionHeight="30" ResizeBorderThickness="20" />
                    </Setter.Value>
                </Setter>
            </Style>
        </Window.Style>
        <Border Margin="10"
                Background="White"
                BorderBrush="Red"
                BorderThickness="1"
                CornerRadius="5"
                SnapsToDevicePixels="True">
            <Border.Effect>
                <DropShadowEffect BlurRadius="10"
                                  Direction="0"
                                  ShadowDepth="0" />
            </Border.Effect>
            <Grid />
        </Border>
    </Window>
     

  • 相关阅读:
    搜索rapidshare资源的几种方法
    Sharepoint 浅谈 [转]
    如何使用本地账户“完整”安装 SharePoint Server 2010
    为SharePoint 2010配置基于表单的身份认证
    网页禁用右键、防拷贝及"另存为"失效方法
    Sharepoint 2010 表单 身份认证(基于SQL数据库)
    SharePoint2007文档的点击率统计
    Sharepoint2010 表单认证常见问题
    sharepoint不能上载多个文件
    关于android service 重启
  • 原文地址:https://www.cnblogs.com/ljdong7/p/12014539.html
Copyright © 2011-2022 走看看