|
10 | 10 | xmlns:c="clr-namespace:IntervalGraph.Infrastructure.Conveters.Converters" |
11 | 11 | xmlns:graph="clr-namespace:IntervalGraph.Models.Graph" |
12 | 12 | mc:Ignorable="d" |
13 | | - d:DesignHeight="450" d:DesignWidth="800" |
14 | | - Background="White"> |
| 13 | + d:DesignHeight="450" d:DesignWidth="800"> |
| 14 | + |
| 15 | + <UserControl.Resources> |
| 16 | + <Style x:Key="DefaultScrollViewerStyle" TargetType="ScrollViewer"/> |
| 17 | + </UserControl.Resources> |
15 | 18 |
|
16 | 19 | <Grid DataContext="{Binding RelativeSource={RelativeSource AncestorType=local:IntervalGraph, Mode=FindAncestor}}"> |
17 | 20 |
|
18 | 21 | <ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" |
19 | 22 | VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Visible" |
20 | 23 | DataContext="{Binding RelativeSource={RelativeSource AncestorType=local:IntervalGraph, Mode=FindAncestor}}" |
21 | | - BorderThickness="0"> |
| 24 | + BorderThickness="0" |
| 25 | + Style="{Binding ScrollViewerStyle, TargetNullValue={StaticResource DefaultScrollViewerStyle}}" |
| 26 | + PreviewMouseWheel="OnMouseWheel"> |
22 | 27 |
|
23 | 28 | <i:Interaction.Behaviors> |
24 | 29 | <b:BindableActualSizeBehavior ActualWidth="{Binding GraphWidth, Mode=OneWayToSource}"/> |
25 | 30 | </i:Interaction.Behaviors> |
26 | 31 |
|
| 32 | + |
| 33 | + |
27 | 34 | <Grid Width="{Binding ZoomedGraphWidth}" Background="Transparent"> |
28 | 35 |
|
29 | 36 | <Grid.RowDefinitions> |
|
111 | 118 | <DataTemplate> |
112 | 119 | <Path Stroke="{Binding StrokeBrush}" StrokeThickness="{Binding StrokeThickness}" StrokeDashArray="{Binding StrokeDashArray}" Fill="{Binding FillBrush}"> |
113 | 120 | <Path.Data> |
114 | | - <MultiBinding Converter="{cm:GraphIntervalToGeometry}"> |
| 121 | + <MultiBinding Converter="{cm:GraphIntervalToGeometryConverter}"> |
115 | 122 | <Binding/> |
116 | 123 | <Binding RelativeSource="{RelativeSource AncestorType=local:IntervalGraph, Mode=FindAncestor}" |
117 | 124 | Path="ColumnWidth"/> |
|
169 | 176 | VerticalAlignment="Center"> |
170 | 177 |
|
171 | 178 | <Path.Data> |
172 | | - <MultiBinding Converter="{cm:GraphIntervalToAxisCircle}"> |
| 179 | + <MultiBinding Converter="{cm:GraphIntervalToAxisCircleConverter}"> |
173 | 180 | <Binding/> |
174 | 181 | <Binding RelativeSource="{RelativeSource AncestorType=local:IntervalGraph, Mode=FindAncestor}" |
175 | 182 | Path="ColumnWidth"/> |
| 183 | + <Binding RelativeSource="{RelativeSource AncestorType=local:IntervalGraph, Mode=FindAncestor}" |
| 184 | + Path="DrawedMinValue"/> |
176 | 185 | <Binding RelativeSource="{RelativeSource AncestorType=local:IntervalGraph, Mode=FindAncestor}" |
177 | 186 | Path="IntAxis.CirclesRadius"/> |
178 | 187 | </MultiBinding> |
|
205 | 214 | <Canvas> |
206 | 215 |
|
207 | 216 | <TextBlock FontSize="{Binding RelativeSource={RelativeSource AncestorType=local:IntervalGraph, Mode=FindAncestor}, Path=IntAxis.DrawedFontSize}" |
| 217 | + FontFamily="{Binding RelativeSource={RelativeSource AncestorType=local:IntervalGraph, Mode=FindAncestor}, Path=IntAxis.FontFamily}" |
208 | 218 | Foreground="{Binding RelativeSource={RelativeSource AncestorType=local:IntervalGraph, Mode=FindAncestor}, Path=IntAxis.TextColorBrush}"> |
209 | 219 |
|
210 | 220 | <TextBlock.Text> |
|
0 commit comments