コード例 #1
0
        protected override void Init(string regionName, out IPanelWrapper <Panel> target)
        {
            Grid control = new Grid();

            UIRegion.SetRegion(control, regionName);
            target = new PanelWrapper()
            {
                Target = control
            };
        }
コード例 #2
0
        protected override void Init(out IViewInjectionService service, out IPanelWrapper <Panel> target)
        {
            Grid control = new Grid();
            var  s       = new ViewInjectionService();

            Interaction.GetBehaviors(control).Add(s);
            target = new PanelWrapper()
            {
                Target = control
            };
            service = s;
        }