mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Set EdgeMode/BorderMode globally
This commit is contained in:
parent
bab3762a19
commit
9a59b9b7cd
3 changed files with 12 additions and 8 deletions
|
|
@ -4,12 +4,16 @@
|
|||
|
||||
#if UWP
|
||||
using Windows.UI;
|
||||
using Windows.UI.Composition;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Hosting;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Media.Animation;
|
||||
#else
|
||||
using Microsoft.UI;
|
||||
using Microsoft.UI.Composition;
|
||||
using Microsoft.UI.Xaml;
|
||||
using Microsoft.UI.Xaml.Hosting;
|
||||
using Microsoft.UI.Xaml.Media;
|
||||
using Microsoft.UI.Xaml.Media.Animation;
|
||||
#endif
|
||||
|
|
@ -85,6 +89,8 @@ namespace MapControl
|
|||
FlowDirection = FlowDirection.LeftToRight;
|
||||
|
||||
SizeChanged += OnSizeChanged;
|
||||
|
||||
ElementCompositionPreview.GetElementVisual(this).BorderMode = CompositionBorderMode.Hard;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue