Nextrek
@ 691
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
<UserControl x:Class="SmartCharging.MapAddressSelectorControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:SmartCharging" xmlns:converter="using:SmartCharging.Converter" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:maps="using:Windows.UI.Xaml.Controls.Maps" d:DesignHeight="600" d:DesignWidth="400"> <UserControl.Resources> <converter:AddressToStringConverter x:Key="AddressToStringConverter"></converter:AddressToStringConverter> <converter:ObjectToBooleanConverter x:Key="ObjectToBooleanConverter"></converter:ObjectToBooleanConverter> <Flyout x:Key="CitySelectionFlyout" Placement="Left" x:Name="CitySelectionFlyout" FlyoutPresenterStyle="{StaticResource FlyoutPresenterStyleDefault}"> <ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto"> <ListView x:Name="CityList"> <ListView.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"></StackPanel> </ItemsPanelTemplate> </ListView.ItemsPanel> <ListView.ItemTemplate> <DataTemplate> <ListBoxItem Content="{Binding Address, Converter={StaticResource AddressToStringConverter}}" FontSize="20" Tapped="CityListItem_Tapped" Margin="10,10" ></ListBoxItem> </DataTemplate> </ListView.ItemTemplate> </ListView> </ScrollViewer> </Flyout> <Flyout x:Key="AddressSelectionFlyout" Placement="Left" x:Name="AddressSelectionFlyout" FlyoutPresenterStyle="{StaticResource FlyoutPresenterStyleDefault}"> <ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto"> <ListView x:Name="AddressList"> <ListView.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"></StackPanel> </ItemsPanelTemplate> </ListView.ItemsPanel> <ListView.ItemTemplate> <DataTemplate> <ListBoxItem Content="{Binding Address, Converter={StaticResource AddressToStringConverter}}" FontSize="20" Margin="10,10" Tapped="AddressListItem_Tapped" ></ListBoxItem> </DataTemplate> </ListView.ItemTemplate> </ListView> </ScrollViewer> </Flyout> </UserControl.Resources> <Grid x:Name="GridContainer"> <Grid.RowDefinitions> <RowDefinition Height="350"></RowDefinition> <RowDefinition Height="60"></RowDefinition> <RowDefinition Height="60"></RowDefinition> </Grid.RowDefinitions> <maps:MapControl Grid.Row="0" x:Name="MapControl" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" MapServiceToken="nB2lyDpm91b5cTiMGd7lyw" Margin="0,0,0,0" > <maps:MapItemsControl x:Name="MapItemsControl"> </maps:MapItemsControl> </maps:MapControl> <TextBox PlaceholderText="Città" x:Uid="TownTextBox" x:Name="TownTextBox" Grid.Row="1" Style="{StaticResource TextBoxStyleDefault}" FlyoutBase.AttachedFlyout="{StaticResource CitySelectionFlyout}" TextChanged="TownTextbox_TextChanged"> </TextBox> <TextBox PlaceholderText="Indirizzo" x:Uid="AddressTextBox" x:Name="AddressTextbox" Grid.Row="2" Style="{StaticResource TextBoxStyleDefault}" IsEnabled="False" FlyoutBase.AttachedFlyout="{StaticResource AddressSelectionFlyout}" TextChanged="AddressTextbox_TextChanged" /> </Grid> </UserControl> |
Commits for Nextrek/Android/SmartCharging/SmartCharging_WP/SmartCharging/MapAddressSelectorControl.xaml
Revision | Author | Commited | Message |
---|---|---|---|
691 | JMBauan | Sat 05 Sep, 2015 18:08:58 +0000 | location selector |