102 lines
6.6 KiB
XML
102 lines
6.6 KiB
XML
<UserControl x:Class="BeWoLauncher.Components.ProfileEditView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:view="clr-namespace:BeWoLauncher.Components"
|
|
Height="300" Width="500">
|
|
<Grid Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<GroupBox Style="{StaticResource PopUpWindowStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0">
|
|
<Image Source="pack://application:,,,/Icons/ContactCardWebDisabled.png" RenderTransformOrigin="0.5,0.5" Width="Auto" Height="28" Margin="0,0,0,0">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
<TextBox Text="Profile verwalten" Margin="10,4,0,0" Background="{x:Null}" Foreground="{DynamicResource MainGroupBoxForegroundBrush}" FontSize="20" BorderBrush="{x:Null}" VerticalAlignment="Stretch" BorderThickness="0,0,0,0" Padding="0,0,0,0" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid x:Name="rootGrid" Grid.Row="1" >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0" Margin="5,10,5,5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label Content="Profilname:" Margin="0,3,0,0" />
|
|
<TextBox x:Name="profileNameTextBox" Grid.Column="1" Margin="0,3,0,0" />
|
|
|
|
<Label Content="Kundennummer:" Margin="0,3,0,0" Grid.Row="1" />
|
|
<TextBox x:Name="profileTenantBox" Grid.Row="1" Grid.Column="1" Margin="0,3,0,0" />
|
|
|
|
<Label Content="Server:" Grid.Row="2" Margin="0,3,0,0" />
|
|
<TextBox x:Name="profileServerTextBox" Grid.Column="1" Grid.Row="2" Margin="0,3,0,0" />
|
|
|
|
<Button Margin="0,3,0,0" Grid.Column="1" HorizontalAlignment="Left" Grid.Row="3" Content="Neues Profil hinzufügen" Click="ProfileAddClick" />
|
|
</Grid>
|
|
<Grid Grid.Row="1">
|
|
<ListView x:Name="listView" Margin="10">
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn Header="Profilname" Width="120" DisplayMemberBinding="{Binding Name}"/>
|
|
<GridViewColumn Header="Kundennummer" Width="120" DisplayMemberBinding="{Binding Tenant}"/>
|
|
<GridViewColumn Header="Server" Width="120" DisplayMemberBinding="{Binding Server}"/>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
</Grid>
|
|
<!-- <dxg:GridControl Grid.Row="1" Margin="5" ItemsSource="{Binding Profiles}" x:Name="profileGridControl" >
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn FieldName="Notice" Header="" FixedWidth="True" Width="24" ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button Content="r" FontFamily="Webdings" Tag="{Binding}" Click="btn_deleteProfileClick" Width="18" Height="18" VerticalAlignment="Center" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="Name" Header="Profilname" Width="70"/>
|
|
<dxg:GridColumn FieldName="Tenant" Header="Kundennummer" Width="50" />
|
|
<dxg:GridColumn FieldName="Server" Header="Server" Width="100" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView AutoWidth="true" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Cell" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl> -->
|
|
<Border Grid.Row="2" Grid.ColumnSpan="3" Height="40" Margin="0,10,0,0" VerticalAlignment="Stretch" Background="#FF000000">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#19000000" Offset="0" />
|
|
<GradientStop Color="#33FFFFFF" Offset="1" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
</Border>
|
|
<StackPanel Grid.ColumnSpan="3" Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" Height="Auto" Margin="5,10,0,0" HorizontalAlignment="Right">
|
|
<Button x:Name="btnSave" Content="Speichern und schließen" Margin="0,0,3,0" Command="ApplicationCommands.Save" Height="25" />
|
|
<Button x:Name="btnClose" Content="Abbrechen" Margin="0,0,3,0" Command="ApplicationCommands.Close" Height="25" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</UserControl>
|