티스토리 뷰
1. GetFocusedElement
Windows.UI.Xaml.Input.FocusManager.GetFocusedElement()
현재 화면에서 포커스를 받고 있는 엘리 먼트를 반환 한다.
2. Window.Current.Content
Windows.UI.Xaml.Window.Current.Content
여러가지 활용이 가능
Frame인 경우
var frame = Frame ?? Windows.UI.Xaml.Window.Current.Content as Windows.UI.Xaml.Controls.Frame;
var page = (Windows.UI.Xaml.Controls.Page)frame.Content;
현재 페이지를 알 수 있음
var result = frame .Navigate(navigationType, navigationParameter);
페이지 네비게이션을 시킬 수 있음
3. Window.Current.Bounds
Windows.UI.Xaml.Window.Current.Bounds;
현재 윈도우의 크기, 해상도를 알 수 있음
4. GetRuntimeProperty
오브젝트에서 특정 프로퍼티 값 축출
public T GetPropertyValue<T>(object source, string propertyName)
{
T returnValue = default(T);
var pinfo = source.GetType().GetRuntimeProperty(propertyName);
if (pinfo != null)
{
object[] indexArgs = {};
var result = pinfo.GetValue(source);
if (result != null)
{
returnValue = (T)result;
}
}
return returnValue;
}
'Previous Platforms > ETC' 카테고리의 다른 글
MTProto Mobile Protocol 번역 중 (2) | 2014.06.03 |
---|---|
Image Note (0) | 2014.05.12 |
Custom ConfirmBox create (0) | 2013.08.21 |
patterns & practices: Prism for the Windows Runtime (0) | 2013.07.10 |
Microsoft .Net Framework 4.5 Quickstart Cookbook Review (0) | 2013.07.05 |
- Total
- Today
- Yesterday
- .net 5.0
- dotNETconf
- ef core
- PRISM
- XAML
- kiosk
- #MVVM
- LINQ
- Build 2016
- #prism
- Microsoft
- .net
- MVVM
- windows 11
- #Windows Template Studio
- Cross-platform
- Bot Framework
- Windows 10
- uno platform
- ComboBox
- uno-platform
- Behavior
- UWP
- #uwp
- C#
- WPF
- Always Encrypted
- IOT
- visual studio 2019
- Visual Studio 2022
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |