|
<Window x:Class="Harlinn.CIMTool.Wpf.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:avalonDock="http://avalondock.codeplex.com"
xmlns:pg="http://schemas.denisvuyka.wordpress.com/wpfpropertygrid"
xmlns:types="clr-namespace:Harlinn.CIMTool.Wpf.Types"
Title="harlinn.COM: CIMTool" Height="558" Width="800"
DataContext="{Binding Source={StaticResource CIMToolDataSource}}"
ResizeMode="CanResizeWithGrip">
<Window.Resources>
<ResourceDictionary>
<types:NodeTemplateSelector x:Key="NodeTemplateSelector" />
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="NodeTemplates.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid VerticalAlignment="Center" Background="{StaticResource ShadeBrush}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Source="/Harlinn.CIMTool.Wpf;component/Assets/Images/HarlinnCOMBlue.png" HorizontalAlignment="Left" VerticalAlignment="Center" Stretch="Uniform" Margin="5" Width="160" />
<Label Grid.Column="1" Content="CIMTool" VerticalAlignment="Center" Margin="10,5,5,5" FontSize="15" />
</Grid>
<Menu Grid.Row="1">
<MenuItem Header="File">
<MenuItem Header="New" >
<MenuItem Header="Query" Click="NewQueryMenuItem_Click"/>
</MenuItem>
</MenuItem>
</Menu>
<avalonDock:DockingManager Grid.Row="2" x:Name="dockingManager">
<avalonDock:DockingManager.Theme>
<avalonDock:ExpressionDarkTheme/>
</avalonDock:DockingManager.Theme>
<avalonDock:LayoutRoot>
<avalonDock:LayoutPanel Orientation="Horizontal">
<avalonDock:LayoutAnchorablePane DockWidth="225">
<avalonDock:LayoutAnchorable Title="Classes">
<TreeView ItemTemplateSelector="{StaticResource NodeTemplateSelector}" ItemsSource="{Binding Items}" SelectedItemChanged="TreeView_SelectedItemChanged_1" >
<TreeView.ContextMenu >
<ContextMenu Background="{StaticResource ShadeBrush}" >
<MenuItem Header="Query" x:Name="NewQueryMenuItem" Click="NewQueryMenuItem_Click"/>
<MenuItem Header="List classes" x:Name="ListClassesMenuItem"/>
<MenuItem Header="Generate Code" x:Name="GenerateCodeMenuItem" Click="GenerateCodeMenuItem_Click" />
</ContextMenu>
</TreeView.ContextMenu>
</TreeView>
</avalonDock:LayoutAnchorable>
</avalonDock:LayoutAnchorablePane>
<avalonDock:LayoutDocumentPane x:Name="layoutDocumentPane">
</avalonDock:LayoutDocumentPane>
<avalonDock:LayoutAnchorablePane DockWidth="225">
<avalonDock:LayoutAnchorable Title="Properties">
<pg:PropertyGrid x:Name="propertyGrid" ShowReadOnlyProperties="True">
<pg:PropertyGrid.Layout>
<pg:CategorizedLayout/>
</pg:PropertyGrid.Layout>
</pg:PropertyGrid>
</avalonDock:LayoutAnchorable>
</avalonDock:LayoutAnchorablePane>
</avalonDock:LayoutPanel>
</avalonDock:LayoutRoot>
</avalonDock:DockingManager>
<StatusBar Grid.Row="3" Background="{StaticResource ShadeBrush}">
<StatusBarItem >
<TextBlock/>
</StatusBarItem>
</StatusBar>
</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.
Chief Architect - Sea Surveillance AS.
Specializing in integrated operations and high performance computing solutions.
I’ve been fooling around with computers since the early eighties, I’ve even done work on CP/M and MP/M.
Wrote my first “real” program on a BBC micro model B based on a series in a magazine at that time. It was fun and I got hooked on this thing called programming ...
A few Highlights:
- High performance application server development
- Model Driven Architecture and Code generators
- Real-Time Distributed Solutions
- C, C++, C#, Java, TSQL, PL/SQL, Delphi, ActionScript, Perl, Rexx
- Microsoft SQL Server, Oracle RDBMS, IBM DB2, PostGreSQL
- AMQP, Apache qpid, RabbitMQ, Microsoft Message Queuing, IBM WebSphereMQ, Oracle TuxidoMQ
- Oracle WebLogic, IBM WebSphere
- Corba, COM, DCE, WCF
- AspenTech InfoPlus.21(IP21), OsiSoft PI
More information about what I do for a living can be found at:
harlinn.com or
LinkedIn
You can contact me at
espen@harlinn.no