Stylet icon indicating copy to clipboard operation
Stylet copied to clipboard

I have a class ScreenEx that inherits from Screen, rewriting OnActivate in a new ViewModel that is unresponsive

Open kuangxj opened this issue 2 years ago • 3 comments

Description I have a class ScreenEx that inherits from Screen, rewriting OnActivate in a new ViewModel that is unresponsive

To Reproduce

class ScreenEx : Screen
{
    public string ContentId { get; set; } = Guid.NewGuid().ToString();
}

class TestViewModel:ScreenEx,IDisposable
{
  
    protected override void OnActivate()
    {
        // After F9 ,not work.
        base.OnActivate();
    }
    public void Dispose()
    {
        
    }
}

Version Info

  • Stylet version: [e.g. 1.2.3]
  • Runtime version: [e.g. 5.0.300]

Additional Info Add any other context about the problem here.

kuangxj avatar Nov 21 '23 12:11 kuangxj

I tried to reproduce the problem using your code, but it worked fine.

canton7 avatar Nov 21 '23 16:11 canton7

I replied after trying.

kuangxj avatar Dec 09 '23 14:12 kuangxj

I'm not sure what you mean by that

canton7 avatar Dec 09 '23 14:12 canton7

I fix it,thanks.

kuangxj avatar Jun 19 '24 04:06 kuangxj