|
15 | 15 | <x:Type Type="ff4:FacingDirection"/> |
16 | 16 | </ObjectDataProvider.MethodParameters> |
17 | 17 | </ObjectDataProvider> |
| 18 | + <local:HexValueConverter x:Key="HexValueConverter"/> |
18 | 19 | <local:WorldMapTriggerDataTemplateSelector x:Key="WorldMapTriggerDataTemplateSelector"/> |
19 | 20 | <DataTemplate x:Key="WorldMapTeleportTemplate" DataType="{x:Type ff4:WorldMapTeleport}"> |
20 | 21 | <StackPanel Orientation="Horizontal"> |
21 | | - <Label>Coords:</Label> |
22 | | - <TextBox Text="{Binding X}"/> |
23 | | - <TextBox Text="{Binding Y}"/> |
24 | | - <Label>Map:</Label> |
25 | | - <TextBox Text="{Binding DestinationMap}"/> |
26 | | - <Label>Dest:</Label> |
27 | | - <TextBox Text="{Binding DestinationX}"/> |
28 | | - <TextBox Text="{Binding DestinationY}"/> |
29 | | - <Label>Facing:</Label> |
30 | | - <ComboBox SelectedValue="{Binding FacingDirection}" ItemsSource="{Binding Source={StaticResource facingDirection}}"></ComboBox> |
| 22 | + <Label Margin="20,0,0,0">Coords:</Label> |
| 23 | + <TextBox Width="24" Text="{Binding X, Converter={StaticResource HexValueConverter}}"/> |
| 24 | + <TextBox Width="24" Text="{Binding Y, Converter={StaticResource HexValueConverter}}"/> |
| 25 | + <Label Margin="20,0,0,0">Map:</Label> |
| 26 | + <TextBox Width="24" Text="{Binding DestinationMap, Converter={StaticResource HexValueConverter}}"/> |
| 27 | + <Label Margin="20,0,0,0">Dest:</Label> |
| 28 | + <TextBox Width="24" Text="{Binding DestinationX, Converter={StaticResource HexValueConverter}}"/> |
| 29 | + <TextBox Width="24" Text="{Binding DestinationY, Converter={StaticResource HexValueConverter}}"/> |
| 30 | + <Label Margin="20,0,0,0">Facing:</Label> |
| 31 | + <ComboBox Width="60" SelectedValue="{Binding FacingDirection}" ItemsSource="{Binding Source={StaticResource facingDirection}}"></ComboBox> |
31 | 32 | </StackPanel> |
32 | 33 | </DataTemplate> |
33 | 34 | <DataTemplate x:Key="WorldMapEventTemplate" DataType="{x:Type ff4:WorldMapEvent}"> |
34 | 35 | <StackPanel Orientation="Horizontal"> |
35 | | - <Label>Coords:</Label> |
36 | | - <TextBox Text="{Binding X}"/> |
37 | | - <TextBox Text="{Binding Y}"/> |
38 | | - <Label>Event Call:</Label> |
39 | | - <TextBox Text="{Binding EventCall}"/> |
| 36 | + <Label Margin="20,0,0,0">Coords:</Label> |
| 37 | + <TextBox Width="24" Text="{Binding X, Converter={StaticResource HexValueConverter}}"/> |
| 38 | + <TextBox Width="24" Text="{Binding Y, Converter={StaticResource HexValueConverter}}"/> |
| 39 | + <Label Margin="20,0,0,0">Event Call:</Label> |
| 40 | + <TextBox Width="24" Text="{Binding EventCall, Converter={StaticResource HexValueConverter}}"/> |
40 | 41 | </StackPanel> |
41 | 42 | </DataTemplate> |
| 43 | + <ControlTemplate x:Key="NoScroll"> |
| 44 | + <ItemsPresenter></ItemsPresenter> |
| 45 | + </ControlTemplate> |
42 | 46 | </Window.Resources> |
43 | 47 | <ScrollViewer> |
44 | 48 | <StackPanel VerticalAlignment="Top"> |
45 | 49 | <Label Margin="10,15,0,0">Overworld</Label> |
46 | | - <ListView x:Name="OverworldListView" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
| 50 | + <ListView x:Name="OverworldListView" Template="{StaticResource NoScroll}" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
47 | 51 | <Label Margin="10,15,0,0">Underworld</Label> |
48 | | - <ListView x:Name="UnderworldListView" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
| 52 | + <ListView x:Name="UnderworldListView" Template="{StaticResource NoScroll}" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
49 | 53 | <Label Margin="10,15,0,0">Moon</Label> |
50 | | - <ListView x:Name="MoonListView" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
| 54 | + <ListView x:Name="MoonListView" Template="{StaticResource NoScroll}" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
51 | 55 | </StackPanel> |
52 | 56 | </ScrollViewer> |
53 | 57 | </Window> |
0 commit comments