Subversion Repository Public Repository

Nextrek

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
82
83
<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 x:ConnectionId='2' Content="{Binding Address, Converter={StaticResource AddressToStringConverter}}" FontSize="20"                              Margin="10,10" Padding="5,5" ></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 x:ConnectionId='1' Content="{Binding Address, Converter={StaticResource AddressToStringConverter}}" FontSize="20" Margin="10,10" Padding="5,5"                                 ></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 x:ConnectionId='3' PlaceholderText="Città" x:Uid="TownTextBox" x:Name="TownTextBox" Grid.Row="1"   Style="{StaticResource TextBoxStyleDefault}" FlyoutBase.AttachedFlyout="{StaticResource CitySelectionFlyout}"                                      >
        </TextBox>


        <TextBox x:ConnectionId='4' PlaceholderText="Indirizzo" x:Uid="AddressTextBox" x:Name="AddressTextbox" Grid.Row="2"   Style="{StaticResource TextBoxStyleDefault}" IsEnabled="False" FlyoutBase.AttachedFlyout="{StaticResource AddressSelectionFlyout}"                                           />

        <ProgressRing x:Name="Loader" IsActive="True" Grid.RowSpan="100" Grid.ColumnSpan="100" Background="#99000000" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" IsHitTestVisible="True" Visibility="Collapsed" Foreground="#FF2CDAFF"/>

    </Grid>
</UserControl>

Commits for Nextrek/Android/SmartCharging/SmartCharging_WP/SmartCharging/obj/Release/MapAddressSelectorControl.xaml

Diff revisions: vs.
Revision Author Commited Message
799 JMBauan picture JMBauan Thu 08 Oct, 2015 13:36:32 +0000