Example #1
0
        public LeagueView(LeagueViewModel leagueViewModel, IServiceProvider serviceProvider)
            : base(serviceProvider,
                   closeOnBlur: true)
        {
            InitializeComponent();
            ViewModel   = leagueViewModel;
            DataContext = ViewModel;

            SetWindowPositionPercent(25, 0);
            Show();
            Activate();
        }
Example #2
0
        public LeagueView(LeagueViewModel leagueViewModel, IServiceProvider serviceProvider)
            : base("league", serviceProvider)
        {
            InitializeComponent();
            ViewModel   = leagueViewModel;
            DataContext = ViewModel;

            Show();
            Activate();

            SetTopPercent(0, LocationSource.Begin);
            SetLeftPercent(50, LocationSource.Center);
        }