aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TEMP/Tango.Graphics2D/MainWindow.xaml
blob: c530ae62c6485ebd926e3a6d3d2bbbba38ce0f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<Window x:Class="Tango.Graphics2D.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Tango.Graphics2D"
        mc:Ignorable="d"
        Title="MainWindow" Height="500" Width="800" DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}">

    <Window.Resources>
        <SolidColorBrush x:Key="RRR" Color="Blue"></SolidColorBrush>
    </Window.Resources>
    <Grid>
        <!--<ListBox ItemsSource="{Binding Persons}" VirtualizingPanel.IsVirtualizing="False" ScrollViewer.CanContentScroll="False">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <local:Drawing2DCanvas Height="50" x:Name="host">
                        <Rectangle Width="30" Height="30">
                            <Rectangle.Fill>
                                <SolidColorBrush Color="{Binding Color}" />
                            </Rectangle.Fill>
                        </Rectangle>
                        <TextBlock Canvas.Left="40" Text="{Binding Age}"></TextBlock>
                    </local:Drawing2DCanvas>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>-->

        <StackPanel>
            <local:Drawing2DStackPanel VerticalAlignment="Top">
                <TextBlock HorizontalAlignment="Left" Margin="0 20 0 0">
                    <Run>Top</Run>
                    <Run FontWeight="Bold" FontStyle="Italic">Left</Run>
                </TextBlock>
                <TextBlock Text="Center Center" HorizontalAlignment="Center" Margin="0 20 0 0"></TextBlock>
                <TextBlock Text="Right Bottom" HorizontalAlignment="Right" Margin="0 20 0 0"></TextBlock>
            </local:Drawing2DStackPanel>
            <local:Drawing2DStackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0 100 0 0" Height="100">
                <TextBlock VerticalAlignment="Top">Left Top</TextBlock>
                <TextBlock Margin="100 0 0 0" VerticalAlignment="Center">Center Center</TextBlock>
                <TextBlock Margin="100 0 0 0" VerticalAlignment="Bottom">Right Bottom</TextBlock>
                <Rectangle Margin="100 0 0 0" Fill="Red" Width="100" Height="100" Stroke="Black" StrokeThickness="2"></Rectangle>
                <Ellipse Margin="20 0 0 0" Fill="Blue" Width="100" Height="100"></Ellipse>
            </local:Drawing2DStackPanel>

            <Grid Width="200" Height="100" Margin="0 10 0 0">
                <local:Drawing2DFrame>
                    <Border Background="Gainsboro" BorderBrush="DimGray" BorderThickness="1" CornerRadius="5"/>
                    <TextBlock Text="Roy Ben Shabat" Opacity="0.5" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10"></TextBlock>
                </local:Drawing2DFrame>
            </Grid>
        </StackPanel>

    </Grid>
</Window>