source: trunk/CrypPlugins/P2PEditor/GUI/P2PEditorPresentation.xaml @ 1619

Last change on this file since 1619 was 1619, checked in by Paul Lelgemann, 12 years ago

+ P2PEditor: new tab, which "invites" to connect to the network

File size: 1.6 KB
Line 
1<GUI:P2PUserControl x:Class="Cryptool.P2PEditor.GUI.P2PEditorPresentation" 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:controls="clr-namespace:Cryptool.P2PEditor.GUI.Controls" xmlns:GUI="clr-namespace:Cryptool.P2PEditor.GUI" xmlns:Converters="clr-namespace:Cryptool.P2PEditor.Converters" mc:Ignorable="d" d:DesignHeight="278" d:DesignWidth="656" x:Name="P2PEditorControl">
2        <GUI:P2PUserControl.Resources>
3        <Converters:ConnectivityToVisibilityConverter x:Key="ConnectivityToVisibilityConverter" />
4        </GUI:P2PUserControl.Resources>
5        <Grid>
6                <TabControl TabStripPlacement="Top" Name="JobTabControl">
7            <TabItem Header="Active jobs" Name="ActiveJobsTab" IsEnabled="{Binding IsP2PConnected, ElementName=P2PEditorControl}">
8                <controls:JobDisplay x:Name="ActiveJobsControl" Jobs="{Binding Jobs, ElementName=P2PEditorControl}" />
9                        </TabItem>
10            <TabItem Header="New job" Name="JobCreationTab" IsEnabled="{Binding IsP2PConnected, ElementName=P2PEditorControl}">
11                                <controls:JobCreation />
12                        </TabItem>
13            <TabItem Header="Connect" Name="ConnectTab" Visibility="{Binding IsP2PConnected, ElementName=P2PEditorControl, Converter={StaticResource ConnectivityToVisibilityConverter}}">
14                <controls:ConnectTab IsP2PConnecting="{Binding IsP2PConnecting, ElementName=P2PEditorControl}" />
15            </TabItem>
16        </TabControl>
17        </Grid>
18</GUI:P2PUserControl>
Note: See TracBrowser for help on using the repository browser.