Add multiple views inside a view using WPF and Caliburn.Micro

前端 未结 3 1551
栀梦
栀梦 2020-12-24 09:59

I\'m trying to learn using Caliburn.Micro with WPF. How can I add multiple views inside a view?



        
3条回答
  •  抹茶落季
    2020-12-24 10:43

    in file App.xaml.cs, in method GetInstance add the following lines

    protected override object GetInstance(Type service, string key)
    {
        if (service == null && !string.IsNullOrWhiteSpace(key))
        {
            service = Type.GetType(key);
            key = null;
        }
        // the rest of method
    }
    

提交回复
热议问题