/// <summary> /// Updates the UIElement static cache containing System DPI value /// </summary> /// <param name="systemDpiScale">Updated system DPI scale value</param> internal static void UpdateUIElementCacheForSystemDpi(DpiScale2 systemDpiScale) { SystemDpiHelper.UpdateUIElementCacheForSystemDpi(systemDpiScale); }
/// <summary> /// Gets the System DPI /// </summary> /// <returns>The system DPI</returns> /// <remarks> /// If the system DPI cannot be obtained directly, then /// it falls back to obtaining the system DPI indirectly /// by querying through the desktop. /// /// If querying via the desktop fails for some reason, then /// it returns null. /// </remarks> internal static DpiScale2 GetSystemDpi() { return(SystemDpiHelper.GetSystemDpi()); }
/// <summary> /// Gets the System DPI from the values stored in the UIElement static cache /// </summary> /// <returns>The system DPI value</returns> internal static DpiScale2 GetSystemDpiFromUIElementCache() { return(SystemDpiHelper.GetSystemDpiFromUIElementCache()); }