|
<UserControl x:Class="SLMapTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:activity="clr-namespace:System.Windows.Controls;assembly=ActivityControl"
xmlns:ctl="clr-namespace:SLMapTest.View"
mc:Ignorable="d"
MinHeight="300"
MinWidth="300"
DataContext="{Binding Source={StaticResource Locator}, Path=ViewModelMain}">
<activity:Activity IsActive="{Binding IsBusy}">
<Grid Background="#FFB3C6D4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
</Grid.RowDefinitions>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition Height="80"></RowDefinition>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="20"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition Height="20"></RowDefinition>
<RowDefinition Height="20"></RowDefinition>
</Grid.RowDefinitions>
<Border Grid.ColumnSpan="2" BorderThickness="1" CornerRadius="1" BorderBrush="Black" Background="#FF4CBEFF">
<TextBlock Text="Segments"/>
</Border>
<ListBox Grid.Row="1" ItemsSource="{Binding Path=RouteSegments}" SelectedItem="{Binding Path=SelectedSegment, Mode=TwoWay}" IsEnabled="{Binding Path=EnableSegmentSelection}"></ListBox>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Command="{Binding Path=ButtonNewSegment}" Content="{Binding Path=NewSaveSegment}"></Button>
<Button Grid.Column="1" Command="{Binding Path=ButtonDeleteSegment}">Delete</Button>
</Grid>
<Button Grid.Row="3" Command="{Binding Path=ButtonCancelSegment}">Cancel</Button>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock VerticalAlignment="Center" Grid.ColumnSpan="2">Segment Street</TextBlock>
<Border Grid.Row="1" Grid.ColumnSpan="2" BorderThickness="1" CornerRadius="1" BorderBrush="Black" Background="#FF4CBEFF">
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" VerticalAlignment="Center" Text="{Binding Path=SegmentStreet}"/>
</Border>
<TextBlock Grid.Row="2">Start#</TextBlock>
<TextBox Grid.Row="3" VerticalAlignment="Center" Text="{Binding Path=StartNumber, Mode=TwoWay}"/>
<TextBlock Grid.Row="2" Grid.Column="1">End#</TextBlock>
<TextBox Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" Text="{Binding Path=EndNumber, Mode=TwoWay}"/>
</Grid>
</Grid>
<ctl:SLMapView Grid.Column="1"></ctl:SLMapView>
<Border Grid.Row="1" BorderThickness="1" CornerRadius="1" BorderBrush="Black" Background="#FF4CBEFF">
<TextBlock Grid.Row="1" Text="{Binding Path=SelectedLocation}"></TextBlock>
</Border>
<Grid Grid.Row="1" Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Command="{Binding Path=ButtonSetStartXStreet}">StartX</Button>
<Button Grid.Column="1" Command="{Binding Path=ButtonSetEndXStreet}">EndX</Button>
</Grid>
</Grid>
</activity:Activity>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.