본문 바로가기
프로그래밍

[WPF] Canvas

by BlueOcean&Shark 2019. 1. 30.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<Window x:Class="WpfApp3.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:WpfApp3"
        mc:Ignorable="d"
        Title="MainWindow" Height="300" Width="300">
    <Canvas Name="canvas1">
        <TextBlock Name="tb2" Canvas.Left="50" TextWrapping="Wrap" Text="빠방" Canvas.Top="50"/>
        <Button Name="btn2" Content="클릭" Canvas.Left="160" Canvas.Top="50" Width="100" RenderTransformOrigin="0.322,-10.07" Height="70"/>
        <Image Name="Image2" Source="hand-man-person-black-and-white-alone-male-1143377-pxhere.com.jpg" Canvas.Left="64" Canvas.Top="139" Height="120" Width="150"/>
    </Canvas>
</Window>
 
cs


'프로그래밍' 카테고리의 다른 글

[WPF]grid를 이용한 로그인화면  (0) 2019.01.31
[WPF]DockPanel  (0) 2019.01.31
[WPF] Grid나누기, 버튼, 이미지, 텍스트블럭  (0) 2019.01.30
2_15. [c#]자동프로퍼티  (0) 2019.01.30
[WPF]트리구조 두가지  (0) 2019.01.28

댓글