728x90
반응형
728x170
▶ MainPage.xaml
<Page x:Class="TestProject.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<TextBlock
Margin="10"
FontSize="24"
TextWrapping="Wrap">
For a long time I used to go to bed early. Sometimes, when I had put out
my candle, my eyes would close so quickly that I had not even time to
say "I'm going to sleep." And half an hour later the thought that it was
time to go to sleep would awaken me; I would try to put away the book
which, I imagined, was still in my hands, and to blow out the light; I
had been thinking all the time, while I was asleep, of what I had just
been reading, but my thoughts had run into a channel of their own,
until I myself seemed actually to have become the subject of my book:
a church, a quartet, the rivalry between François I and Charles V. This
impression would persist for some moments after I was awake; it did not
disturb my mind, but it lay like scales upon my eyes and prevented them
from registering the fact that the candle was no longer burning. Then
it would begin to seem unintelligible, as the thoughts of a former
existence must be to a reincarnate spirit; the subject of my book would
separate itself from me, leaving me free to choose whether I would form
part of it or no; and at the same time my sight would return and I
would be astonished to find myself in a state of darkness, pleasant and
restful enough for the eyes, and even more, perhaps, for my mind, to
which it appeared incomprehensible, without a cause, a matter dark
indeed.
</TextBlock>
</Grid>
</Page>
728x90
▶ MainPage.xaml.cs
using Windows.UI.Xaml.Controls;
namespace TestProject
{
/// <summary>
/// 메인 페이지
/// </summary>
public sealed partial class MainPage : Page
{
//////////////////////////////////////////////////////////////////////////////////////////////////// Constructor
////////////////////////////////////////////////////////////////////////////////////////// Public
#region 생성자 - MainPage()
/// <summary>
/// 생성자
/// </summary>
public MainPage()
{
InitializeComponent();
}
#endregion
}
}
728x90
반응형
그리드형(광고전용)
'C# > UWP' 카테고리의 다른 글
[C#/UWP] BitmapImage 클래스 : UriSource 속성을 사용해 리소스 이미지 표시하기 (0) | 2019.01.27 |
---|---|
[C#/UWP] x:Name 속성 사용하기 (0) | 2019.01.27 |
[C#/UWP] MediaElement 클래스 사용하기 (0) | 2019.01.27 |
[C#/UWP] Grid 클래스 : 자식 엘리먼트 중첩시키기 (0) | 2019.01.27 |
[C#/UWP] DisplayInformation 클래스 : 디스플레이 정보 구하기 (0) | 2019.01.27 |
[C#/UWP] Application 클래스 : RequestedTheme 속성을 사용해 테마 설정하기 (0) | 2019.01.22 |
[C#/UWP] Image 클래스 : 리소스 이미지 사용하기 (0) | 2019.01.22 |
[C#/UWP] Image 클래스 : 웹 사이트 이미지 사용하기 (0) | 2019.01.22 |
[C#/UWP] Page 클래스 사용하기 (0) | 2019.01.22 |
[C#/UWP] ApplicationView 클래스 : PreferredLaunchViewSize 정적 속성과 TryResizeView 메소드를 사용해 메인 윈도우 크기 설정하기 (0) | 2019.01.22 |
댓글을 달아 주세요