<UserControl x:Class="BeWo.View.Controls.NewsItemEditControl"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:localViewModel="clr-namespace:BeWo.ViewModel"
             xmlns:val="clr-namespace:BeWo.Validation"
             xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
             xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
             xmlns:search="clr-namespace:BeWo.View.Search">

	<Grid x:Name="RootGrid" Background="{StaticResource ObjectEditBackgroundBrush}" >
		<Grid Margin="5">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>
			<Label Grid.Column="0" Grid.Row="0">Datum</Label>
			<dxe:DateEdit MaskType="DateTimeAdvancingCaret" Margin="3" Height="23" Width="100" Grid.Column="1" Grid.Row="0"
						  HorizontalAlignment="Left"
						  EditValue="{val:ValidationBinding Path=PublishDate, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
			
			<Label Grid.Column="0" Grid.Row="1">Titel</Label>
			<TextBox x:Name="TextBoxTitle" Grid.Column="1" Grid.Row="1" Margin="3" Height="23" Text="{val:ValidationBinding Path=Title, UpdateSourceTrigger=PropertyChanged}" />
			

			<!--<Label Grid.Column="0" Grid.Row="1">Nur für Team</Label>
			<uc:PopUpEdit IsReadOnly="True"
							  x:Name="popupedit_TeamSearch"
							  Grid.Column="1" Margin="3" Height="23" Grid.Row="1"
							  DeleteButtonVisibility="Visible"
							  DeleteClick="Popupedit_TeamSearch_OnDeleteClick"
							  PopUpClick="popupedit_TeamSearch_PopUpClick" />-->
			<!--<Popup Margin="10" x:Name="popup_Team" StaysOpen="False" Placement="MousePoint" Width="400" Grid.Row="2" Height="400" Grid.Column="1" >
				<search:TeamSearchView ItemSelected="TeamSearchView_TeamSelected" x:Name="teamSearchView" />
			</Popup>-->


			<Label Grid.Row="2">Text</Label>
			<TextBox Grid.Column="1" Grid.Row="2" Margin="3" AcceptsReturn="True" Grid.ColumnSpan="3" Text="{val:ValidationBinding Path=Text, UpdateSourceTrigger=PropertyChanged}" />

			<UniformGrid Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="4" Columns="2" Rows="1" HorizontalAlignment="Right">
				<Button Margin="3" Click="button_ok_Click" x:Name="OKButton" Content="OK" Height="25" Width="80" />
				<Button Margin="3" Click="button_cancel_Click" x:Name="CancelButton" Content="Abbrechen" Height="25" Width="80" />
			</UniformGrid>
		</Grid>
	</Grid>
</UserControl>