47 lines
2.2 KiB
XML
47 lines
2.2 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:enictrl="clr-namespace:ENI2.Controls"
|
|
xmlns:local="clr-namespace:ENI2">
|
|
|
|
|
|
<Style TargetType="{x:Type enictrl:ENIDataGrid}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type enictrl:ENIDataGrid}">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type enictrl:EditWindowBase}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type enictrl:EditWindowBase}">
|
|
<!--Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
/-->
|
|
<Grid Background="{TemplateBinding Background}" Margin="2">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="30" />
|
|
</Grid.RowDefinitions>
|
|
<!-- This ContentPresenter automatically binds to the Content of the Window -->
|
|
<ContentPresenter />
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="5" HorizontalAlignment="Right">
|
|
<Button Width="80" Content="OK" IsDefault="True" Name="buttonOK" Margin="0,0,10,0" />
|
|
<Button Width="80" Content="Cancel" IsCancel="True" Name="buttonCancel" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|