设置GlassFrameThickness为1,如果ResizeMode为NoResize,则ResizeMode属性不能直接写在Window标签属性上,要以Style.Setter的方式设置,否则没有边框阴影效果
代码:
<Window x:Class="SunCreate.PACP.Client.UI.GIS.CameraDetailsWin" ="" ="" ="" ="" ="clr-namespace:SunCreate.PACP.Client.UI" mc:Ignorable="d" Title="CameraDetailsWin" Height="780" Width="1200" WindowStyle="None" ShowInTaskbar="False" WindowStartupLocation="CenterScreen" Background="Transparent" Loaded="Window_Loaded"> <WindowChrome.WindowChrome> <WindowChrome CaptionHeight="60" GlassFrameThickness="1" UseAeroCaptionButtons="False" NonClientFrameEdges="None" CornerRadius="0"> </WindowChrome> </WindowChrome.WindowChrome> <Window.Resources> <ResourceDictionary> <!-- Window样式 --> <Style TargetType="Window"> <!-- ResizeMode属性不能直接写在Window标签属性上,要以Style.Setter的方式设置,否则没有边框阴影效果 --> <Setter Property="ResizeMode" Value="NoResize"></Setter> </Style> </ResourceDictionary> </Window.Resources> <Grid> </Grid></Window>View Code
原文转载:http://www.shaoqun.com/a/476399.html
wish:https://www.ikjzd.com/w/105
parenthood:https://www.ikjzd.com/w/2497
特许金融分析师:https://www.ikjzd.com/w/1396
干货:亚马逊FBA物流轻小商品计划解读(二):https://www.ikjzd.com/home/129677
亚马逊发力下沉印度农村市场,玩起了地推!:https://www.ikjzd.com/home/14247
卖家注意!43种商品出口这个国家有风险!:https://www.ikjzd.com/home/111656
设置GlassFrameThickness为1,如果ResizeMode为NoResize,则ResizeMode属性不能直接写在Window标签属性上,要以Style.Setter的方式设置,否则没有边框阴影效果代码:<Windowx:Class="SunCreate.PACP.Client.UI.GIS.CameraDetailsWin"=""=&
epa认证:https://www.ikjzd.com/w/1769
acca:https://www.ikjzd.com/w/1370
王惟:https://www.ikjzd.com/w/1744
为亚马逊开店去注册公司?工商注册注册小技巧在这!:https://www.ikjzd.com/home/108730
抵制中国商品印度屡出新招!8月1日前电商商品须注明"原产国":https://www.ikjzd.com/home/125523
如何避免春节期间速卖通店铺出现波动:https://www.ikjzd.com/home/114245
没有评论:
发表评论