xaml - Silverlight progressbar animation did not work -
please me silverlight code, why progress bar never moves. in designer progress bar looks fine in action never moves. don't need binding of % of process connected progress. need move forward , bar forever. without code behind ofc. help!
<controls:childwindow x:class="progressbardialog" .... .... minwidth="305" borderthickness="0" title="busyindicatordialog"> <controls:childwindow.resources> <resourcedictionary> <lineargradientbrush x:key="progressbarindicatoranimatedfill" startpoint="0,0" endpoint="1,0"> <lineargradientbrush.gradientstops> <gradientstop color="#00ffffff" offset="0.0" /> <gradientstop color="#80ffffff" offset="0.6" /> <gradientstop color="#ffffffff" offset="1.0" /> </lineargradientbrush.gradientstops> </lineargradientbrush> <style targettype="progressbar"> <setter property="background" value="#ff57617f" /> <setter property="foreground" value="#ffffffff" /> <setter property="borderbrush" value="#ff57617f" /> <setter property="borderthickness" value="0" /> <setter property="minheight" value="5" /> <setter property="height" value="5" /> <setter property="template"> <setter.value> <controltemplate targettype="progressbar"> <grid name="part_templateroot" height="{templatebinding height}"> <rectangle name="part_track" fill="{templatebinding background}" radiusx="2" radiusy="2" /> <grid name="foreground"> <rectangle x:name="indicator" radiusx="2" radiusy="2"> <rectangle.effect> <dropshadoweffect blurradius="25" shadowdepth="0" opacity="1" color="white" /> </rectangle.effect> </rectangle> <grid x:name="animation" margin="60,0,0,0"> <border x:name="part_glowrect" width="60" background="{staticresource progressbarindicatoranimatedfill}" horizontalalignment="left" cornerradius="2"> <border.effect> <dropshadoweffect blurradius="25" shadowdepth="0" opacity="0.01" color="white" /> </border.effect> </border> </grid> </grid> <border borderthickness="{templatebinding borderthickness}" borderbrush="{templatebinding borderbrush}" cornerradius="2" /> </grid> </controltemplate> </setter.value> </setter> </style> </resourcedictionary> </controls:childwindow.resources> <interactivity:interaction.behaviors> <core:dialogbehavior dialogstyle="dialogwithouttitlestyle" /> </interactivity:interaction.behaviors> <grid x:name="layoutroot" margin="0" background="{staticresource brushdialogbackground}"> <grid.rowdefinitions> <rowdefinition height="auto" minheight="10" /> <rowdefinition height="auto" /> </grid.rowdefinitions> <textblock text="{binding relativesource={relativesource ancestortype=controls:childwindow}, path=title, mode=oneway}" horizontalalignment="center" verticalalignment="center" /> <progressbar grid.row="1" borderthickness="0" isindeterminate="true" width="244" height="5" horizontalalignment="center" verticalalignment="bottom" margin="13,36,13,37" padding="0,0,0,10" uselayoutrounding="true" background="#ff57617f" /> </grid>
Comments
Post a Comment