updated avalonia

This commit is contained in:
Holger Börchers
2023-07-31 10:53:45 +02:00
parent 6970ec8f09
commit a8f68d6ae7
5 changed files with 55 additions and 32 deletions

View File

@ -1,28 +1,45 @@
<Window 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:kMeansGui="clr-namespace:KMeansGui"
xmlns:avalonia="http://oxyplot.org/avalonia"
x:Name="LayoutRoot"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="KMeansGui.ShellView"
Title="KMeansGui">
<Window
x:Class="KMeansGui.ShellView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:control="clr-namespace:ScottPlot.Control;assembly=ScottPlot"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:kMeansGui="clr-namespace:KMeansGui"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:scottPlot="clr-namespace:ScottPlot.Avalonia;assembly=ScottPlot.Avalonia"
x:Name="LayoutRoot"
Title="KMeansGui"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Window.DataContext>
<kMeansGui:ShellViewModel />
</Window.DataContext>
<Grid ColumnDefinitions="*,*">
<StackPanel Grid.Row="0" Grid.Column="0" Spacing="10" Margin="10">
<Button HorizontalAlignment="Stretch" Command="{Binding OpenCsvFileAsync}" Content="Load CSV file"
CommandParameter="{Binding ElementName=LayoutRoot}" HorizontalContentAlignment="Center" />
<TextBox UseFloatingWatermark="True" Watermark="Count of centroids" Text="{Binding CountOfCentroids}" />
<StackPanel
Grid.Row="0"
Grid.Column="0"
Margin="10"
Spacing="10">
<Button
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
Command="{Binding OpenCsvFileAsync}"
CommandParameter="{Binding ElementName=LayoutRoot}"
Content="Load CSV file" />
<TextBox
Text="{Binding CountOfCentroids}"
UseFloatingWatermark="True"
Watermark="Count of centroids" />
</StackPanel>
<avalonia:Plot Grid.Column="1"
<scottPlot:AvaPlot Name="AvaPlot1" Grid.Column="1" />
<!--<avalonia:Plot Grid.Column="1"
PlotMargins="50 0 0 0"
PlotAreaBorderColor="#999999">
<avalonia:Plot.Series>
<avalonia:ScatterSeries Items="{Binding Points}" DataFieldX="X" DataFieldY="Y" />
</avalonia:Plot.Series>
</avalonia:Plot>
</avalonia:Plot>-->
</Grid>
</Window>