티스토리 뷰
반응형
1. 여러 프레임웍에서 UI 스레드 동기화
public static void InvokeIfRequiredAsync(SynchronizationContext context, SendOrPostCallback callback, object state)
{
context.Post(callback, state);
}
#region PropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
StaticFunctions.InvokeIfRequiredAsync(System.Threading.SynchronizationContext.Current,
_ =>
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}, null);
}
}
#endregion
반응형
'Previous Platforms > ETC' 카테고리의 다른 글
Visual Studio 2012 Debuging tip (0) | 2012.10.26 |
---|---|
Windows 8 Store app registing (0) | 2012.10.26 |
Windows 8 .Net 4.5 tips (0) | 2012.09.08 |
Metro style app data save in app local folder - Windows 8 RP (0) | 2012.07.31 |
Windows 8 Metro app links (0) | 2012.06.12 |
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- visual studio 2019
- WPF
- Behavior
- Always Encrypted
- Bot Framework
- Visual Studio 2022
- Microsoft
- #prism
- C#
- ef core
- Build 2016
- windows 11
- #MVVM
- .net 5.0
- UWP
- uno platform
- kiosk
- Windows 10
- #uwp
- PRISM
- IOT
- dotNETconf
- uno-platform
- MVVM
- .net
- Cross-platform
- ComboBox
- XAML
- #Windows Template Studio
- LINQ
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함