Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Controls:MetroWindow x:Class="scriptExecuterWPF.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:scriptExecuterWPF"
- xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
- xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
- mc:Ignorable="d"
- Title="scriptExecuter"
- Height="510" Width="800" ResizeMode="CanResizeWithGrip"
- GlowBrush="{DynamicResource AccentColorBrush}"
- WindowStartupLocation="CenterScreen">
- <!--Stackpanel mit settings button-->
- <Controls:MetroWindow.RightWindowCommands>
- <Controls:WindowCommands>
- <Button Click="SettingsOpen_Click">
- <StackPanel Orientation="Horizontal">
- <iconPacks:PackIconModern Width="24" Height="24" Kind="Database" />
- <TextBlock Margin="4 0 0 0" VerticalAlignment="Center" Text="settings" />
- </StackPanel>
- </Button>
- </Controls:WindowCommands>
- </Controls:MetroWindow.RightWindowCommands>
- <!--Flyout von settings button-->
- <Controls:MetroWindow.Flyouts>
- <Controls:FlyoutsControl>
- <Controls:Flyout x:Name="flyout_settings" Header="Database Connection" Position="Right" Width="400" Theme="Accent">
- <StackPanel>
- <Label Content="Server:" Margin="10 10 0 0"></Label>
- <TextBox Width="300" HorizontalAlignment="Left" Margin="15 0 0 0"></TextBox>
- <Label Content="User:" Margin="10 10 0 0"></Label>
- <TextBox Width="300" HorizontalAlignment="Left" Margin="15 0 0 0"></TextBox>
- <Label Content="Password:" Margin="10 10 0 0"></Label>
- <TextBox Width="300" HorizontalAlignment="Left" Margin="15 0 0 0"></TextBox>
- <Button Height="30" Width="100" Content="Connect" Margin="-265 30 0 0"></Button>
- </StackPanel>
- </Controls:Flyout>
- </Controls:FlyoutsControl>
- </Controls:MetroWindow.Flyouts>
- <!-- MainWindow Grid -->
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="400"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <!-- ListBox für Databases -->
- <ListBox Grid.Row="0" Grid.Column="0" Margin="15 40 10 0" SelectionMode="Multiple">
- <ListBoxItem> test1 </ListBoxItem>
- <ListBoxItem> test2 </ListBoxItem>
- <ListBoxItem> test3 </ListBoxItem>
- <ListBoxItem>test1</ListBoxItem>
- <ListBoxItem>test2</ListBoxItem>
- <ListBoxItem>test3</ListBoxItem>
- <ListBoxItem>test1</ListBoxItem>
- <ListBoxItem>test2</ListBoxItem>
- <ListBoxItem>test3</ListBoxItem>
- <ListBoxItem>test1</ListBoxItem>
- <ListBoxItem>test2</ListBoxItem>
- <ListBoxItem>test3</ListBoxItem>
- <ListBoxItem>test1</ListBoxItem>
- <ListBoxItem>test2</ListBoxItem>
- <ListBoxItem>test3</ListBoxItem>
- <ListBoxItem>test1</ListBoxItem>
- <ListBoxItem>test2</ListBoxItem>
- <ListBoxItem>test3</ListBoxItem>
- <ListBoxItem>test1</ListBoxItem>
- <ListBoxItem>test2</ListBoxItem>
- <ListBoxItem>test3</ListBoxItem>
- </ListBox>
- <Button Grid.Row="1" Grid.Column="1" Margin="450 15 20 15" Content="Execute"></Button>
- <Button Grid.Row="1" Grid.Column="1" Margin="320 15 150 15" Content="Select File"></Button>
- <Label Grid.Row="0" Grid.Column="1" Content="Query:" Margin="13 8 0 0"></Label>
- <TextBox Grid.Row="0" Grid.Column="1" Margin="20 30 20 20"></TextBox>
- </Grid>
- </Controls:MetroWindow>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement