mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-23 02:06:35 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<UserControl x:Class="Wpf.CartesianChart.StackedBar.StackedRowExample"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:wpf="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="300">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"></RowDefinition>
|
||||
<RowDefinition Height="Auto"></RowDefinition>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Button Grid.Row="1" Click="UpdateAllOnClick">
|
||||
Move All
|
||||
</Button>
|
||||
<wpf:CartesianChart Grid.Row="2" Series="{Binding SeriesCollection}" AxisX="{x:Static wpf:DefaultAxes.DefaultAxis}">
|
||||
<wpf:CartesianChart.AxisY>
|
||||
<wpf:Axis Labels="{Binding Labels}">
|
||||
<wpf:Axis.Separator>
|
||||
<!--step 1 forces the axis to display all labels, disabling it makes it invisible-->
|
||||
<wpf:Separator Step="1" IsEnabled="False"></wpf:Separator>
|
||||
</wpf:Axis.Separator>
|
||||
</wpf:Axis>
|
||||
</wpf:CartesianChart.AxisY>
|
||||
</wpf:CartesianChart>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user