- geographicrepresentation.zip
- GeographicRepresentation
- bin
- Release
- GeographicRepresentation.Interfaces.dll
- GeographicRepresentation.Interfaces.pdb
- GeographicRepresentation.Lib.dll
- GeographicRepresentation.Lib.pdb
- GeographicRepresentation.TestLib.dll
- GeographicRepresentation.TestLib.pdb
- GeographicRepresentation.UILib.exe
- GeographicRepresentation.UILib.pdb
- GeographicRepresentation.UILib.vshost.exe
- GeographicRepresentation.UILib.vshost.exe.manifest
- Resources
- GeographicRepresentation.sln
- GeographicRepresentation.suo
- GeographicRepresentation.TestLib
- GeographicRepresentation.vsmdi
- Interfaces
- Lib
- LocalTestRun.testrunconfig
- TestResults
- UILib
|
<Window x:Class="GeographicRepresentation.UILib.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:GeographicRepresentation.UILib.View"
xmlns:me="clr-namespace:GeographicRepresentation.UILib"
Title="Geographic representation" WindowState="Maximized"
Loaded="Window_Loaded">
<Grid>
<Grid.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="View/CommonViewDictionary.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="{x:Type Button}">
<Setter Property="Margin" Value="20,10,20,10" />
<Setter Property="Height" Value="30" />
<Setter Property="Width" Value="45" />
<Setter Property="HorizontalAlignment" Value="Left" />
</Style>
<Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource textBlockStyle}" />
</ResourceDictionary>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="100" />
<RowDefinition Height="*" />
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="300" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<DockPanel Background="LightGray" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0">
<Menu Height="30" Width="45" HorizontalAlignment="Left" Margin="20,10,20,10">
<MenuItem Height="30"
HorizontalAlignment="Stretch"
>
<MenuItem.HeaderTemplate>
<DataTemplate>
<DockPanel>
<TextBlock Text="New" VerticalAlignment="Center" />
<Canvas Height="10" Width="10">
<Polygon Points="1,3 10,3, 5,10" Fill="Black" />
</Canvas>
</DockPanel>
</DataTemplate>
</MenuItem.HeaderTemplate>
<MenuItem Header="Continent" Command="me:MainWindow.cmd_AddContinent" />
<MenuItem Header="Country" Command="me:MainWindow.cmd_AddCountry" />
<MenuItem Header="City" Command="me:MainWindow.cmd_AddCity" />
</MenuItem>
</Menu>
<Button Content="Edit" Command="me:MainWindow.cmd_EditObject" />
<Button Content="Delete" Command="me:MainWindow.cmd_RemoveObject" />
</DockPanel>
<local:ContinentsViewGrid x:Name="treeView" Grid.Column="0" Grid.Row="1" />
<local:SelectedObjectView Grid.Column="1" Grid.Row="1" DataContext="{Binding ElementName=treeView, Path=SelectedObject}" />
<TextBlock x:Name="txtCurrentTime"
Text="{Binding Path=CurrentTime}"
Grid.Row="2" Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"/>
</Grid>
</Window>
|
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.