C#/WPF
[WPF] 디스플레이 등록 정보 UI 만들기
suniverse
2023. 7. 18. 07:59
<Window x:Class="WpfApp1.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:WpfApp1"
mc:Ignorable="d"
Title="MainWindow"
SizeToContent="WidthAndHeight"
ShowInTaskbar="True"
WindowStyle="ThreeDBorderWindow"
ResizeMode="NoResize"
Background="#FFDDDDDD">
<Grid Height="400" Width="450">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<TabControl Grid.Row="0" Margin="10">
<TabItem Header="테마">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="24"/>
<RowDefinition Height="24"/>
<RowDefinition Height="24"/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" VerticalAlignment="Top" TextWrapping="Wrap" Text="미리 정의된 백그라운드 및 소리 그룹, 아이콘 및 기타 요소인 테마를 사용하여 컴퓨터를 사용자가 원하는 스타일로 꾸밀 수 있습니다."/>
<TextBlock Grid.Row="1" VerticalAlignment="Center" Text="테마(T)"/>
<StackPanel Grid.Row="2" Orientation="Horizontal">
<ComboBox Width="200" SelectedIndex="0">
<ComboBoxItem>Windows 10 (수정됨)</ComboBoxItem>
</ComboBox>
<Button Width="160" Margin="5, 0, 0, 0" Content="다른 이름으로 저장(S)..."/>
<Button Width="50" Margin="5, 0, 0, 0" Content="삭제(D)" IsEnabled="False"/>
</StackPanel>
<TextBlock Grid.Row="3" VerticalAlignment="Center" Text="보기:"/>
<Image Grid.Row="4" Source="/Resources/a.JPG"/>
</Grid>
</TabItem>
<TabItem Header="바탕 화면"></TabItem>
<TabItem Header="화면 보호기"></TabItem>
<TabItem Header="화면 배색"></TabItem>
<TabItem Header="설정"></TabItem>
</TabControl>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Width="80" Margin="4" Content="확인"/>
<Button Width="80" Margin="4" Content="취소"/>
<Button Width="80" Margin="4" Content="적용(A)" IsEnabled="False"/>
</StackPanel>
</Grid>
</Window>