Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.0 kB
1
Indexable
Never
       HorizontalAlignment="Right"
                        Margin="0, 0, 10, 0">
                <TextBox Watermark="Название проекта"
                         Width="150"
                         Name="ProjectTb"/>
                <Button Content="Создать проект"
                        Width="150"
                        HorizontalContentAlignment="Center"
                        VerticalContentAlignment="Center"
                        Background="Blue"
                        Foreground="White"
                        Margin="10, 0, 0, 0"
                        Click="AddProject"/>  
            </StackPanel>
        </Grid>
        
        <Grid Grid.Row="1">
            <ListBox Name="ProjectLb">
                <ListBox.ItemTemplate>
                    <DataTemplate DataType="model:ProjectUser">
                        <Grid>
                            <StackPanel Orientation="Horizontal"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Left"
                                        Margin="10, 0, 0, 0">
                                <TextBlock Text="{Binding Project.Name}"
                                           VerticalAlignment="Center"
                                           FontSize="24"/>
                                <Button Content="Открыть"
                                        Margin="10, 0, 0, 0"
                                        Click="ToTasks"
                                        HorizontalContentAlignment="Center"
                                        VerticalContentAlignment="Center"
                                        Background="Blue"
                                        Foreground="White"
                                        Width="150"/>
                            </StackPanel>
                        </Grid>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </Grid>
    </Grid>