AppNotificationProgressBar.SetTitle(String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
앱 알림 진행률 표시줄의 제목 텍스트를 설정합니다.
public:
virtual AppNotificationProgressBar ^ SetTitle(Platform::String ^ value) = SetTitle;
AppNotificationProgressBar SetTitle(winrt::hstring const& value);
public AppNotificationProgressBar SetTitle(string value);
function setTitle(value)
Public Function SetTitle (value As String) As AppNotificationProgressBar
매개 변수
- value
-
String
Platform::String
winrt::hstring
제목 텍스트가 포함된 문자열입니다.
반환
추가 메서드 호출을 연결할 수 있도록 AppNotificationProgressBar 인스턴스를 반환합니다.
예제
다음 예제에서는 앱 알림 진행률 표시줄의 Title 속성을 설정하는 방법을 보여 줍니다.
var notification = new AppNotificationBuilder()
.AddText("Downloading your weekly playlist...")
.AddProgressBar(new AppNotificationProgressBar()
.SetTitle("Progress bar title")
.SetValue(.5)
.SetStatus("Downloading...")
.SetValueStringOverride("1/2 files downloaded"))
.BuildNotification();
AppNotificationManager.Default.Show(notification);
결과 XML 페이로드:
<toast>
<visual>
<binding template='ToastGeneric'>
<text>Downloading your weekly playlist...</text>
<progress title='Progress bar title' status='Downloading...' value='0.5' valueStringOverride='1/2 files downloaded'/>
</binding>
</visual>
</toast>
설명
AppNotificationProgressBar.Title 속성을 사용하여 제목을 설정할 수도 있습니다.
AppNotificationProgressBar.BindTitle호출하여 데이터 바인딩을 사용하여 제목 텍스트를 설정할 수 있습니다. AppNotificationProgressData 개체를 AppNotification.Progress속성에 할당하여 바인딩된 상태 값을 업데이트합니다.
AppNotificationBuilder API를 사용하여 앱 알림에 대한 UI를 만드는 방법에 대한 지침은 앱 알림 콘텐츠참조하세요.
앱 알림에 대한 XML 스키마에 대한 참조 정보는 앱 알림 콘텐츠 스키마참조하세요.