FlowDirection must be LeftToRight

This commit is contained in:
ClemensFischer 2024-09-03 08:27:56 +02:00
parent 2a0f363377
commit 1f8f35d8b5
3 changed files with 3 additions and 0 deletions

View file

@ -4,6 +4,7 @@
xmlns:map="clr-namespace:MapControl"> xmlns:map="clr-namespace:MapControl">
<ControlTheme TargetType="map:MapBase" x:Key="{x:Type map:MapBase}"> <ControlTheme TargetType="map:MapBase" x:Key="{x:Type map:MapBase}">
<Setter Property="FlowDirection" Value="LeftToRight"/>
<Setter Property="Foreground" Value="Black"/> <Setter Property="Foreground" Value="Black"/>
</ControlTheme> </ControlTheme>

View file

@ -4,6 +4,7 @@
xmlns:map="clr-namespace:MapControl"> xmlns:map="clr-namespace:MapControl">
<Style TargetType="map:MapBase"> <Style TargetType="map:MapBase">
<Setter Property="FlowDirection" Value="LeftToRight"/>
<Setter Property="Foreground" Value="Black"/> <Setter Property="Foreground" Value="Black"/>
</Style> </Style>

View file

@ -79,6 +79,7 @@ namespace MapControl
// //
var style = new Style(typeof(MapBase)); var style = new Style(typeof(MapBase));
style.Setters.Add(new Setter(BackgroundProperty, new SolidColorBrush(Colors.White))); style.Setters.Add(new Setter(BackgroundProperty, new SolidColorBrush(Colors.White)));
style.Setters.Add(new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
Style = style; Style = style;
SizeChanged += OnSizeChanged; SizeChanged += OnSizeChanged;