コード例 #1
0
        public OptionsFlyout()
        {
            this.InitializeComponent();

            _optionsFlyoutViewModel = (OptionsFlyoutViewModel)this.DataContext;

            this.SetBinding(
                RailwayIdsProperty,
                new Binding
            {
                Source = MetroManager.Current,
                Path   = new PropertyPath("RailwayIds"),
                Mode   = BindingMode.OneWay,
            });

            this.SetBinding(
                IsInitiatingProperty,
                new Binding
            {
                Source = Settings.Current,
                Path   = new PropertyPath("IsInitiating"),
                Mode   = BindingMode.OneWay,
            });

            this.SetBinding(
                LanguageTagProperty,
                new Binding
            {
                Source = Settings.Current,
                Path   = new PropertyPath("LanguageTag"),
                Mode   = BindingMode.OneWay,
            });
        }
コード例 #2
0
 public ControlsScreenViewModel()
 {
   OFVM = new OptionsFlyoutViewModel();
   _BNBoard = new BingoNumberBoard();
   DisplayName = "BingoBanko Kontrol-Skærm";
 }