User Profile & Activity

William Wen Member
I can use the crosslight template in Visual Studio now, thanks.
Posted: November 23, 2014 1:17 PM
I am looking forward to the new release.
It's work now, I can grab the Fragment from ViewModel, I appreciate that.

Hello,

Sorry I didn't mention the Fragment class is inherited "Intersoft.Crosslight.Android.Fragment<customViewModel>". Error message "Cannot convert type 'customViewModel' to 'Intersoft.Crosslight.Android.Fragment<Prototype.Ems.ViewModels.customViewModel>' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion" occurred when I use safe-cast statment on design time. 

It's ok when I code below:

customViewModel context = Owner as customViewModel;

It seemed error when I code below on runtime:

customViewModel context = Owner as customViewModel;

Fragment<customViewModel> customFragment = context.Context as Fragment<customViewModel>;

I still can't grab the Fragment<customViewModel> to start my Android AnimationDrawable object, thank you very much.

All times are GMT -5. The time now is 2:13 AM.
Previous Next