public Window1() { InitializeComponent(); MapControl.ErrorMessageChanged += MapErrorMessageChanged; MapControl.FeatureInfo += MapControlFeatureInfo; Fps.SetBinding(TextBlock.TextProperty, new Binding("Fps")); Fps.DataContext = MapControl.FpsCounter; OsmClick(this, null); }
public Window1() { InitializeComponent(); MapControl.ErrorMessageChanged += MapErrorMessageChanged; MapControl.FeatureInfo += MapControlFeatureInfo; MapControl.MouseMove += MapControlOnMouseMove; Fps.SetBinding(TextBlock.TextProperty, new Binding("Fps")); Fps.DataContext = MapControl.FpsCounter; Logger.LogDelegate += LogMethod; FillComboBoxWithDemoSamples(); SampleSet.SelectionChanged += SampleSetOnSelectionChanged; RenderMode.SelectionChanged += RenderModeOnSelectionChanged; var firstRadioButton = (RadioButton)SampleList.Children[0]; firstRadioButton.IsChecked = true; firstRadioButton.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent)); }
public Window1() { InitializeComponent(); MapControl.ErrorMessageChanged += MapErrorMessageChanged; MapControl.FeatureInfo += MapControlFeatureInfo; MapControl.MouseInfoUp += MapControlOnMouseInfoUp; Fps.SetBinding(TextBlock.TextProperty, new Binding("Fps")); Fps.DataContext = MapControl.FpsCounter; Logger.LogDelegate += LogMethod; foreach (var sample in AllSamples()) { SampleList.Children.Add(CreateRadioButton(sample)); } var firstRadioButton = (RadioButton)SampleList.Children[0]; firstRadioButton.IsChecked = true; firstRadioButton.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent)); }