コード例 #1
0
ファイル: MainView.xaml.cs プロジェクト: xumnlq01/ice-demos
        public MainView()
        {
            InitializeComponent();
            App app = (App)System.Windows.Application.Current;
            ObjectDataProvider odp = (ObjectDataProvider)app.Resources["ChatModel"];

            app.getCoordinator().setMainView(this);
            _model = (ChatModel)odp.Data;

            // Disable the browse back command
            NavigationCommands.BrowseBack.InputGestures.Clear();
            if (!loadWindowsPrefs())
            {
                Width  = 400;
                Height = 540;
                ChatUtils.locateOnScreen(this);
            }
        }