private void InitPickerBoxDialog() { customDialog = new PickerBoxDialog { ItemsSource = listaCategorias, Title = Texts.TextoCategoriaBusqueda }; customDialog.Unloaded += CustomDialogClosed; }
/// <summary> /// KOnstruktor /// </summary> public CreateOrUpdateFueling() { InitializeComponent(); Cars = new PickerBoxDialog(); Cars.Title = "Samochód:"; Cars.Closed += Engines_Closed; }
void dialog_Closed(object sender, EventArgs e) { PickerBoxDialog dialog = (PickerBoxDialog)sender; var selected = dialog.SelectedItem; var tileType = (TileType)Enum.Parse(typeof(TileType), selected.ToString(), true); NavigationService.Navigate(new Uri("/Create.xaml?modelType=" + selected, UriKind.Relative)); }
private void ApplicationBarIconButton_Click(object sender, EventArgs e) { var dialog = new PickerBoxDialog(); // Assign data source and title dialog.ItemSource = EnumHelper.GetEnumValues <TileType>(); dialog.Title = "ACTION TYPE"; dialog.Closed += dialog_Closed; dialog.Show(); }
private void InitMedidaPickerBoxDialog() { medidaDialog = new PickerBoxDialog { ItemsSource = unidadesMedida, Title = Texts.TextoCategoriaAjustes }; if (medidaElegida != null) { medidaDialog.SelectedIndex = unidadesMedida.IndexOf(medidaElegida); } medidaDialog.Unloaded += MedidaDialogClosed; }
private void InitRangoPickerBoxDialog() { rangoDialog = new PickerBoxDialog { ItemsSource = rangosDistancia, Title = Texts.TextoCategoriaAjustes }; if (rangoElegido != null) { rangoDialog.SelectedIndex = rangosDistancia.IndexOf(rangoElegido); } rangoDialog.Unloaded += RangoDialogClosed; }
public ObjectListPage() { InitializeComponent(); vm = new SpaceObjectCollection(); DataContext = vm; dialog = new PickerBoxDialog(); dialog.ItemSource = new List <String>() { "All", "Meteor", "Satellite", "Station", "Others" }; dialog.Closed += dialog_Closed; }
/// <summary> /// Konstruktor /// </summary> public CreateOrUpdateCar() { InitializeComponent(); Engines = new PickerBoxDialog(); List <DicItem> engines = new List <DicItem>(); engines.Add(new DicItem() { Code = "NO", Value = "Diesel" }); engines.Add(new DicItem() { Code = "LPG", Value = "Gaz" }); engines.Add(new DicItem() { Code = "PETROL", Value = "Benzyna" }); Engines.ItemSource = engines; Engines.Title = "Typ silnika:"; Engines.Closed += Engines_Closed; }