c# - Unable to apply Shadow on Window -


i have following:

  <style targettype="local:mainwindow">         <setter property="foreground" value="{dynamicresource foregroundcolorbrush}" />         <setter property="background" value="{dynamicresource windowbackgroundbrush}"/>         <setter property="uselayoutrounding" value="true" />         <setter property="textoptions.textformattingmode" value="display" />         <setter property="template">             <setter.value>                 <controltemplate targettype="local:mywindow">                     <border x:name="windowborder" background="{staticresource windowbackgroundcolorbrush}">                         <border.effect>                             <dropshadoweffect blurradius="20" color="black"/>                         </border.effect>                         <grid>                             <border borderthickness="1">                                 <adornerdecorator>                                     <grid x:name="layoutroot">                                         <grid.rowdefinitions>                                             <rowdefinition height="25" />                                             <rowdefinition height="*" />                                             <rowdefinition height="15" />                                         </grid.rowdefinitions>                                         <contentpresenter grid.row="1" grid.rowspan="2" margin="7"/>                                         <rectangle x:name="headerbackground" height="25" fill="{dynamicresource windowbackgroundcolorbrush}" verticalalignment="top" grid.row="0"/>                                         <stackpanel orientation="horizontal" horizontalalignment="right" verticalalignment="top" windowchrome.ishittestvisibleinchrome="true" grid.row="0">                                             <button command="{x:static systemcommands.minimizewindowcommand}" style="{staticresource windowbuttonstyle}">                                                 <grid width="30" height="25">                                                     <textblock text="0" fontfamily="marlett" fontsize="14" verticalalignment="center" horizontalalignment="center" padding="3.5,0,0,3" />                                                 </grid>                                             </button>                                             <button command="{x:static systemcommands.closewindowcommand}" style="{staticresource windowbuttonstyle}">                                                 <grid width="30" height="25">                                                     <textblock text="r" fontfamily="marlett" fontsize="14" verticalalignment="center" horizontalalignment="center" padding="0,0,0,1" />                                                 </grid>                                             </button>                                         </stackpanel>                                         <textblock x:name="windowtitletextblock" grid.row="0" text="{templatebinding title}" horizontalalignment="left" texttrimming="characterellipsis" verticalalignment="center"  margin="8 2 0 0"  fontsize="14"  foreground="{templatebinding foreground}"/>                                     </grid>                                 </adornerdecorator>                             </border>                             <border borderbrush="{staticresource bluecolorbrush}" borderthickness="1" visibility="{binding isactive, relativesource={relativesource findancestor, ancestortype={x:type window}}, converter={staticresource bool2visibilityconverter}}" />                         </grid>                     </border>                 </controltemplate>             </setter.value>         </setter>     </style> 

does know why border.effect of windowborder isn't working?

i have been trying fix since hours can't find cause.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -