~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/DisplayBindings/Data/ICSharpCode.Data.EDMDesigner.Core.UI/Windows/AddAssociationWindow.xaml

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<Window x:Class="ICSharpCode.Data.EDMDesigner.Core.UI.Windows.AddAssociationWindow"
 
2
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 
3
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 
4
    xmlns:localControlsCSDLTypeAddPropertyWindows="clr-namespace:ICSharpCode.Data.EDMDesigner.Core.UI.Windows"
 
5
    Title="{x:Static localControlsCSDLTypeAddPropertyWindows:AddAssociationWindow.WindowTitle}" 
 
6
    Width="600" 
 
7
    Height="240" 
 
8
    ResizeMode="NoResize"   
 
9
    WindowStartupLocation="CenterOwner"
 
10
    Loaded="Window_Loaded">
 
11
 
 
12
    <Grid Margin="5,0,5,5">
 
13
        <Grid.RowDefinitions>
 
14
            <RowDefinition Height="Auto" />
 
15
            <RowDefinition Height="*" />
 
16
            <RowDefinition Height="Auto" />
 
17
        </Grid.RowDefinitions>
 
18
        <StackPanel Margin="0,5,0,5" Orientation="Horizontal">
 
19
            <TextBlock Text="{x:Static localControlsCSDLTypeAddPropertyWindows:AddAssociationWindow.AssociationNameTextBlockText}" Margin="0,0,10,0"  VerticalAlignment="Center" />
 
20
            <TextBox x:Name="associationNameTextBox" Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type localControlsCSDLTypeAddPropertyWindows:AddAssociationWindow}}, Path=AssociationName}" Height="25" Width="534" />
 
21
        </StackPanel>
 
22
        <Grid Grid.Row="1">
 
23
            <Grid.ColumnDefinitions>
 
24
                <ColumnDefinition Width="*" />
 
25
                <ColumnDefinition Width="*" />
 
26
            </Grid.ColumnDefinitions>
 
27
            <localControlsCSDLTypeAddPropertyWindows:AddAssociationEnd x:Name="navigationProperty1" Grid.Column="0" PropertyChanged="NavigationProperty_PropertyChanged" />
 
28
            <localControlsCSDLTypeAddPropertyWindows:AddAssociationEnd x:Name="navigationProperty2" Grid.Column="1" PropertyChanged="NavigationProperty_PropertyChanged" />
 
29
        </Grid>
 
30
        <StackPanel Grid.Row="2" HorizontalAlignment="Right" Orientation="Horizontal" Margin="5,5,5,5">
 
31
            <Button Width="80" Height="25" Margin="0,0,5,0" Content="{x:Static localControlsCSDLTypeAddPropertyWindows:AddAssociationWindow.CancelButtonText}" IsCancel="True" Click="CancelButton_Click" />
 
32
            <Button Width="80" Height="25" Content="{x:Static localControlsCSDLTypeAddPropertyWindows:AddAssociationWindow.OkButtonText}" IsDefault="True" Click="OkButton_Click" IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type localControlsCSDLTypeAddPropertyWindows:AddAssociationWindow}}, Path=AllowOk}" />
 
33
        </StackPanel>
 
34
    </Grid>
 
35
</Window>