Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.17 KB | None | 0 0
  1. <Controls:MetroWindow x:Class="scriptExecuterWPF.MainWindow"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5.        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6.        xmlns:local="clr-namespace:scriptExecuterWPF"
  7.        xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
  8.        xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
  9.        mc:Ignorable="d"
  10.        Title="scriptExecuter"
  11.        Height="510" Width="800" ResizeMode="CanResizeWithGrip"
  12.        GlowBrush="{DynamicResource AccentColorBrush}"
  13.        WindowStartupLocation="CenterScreen">
  14.  
  15.     <!--Stackpanel mit settings button-->
  16.     <Controls:MetroWindow.RightWindowCommands>
  17.         <Controls:WindowCommands>
  18.             <Button Click="SettingsOpen_Click">
  19.                 <StackPanel Orientation="Horizontal">
  20.                     <iconPacks:PackIconModern Width="24" Height="24" Kind="Database" />
  21.                     <TextBlock Margin="4 0 0 0" VerticalAlignment="Center" Text="settings" />
  22.                 </StackPanel>
  23.             </Button>
  24.         </Controls:WindowCommands>
  25.     </Controls:MetroWindow.RightWindowCommands>
  26.    
  27.     <!--Flyout von settings button-->
  28.     <Controls:MetroWindow.Flyouts>
  29.         <Controls:FlyoutsControl>
  30.             <Controls:Flyout x:Name="flyout_settings" Header="Database Connection" Position="Right" Width="400" Theme="Accent">
  31.  
  32.  
  33.                 <StackPanel>
  34.                     <Label Content="Server:" Margin="10 10 0 0"></Label>
  35.                     <TextBox Width="300" HorizontalAlignment="Left" Margin="15 0 0 0"></TextBox>
  36.  
  37.                     <Label Content="User:" Margin="10 10 0 0"></Label>
  38.                     <TextBox Width="300" HorizontalAlignment="Left" Margin="15 0 0 0"></TextBox>
  39.  
  40.                     <Label Content="Password:" Margin="10 10 0 0"></Label>
  41.                     <TextBox Width="300" HorizontalAlignment="Left" Margin="15 0 0 0"></TextBox>
  42.  
  43.                     <Button Height="30" Width="100" Content="Connect" Margin="-265 30 0 0"></Button>
  44.                 </StackPanel>
  45.  
  46.             </Controls:Flyout>
  47.         </Controls:FlyoutsControl>
  48.     </Controls:MetroWindow.Flyouts>
  49.    
  50.    
  51.    
  52.        
  53.    
  54.     <!-- MainWindow Grid -->
  55.     <Grid>
  56.         <Grid.RowDefinitions>
  57.             <RowDefinition Height="400"/>
  58.             <RowDefinition/>
  59.         </Grid.RowDefinitions>
  60.         <Grid.ColumnDefinitions>
  61.             <ColumnDefinition Width="200"/>
  62.             <ColumnDefinition/>
  63.         </Grid.ColumnDefinitions>
  64.  
  65.         <!-- ListBox für Databases -->
  66.         <ListBox Grid.Row="0" Grid.Column="0" Margin="15 40 10 0" SelectionMode="Multiple">
  67.             <ListBoxItem> test1 </ListBoxItem>
  68.             <ListBoxItem> test2 </ListBoxItem>
  69.             <ListBoxItem> test3 </ListBoxItem>
  70.             <ListBoxItem>test1</ListBoxItem>
  71.             <ListBoxItem>test2</ListBoxItem>
  72.             <ListBoxItem>test3</ListBoxItem>
  73.             <ListBoxItem>test1</ListBoxItem>
  74.             <ListBoxItem>test2</ListBoxItem>
  75.             <ListBoxItem>test3</ListBoxItem>
  76.             <ListBoxItem>test1</ListBoxItem>
  77.             <ListBoxItem>test2</ListBoxItem>
  78.             <ListBoxItem>test3</ListBoxItem>
  79.             <ListBoxItem>test1</ListBoxItem>
  80.             <ListBoxItem>test2</ListBoxItem>
  81.             <ListBoxItem>test3</ListBoxItem>
  82.             <ListBoxItem>test1</ListBoxItem>
  83.             <ListBoxItem>test2</ListBoxItem>
  84.             <ListBoxItem>test3</ListBoxItem>
  85.             <ListBoxItem>test1</ListBoxItem>
  86.             <ListBoxItem>test2</ListBoxItem>
  87.             <ListBoxItem>test3</ListBoxItem>
  88.         </ListBox>
  89.         <Button Grid.Row="1" Grid.Column="1" Margin="450 15 20 15"  Content="Execute"></Button>
  90.         <Button Grid.Row="1" Grid.Column="1" Margin="320 15 150 15"  Content="Select File"></Button>
  91.         <Label Grid.Row="0" Grid.Column="1" Content="Query:" Margin="13 8 0 0"></Label>
  92.         <TextBox Grid.Row="0" Grid.Column="1" Margin="20 30 20 20"></TextBox>
  93.     </Grid>
  94.  
  95.  
  96. </Controls:MetroWindow>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement