private void Font_OnClick(object sender, RoutedEventArgs e) { var fp = new FontPicker(SPDAssets.GetFont(), 2 + GetNeighboursCount((Neighbourhoods)NeighbourBox.SelectedItem, (int)Slider1.Value)); fp.ShowDialog(); }