PageRenderTime 18ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/V4/StockTrader RI/Desktop/StockTraderRI.Modules.Position/Orders/OrderCompositeView.xaml

#
XAML | 38 lines | 38 code | 0 blank | 0 comment | 0 complexity | 8f644cb40ea05eea5e040fa377c5b703 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    xmlns:orders="clr-namespace:StockTraderRI.Modules.Position.Orders">
 5    <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">
 6        <StackPanel HorizontalAlignment="Stretch" Width="Auto">
 7            <Expander x:Name="CompositeExpander" IsExpanded="True" Header="{Binding OrderDetails}" Content="{Binding OrderDetails}">
 8                <Expander.ContentTemplate>
 9                    <DataTemplate>
10                        <orders:OrderDetailsView/>
11                    </DataTemplate>
12                </Expander.ContentTemplate>
13                <Expander.HeaderTemplate>
14                    <DataTemplate>
15                        <Grid>
16                            <Grid.ColumnDefinitions>
17                                <ColumnDefinition Width="*" />
18                                <ColumnDefinition Width="Auto" />
19                            </Grid.ColumnDefinitions>
20                            <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}"/>
21                            <orders:OrderCommandsView Grid.Column="1" HorizontalAlignment="Right"/>
22                        </Grid>
23                    </DataTemplate>
24                </Expander.HeaderTemplate>
25            </Expander>
26            <Rectangle Margin="0,5,0,0" Stroke="{x:Null}" RadiusX="0" RadiusY="0" VerticalAlignment="Bottom" Height="4" RenderTransformOrigin="0.5,0.5">
27                <Rectangle.RenderTransform>
28                    <TransformGroup>
29                        <ScaleTransform ScaleX="1" ScaleY="-1"/>
30                        <SkewTransform AngleX="0" AngleY="0"/>
31                        <RotateTransform Angle="0"/>
32                        <TranslateTransform X="0" Y="0"/>
33                    </TransformGroup>
34                </Rectangle.RenderTransform>
35            </Rectangle>
36        </StackPanel>
37    </Border>
38</UserControl>