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, }); }
public ControlsScreenViewModel() { OFVM = new OptionsFlyoutViewModel(); _BNBoard = new BingoNumberBoard(); DisplayName = "BingoBanko Kontrol-Skærm"; }