Files
BeWoPlaner/BeWo/View/Controls/GoalRatingControl.xaml

40 lines
2.2 KiB
XML

<UserControl
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" Focusable="True"
xmlns:val="clr-namespace:BeWo.Validation"
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"
x:Class="BeWo.View.Controls.GoalRatingControl"
d:DesignHeight="200" d:DesignWidth="300"
mc:Ignorable="d">
<Grid Background="{DynamicResource ObjectEditBackgroundBrush}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<dxg:GridControl x:Name="DatagridRegions" Margin="10" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="7" >
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="Name" Header="Ziel" Width="200" ReadOnly="True" />
<dxg:GridColumn x:Name="ColumnRating" FieldName="GoalRating" Header="Bewertung" Width="200" />
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView AutoWidth="true" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Cell" CellValueChanged="TableView_CellValueChanged" />
</dxg:GridControl.View>
</dxg:GridControl>
<Button x:Name="ActionButton" Grid.Row="2" Grid.Column="2" Content="Übernehmen" Margin="3" Click="ActionButton_OnClick" Width="80"/>
<Button x:Name="CancelButton" Grid.Row="2" Grid.Column="3" Content="Abbrechen" Margin="3" Click="CancelButton_OnClick" Width="80"/>
</Grid>
</UserControl>