PageRenderTime 19ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/V2/trunk/RI/Desktop/StockTraderRI.Modules.Position/Orders/OrderCompositeView.xaml

#
XAML | 32 lines | 32 code | 0 blank | 0 comment | 0 complexity | 71d64a51d7fef4ffff1707117a4facad MD5 | raw file
 1<UserControl x:Class="StockTraderRI.Modules.Position.Orders.OrderCompositeView"
 2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 4    <Border Padding="5,5,5,5" BorderBrush="#77000000" BorderThickness="1,1,1,1" Margin="0,0,0,5" CornerRadius="12,12,12,12" Width="Auto">
 5        <StackPanel HorizontalAlignment="Stretch" Width="Auto">
 6            <Expander x:Name="CompositeExpander" IsExpanded="True" Header="{Binding OrderCommandsView}" Content="{Binding OrderDetailsView}">
 7                <Expander.HeaderTemplate>
 8                    <DataTemplate>
 9                        <Grid>
10                            <Grid.ColumnDefinitions>
11                                <ColumnDefinition Width="*" />
12                                <ColumnDefinition Width="Auto" />
13                            </Grid.ColumnDefinitions>
14                            <TextBlock Grid.Column="0" x:Name="StockHeader" Margin="0,5,0,0" Style="{StaticResource TextBlockSectionTitle}" Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Expander}},Path=DataContext.HeaderInfo}"/>
15                            <ContentPresenter Grid.Column="1" HorizontalAlignment="Right" Content="{Binding}" />
16                        </Grid>
17                    </DataTemplate>
18                </Expander.HeaderTemplate>
19            </Expander>
20            <Rectangle Margin="0,5,0,0" Stroke="{x:Null}" RadiusX="0" RadiusY="0" VerticalAlignment="Bottom" Height="4" RenderTransformOrigin="0.5,0.5">
21                <Rectangle.RenderTransform>
22                    <TransformGroup>
23                        <ScaleTransform ScaleX="1" ScaleY="-1"/>
24                        <SkewTransform AngleX="0" AngleY="0"/>
25                        <RotateTransform Angle="0"/>
26                        <TranslateTransform X="0" Y="0"/>
27                    </TransformGroup>
28                </Rectangle.RenderTransform>
29            </Rectangle>
30        </StackPanel>
31    </Border>
32</UserControl>