<UserControl x:Class="Nova.Studio.CodeWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" IsVisibleChanged="UserControl_IsVisibleChanged"> <Grid Name="outerGrid"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition/> </Grid.RowDefinitions> <Grid Name="dropDownGrid"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <ComboBox Name="typesComboBox" Grid.Column="0" IsReadOnly="True" SelectionChanged="typesComboBox_SelectionChanged"></ComboBox> <ComboBox Name="membersComboBox" Grid.Column="1" IsReadOnly="True" SelectionChanged="membersComboBox_SelectionChanged"></ComboBox> </Grid> <Grid Name="mainGrid" Grid.Row="1"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Border Margin="0,0,4,0" Name="codeBorder" CornerRadius="2" BorderBrush="Gray" BorderThickness="1" Grid.Column="0"> <ScrollViewer Name="codeScrollViewer" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Focusable="False" Background="White" ContextMenuOpening="codeViewer_ContextMenuOpening" ScrollChanged="codeViewer_ScrollChanged"> <StackPanel Name="codePanel" Margin="2" /> </ScrollViewer> </Border> <GridSplitter Name="mainGridSplitter" Width="4" /> <Border Name="textBorder" CornerRadius="2" BorderBrush="DarkGray" BorderThickness="1" Grid.Column="1"> <ScrollViewer Name="textScrollViewer" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> <TextBox Name="textView" IsReadOnly="True" AcceptsReturn="True" AcceptsTab="True" Foreground="Black" Background="LightYellow" BorderThickness="0" ContextMenuOpening="textView_ContextMenuOpening" ToolTip="Plain text"></TextBox> </ScrollViewer> </Border> </Grid> </Grid> </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 article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)