Laservall_solidworks_inject/Windows/ItemsPropWindow.xaml

48 lines
1.9 KiB
XML

<Window x:Class="Laservall.Solidworks.Windows.ItemsPropWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:local="clr-namespace:Laservall.Solidworks.Windows"
mc:Ignorable="d"
Loaded="Window_Loaded"
Title="机加件列表" Height="450" Width="800">
<Window.Resources>
<DataTemplate x:Key="LoadingMask">
<Grid Background="#66424242">
<StackPanel
HorizontalAlignment="Center"
VerticalAlignment="Center"
Orientation="Vertical">
<TextBlock
HorizontalAlignment="Center"
FontSize="16"
Text="加载中..." />
<ProgressBar
Width="200"
Height="10"
IsIndeterminate="True" />
</StackPanel>
</Grid>
</DataTemplate>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ContentPresenter
x:Name="LoadingMask"
Grid.Row="0"
Grid.RowSpan="2"
Panel.ZIndex="99"
Content="{Binding}"
ContentTemplate="{StaticResource LoadingMask}" />
<StackPanel Orientation="Horizontal" Grid.Row="0">
<Button Content="搜索" Margin="10"/>
<TextBox Text="" Margin="10" MinWidth="200"/>
</StackPanel>
<DataGrid x:Name="propDataGrid" Grid.Row="1" Margin="10" />
</Grid>
</Window>