mirror of
https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition.git
synced 2026-06-20 12:23:09 +00:00
9 lines
269 B
C#
9 lines
269 B
C#
using Microsoft.UI.Xaml.Controls;
|
|
|
|
namespace TemplateStudioSampleApp.Helpers;
|
|
|
|
public static class FrameExtensions
|
|
{
|
|
public static object? GetPageViewModel(this Frame frame) => frame?.Content?.GetType().GetProperty("ViewModel")?.GetValue(frame.Content, null);
|
|
}
|