You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.4 KiB
XML

<UserControl x:Class="StartServerWPF.Modules.MseedChart.Views.ChartStationDialog"
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:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:prism="http://prismlibrary.com/"
prism:ViewModelLocator.AutoWireViewModel="True"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<prism:Dialog.WindowStyle>
<Style TargetType="Window">
<Setter Property="Width" Value="800"/>
<Setter Property="Height" Value="500"/>
<Setter Property="WindowStyle" Value="ToolWindow"/>
<Setter Property="ResizeMode" Value="NoResize"/>
<Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterOwner"/>
</Style>
</prism:Dialog.WindowStyle>
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<!--<TextBlock Text="{Binding Title}"/>-->
<GroupBox Grid.Row="1">
<ListBox ItemsSource="{Binding StationsSource}">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel>
</WrapPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<Border CornerRadius="5" BorderThickness="1">
<Grid>
<CheckBox IsChecked="{Binding IsEnable}" Content="{Binding Name}"/>
</Grid>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</GroupBox>
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
<Button Content="确定" Command="{Binding SureCommand}" Margin="0,0,20,0"/>
<Button Content="取消" Command="{Binding CancelCommand}"/>
</StackPanel>
</Grid>
</UserControl>