Пример #1
0
 public ServerListPage(VmServerListPage vmDataContext)
 {
     Host          = vmDataContext.Vm;
     VmDataContext = vmDataContext;
     InitializeComponent();
     DataContext = VmDataContext;
 }
Пример #2
0
        public ServerListPage(VmMain host)
        {
            Host          = host;
            VmDataContext = new VmServerListPage(host);
            InitializeComponent();
            DataContext = VmDataContext;

            // hide GridBottom when hover.
            MouseMove += (sender, args) =>
            {
                var p = args.GetPosition(GridBottom);
                GridBottom.Visibility = p.Y > 0 ? Visibility.Collapsed : Visibility.Visible;
            };
        }