Skip to content

Commit

Permalink
chore: Adjust more xamlroot uses
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored May 16, 2024
1 parent 0c0d311 commit 458f5b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private static void OnVisibilityChanged(DependencyObject d, DependencyPropertyCh
private void OnXamlRootChanged(XamlRoot xamlRoot = null, XamlRootChangedEventArgs e = null)
{
var root = xamlRoot ?? XamlRoot;
Dpi = root.RasterizationScale;
Dpi = root?.RasterizationScale ?? 1.0;
Invalidate();
}
#else
Expand Down

0 comments on commit 458f5b7

Please sign in to comment.