123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <UserControl
- x:Class="ShakerApp.Views.PlotConfigView"
- xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="using:ShakerApp.ViewModels"
- d:DesignHeight="600"
- d:DesignWidth="750"
- x:DataType="vm:PlotConfigViewModel"
- DataContext="{Binding Source={x:Static vm:PlotConfigViewModel.Instance}}"
- mc:Ignorable="d">
- <Grid>
- <StackPanel IsVisible="{Binding !NoSeries}" Orientation="Vertical">
- <Grid
- Height="42"
- Background="#3FAAAAAA"
- ColumnDefinitions="200,150,200,*,80">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontWeight="Bold"
- Text="{DynamicResource PlotName}" />
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontWeight="Bold"
- Text="{DynamicResource PlotColor}" />
- <TextBlock
- Grid.Column="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontWeight="Bold"
- Text="{DynamicResource PlotLineStyle}" />
- <TextBlock
- Grid.Column="3"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontWeight="Bold"
- Text="{DynamicResource PlotMarkerType}" />
- <TextBlock
- Grid.Column="4"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontWeight="Bold"
- Text="{DynamicResource PlotStrokeThickness}" />
- </Grid>
- <ScrollViewer Height="450">
- <ItemsControl ItemsSource="{Binding SeriesConfigs}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid
- Height="42"
- x:DataType="vm:SeriesConfigViewModel"
- ColumnDefinitions="200,150,200,*,80">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding Name}" />
- <ColorPicker
- Grid.Column="1"
- Width="130"
- Margin="10,0,10,0"
- Color="{Binding Color}" />
- <ComboBox
- Grid.Column="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- DisplayMemberBinding="{Binding Key}"
- ItemsSource="{Binding LineStyle, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
- SelectedValue="{Binding LineStyle}"
- SelectedValueBinding="{Binding Value}" />
- <ComboBox
- Grid.Column="3"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- DisplayMemberBinding="{Binding Key}"
- ItemsSource="{Binding MarkerType, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
- SelectedValue="{Binding MarkerType}"
- SelectedValueBinding="{Binding Value}" />
- <NumericUpDown
- Grid.Column="4"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- Maximum="10"
- Minimum="1"
- Value="{Binding StrokeThickness}" />
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- </StackPanel>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="42"
- IsVisible="{Binding NoSeries}"
- Text="{DynamicResource NoSeries}" />
- </Grid>
- </UserControl>
|