|
1 | 1 | <Window x:Name="ThisView" x:Class="FreePIE.GUI.Shells.Curves.CurveSettingsView" |
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | | - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:curves="clr-namespace:FreePIE.GUI.Views.Curves" |
4 | 4 | Title="CurveSettingsView" Background="{DynamicResource WindowBackgroundBrush}" SizeToContent="WidthAndHeight" MinHeight="200" MinWidth="200" |
5 | 5 | Width="{Binding ElementName=ThisView, Path=WindowWidth}" |
6 | 6 | Height="{Binding ElementName=ThisView, Path=WindowHeight}" |
7 | 7 | Icon="{StaticResource IconCurve}"> |
8 | 8 |
|
9 | | - <Grid> |
| 9 | + <Grid Margin="10"> |
10 | 10 | <Grid.RowDefinitions> |
11 | 11 | <RowDefinition Height="*"/> |
12 | 12 | <RowDefinition Height="Auto"/> |
13 | 13 | </Grid.RowDefinitions> |
14 | 14 | <ScrollViewer> |
15 | | - <ItemsControl x:Name="Curves" Grid.Row="0"></ItemsControl> |
| 15 | + <ItemsControl x:Name="Curves" Grid.Row="0"> |
| 16 | + <ItemsControl.ItemsPanel> |
| 17 | + <ItemsPanelTemplate> |
| 18 | + <WrapPanel /> |
| 19 | + </ItemsPanelTemplate> |
| 20 | + </ItemsControl.ItemsPanel> |
| 21 | + </ItemsControl> |
16 | 22 | </ScrollViewer> |
17 | | - <Button x:Name="AddCurve" Width="150" Grid.Row="1">Add new curve</Button> |
| 23 | + <StackPanel Orientation="Horizontal" Grid.Row="1"> |
| 24 | + <Button x:Name="AddCurve" Width="150" > |
| 25 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
| 26 | + <Path Stretch="Fill" Width="8" Height="8" Margin="5,0,5,0" |
| 27 | + Fill="White" |
| 28 | + Data="M4.1561281,2.2702953 L4.8524521,2.2702954 4.8509674,3.963097 5.8969377,3.9630803 5.8969378,5.0916036 4.8524628,5.1061913 4.8524521,6.7843885 4.1561281,6.7843887 4.1559771,5.0877741 3.1116421,5.0916036 3.1116421,3.9630803 4.1556735,3.9654722 4.1561281,2.2702953 z"/> |
| 29 | + <TextBlock> Add curve</TextBlock> |
| 30 | + </StackPanel> |
| 31 | + </Button> |
| 32 | + <Button x:Name="Save" Margin="5,0,0,0" Background="Green"> |
| 33 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
| 34 | + <Image Source="/Resources/save-16.png" Width="10"/> |
| 35 | + <TextBlock Margin="5,0,0,0">Save</TextBlock> |
| 36 | + </StackPanel> |
| 37 | + </Button> |
| 38 | + </StackPanel> |
18 | 39 | </Grid> |
| 40 | + |
19 | 41 | </Window> |
0 commit comments