wpf - starting a storyboard from view model in wp8.1 -


i working on mvvm architecture. trying run animation made in blend view model. able make story board object in view model. unable use find method in order find story board name in view model class. tell me how it.

this viewmodel class mypageviewmodel :  inotifypropertychanged,ivalueconverter {      private visibility advancedformat = visibility.collapsed;      public  mypageviewmodel()     {        // checkedincommand = new checkinbuttonclick();         storyboard sb = new storyboard();        // unable find          sb.begin();         advancedformat = visibility.visible;       }  } 

////////// story board in mypage.xaml

    <storyboard x:name="storyboard1">         <doubleanimationusingkeyframes storyboard.targetproperty="(uielement.rendertransform).(compositetransform.translatey)" storyboard.targetname="secondarygrid">             <easingdoublekeyframe keytime="0" value="-692.752"/>             <easingdoublekeyframe keytime="0:0:1" value="0"/>         </doubleanimationusingkeyframes>     </storyboard> </page.resources> 


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -