31 lines
1.9 KiB
XML
31 lines
1.9 KiB
XML
<UserControl x:Class="AuroraUIComponent.UserControls.UCProperty"
|
|
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:local="clr-namespace:AuroraUIComponent.UserControls"
|
|
xmlns:aurora="clr-namespace:Aurora.View;assembly=Aurora"
|
|
mc:Ignorable="d" x:Name="uc"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<aurora:SharedResourceDictionary Source="pack://application:,,,/AuroraUIComponent;component/Style/GroupBox.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<GroupBox Margin="0">
|
|
<GroupBox.Header>
|
|
<Grid>
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" FontWeight="Bold" FontSize="12" Text="{Binding Title, ElementName=uc}"
|
|
Foreground="{StaticResource MahApps.Brushes.ThemeForeground}" OverridesDefaultStyle="True"/>
|
|
<Button x:Name="ButtonSave" VerticalAlignment="Top" HorizontalAlignment="Right"
|
|
Command="{Binding CMD_Save, ElementName=uc}" Margin="0 0 0 0" Style="{StaticResource StSaveButton}"
|
|
Visibility="{Binding Path=IsEnabled, ElementName=uc, Converter={StaticResource deactiveVisibleInverter}}">
|
|
</Button>
|
|
</Grid>
|
|
</GroupBox.Header>
|
|
<aurora:PropertyGridEx SelectedObject="{Binding SelectedObject, ElementName=uc}" FontSize="{Binding GridFontSize, ElementName=uc}"/>
|
|
</GroupBox>
|
|
</UserControl>
|