Friday, 15 August 2014

xaml - WPF pullable view from top to show alerts/notifictions like iOS devices -



xaml - WPF pullable view from top to show alerts/notifictions like iOS devices -

can suggest how accomplish pullable view top show alerts/notifications ios devices in wpf?

thanks

sorry took long respond, been busy own projects. anyway, simplest route click, real easy. here's concept example;

<grid> <grid.resources> <storyboard x:key="slidepaneldown"> <thicknessanimationusingkeyframes storyboard.targetproperty="(frameworkelement.margin)" storyboard.targetname="grid"> <easingthicknesskeyframe keytime="0:0:0.3" value="0"/> </thicknessanimationusingkeyframes> </storyboard> <storyboard x:key="slidepanelup"> <thicknessanimationusingkeyframes storyboard.targetproperty="(frameworkelement.margin)" storyboard.targetname="grid"> <easingthicknesskeyframe keytime="0:0:0.3" value="0,-225,0,0"/> </thicknessanimationusingkeyframes> </storyboard> </grid.resources> <grid.triggers> <eventtrigger routedevent="togglebutton.checked" sourcename="button"> <beginstoryboard storyboard="{staticresource slidepaneldown}"/> </eventtrigger> <eventtrigger routedevent="togglebutton.unchecked" sourcename="button"> <beginstoryboard x:name="slidepanelup_beginstoryboard" storyboard="{staticresource slidepanelup}"/> </eventtrigger> </grid.triggers> <grid x:name="grid" width="100" height="250" verticalalignment="top" margin="0,-225,0,0"> <grid.rowdefinitions> <rowdefinition/> <rowdefinition height="auto"/> </grid.rowdefinitions> <rectangle fill="green"/> <togglebutton x:name="button" grid.row="1" content="click me" cursor="hand"/> </grid> </grid>

to have drag-able, require bit more effort possible if want effect, should start. hope helps!

wpf xaml

No comments:

Post a Comment