コード例 #1
0
        public Example2()
        {
            this.InitializeComponent();
            //Renderer.DrawFps = true;

            DataContext = new Example2ViewModel(this);
#if DEBUG
            this.AttachDevTools();
#endif
        }
コード例 #2
0
        public Example2()
        {
            this.InitializeComponent();
            //Renderer.DrawFps = true;

            DataContext = new Example2ViewModel(this);

            //it's open when we set text a bug in autocomplete?
            var autoComplete = this.Get <AutoCompleteBox>("mediaUrl");

            autoComplete.GetObservable(AutoCompleteBox.IsDropDownOpenProperty)
            .Skip(1).Take(1)
            .Subscribe(_ => autoComplete.IsDropDownOpen = false);

#if DEBUG
            this.AttachDevTools();
#endif
        }