diff options
Diffstat (limited to 'Software/Visual_Studio/TEMP/Tango.Graphics2D/MainWindow.xaml')
| -rw-r--r-- | Software/Visual_Studio/TEMP/Tango.Graphics2D/MainWindow.xaml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Software/Visual_Studio/TEMP/Tango.Graphics2D/MainWindow.xaml b/Software/Visual_Studio/TEMP/Tango.Graphics2D/MainWindow.xaml new file mode 100644 index 000000000..2ba887459 --- /dev/null +++ b/Software/Visual_Studio/TEMP/Tango.Graphics2D/MainWindow.xaml @@ -0,0 +1,44 @@ +<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="450" 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 Text="Left Top" HorizontalAlignment="Left" Margin="0 20 0 0"></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"></Rectangle> + </local:Drawing2DStackPanel> + </StackPanel> + + </Grid> +</Window> |
