-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
126 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<Controls:Flyout x:Class="MetroDemo.ExampleWindows.DynamicFlyout" | ||
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="http://metro.mahapps.com/winfx/xaml/controls" | ||
mc:Ignorable="d" | ||
Header="Dynamic Flyout" | ||
d:DesignHeight="300" d:DesignWidth="300"> | ||
<Grid Margin="10"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
<StackPanel> | ||
<TextBlock Grid.Row="0" | ||
Text="Something above the ScrollPanel" /> | ||
<TextBlock Grid.Row="0" | ||
Text="This Flyout animates its opacity when opening and closing."/> | ||
</StackPanel> | ||
<ScrollViewer Grid.Row="1" | ||
VerticalScrollBarVisibility="Auto"> | ||
<StackPanel Orientation="Vertical"> | ||
<TextBox x:Name="firstTB" Controls:TextboxHelper.Watermark="TextBox 01" /> | ||
<TextBox Margin="0,5,0,0" | ||
Controls:TextboxHelper.Watermark="TextBox 02" /> | ||
<TextBox Margin="0,5,0,0" | ||
Controls:TextboxHelper.Watermark="TextBox 03" /> | ||
<TextBox Margin="0,5,0,0" | ||
Controls:TextboxHelper.Watermark="TextBox 04" /> | ||
<TextBox Margin="0,5,0,0" | ||
Controls:TextboxHelper.Watermark="TextBox 05" /> | ||
<TextBox Margin="0,5,0,0" | ||
Controls:TextboxHelper.Watermark="TextBox 06" /> | ||
<TextBox Margin="0,5,0,0" | ||
Controls:TextboxHelper.Watermark="TextBox 07" /> | ||
<TextBox Margin="0,5,0,0" | ||
Controls:TextboxHelper.Watermark="TextBox 08" /> | ||
<TextBox Margin="0,5,0,0" | ||
Controls:TextboxHelper.Watermark="TextBox 09" /> | ||
<TextBox Margin="0,5,0,0" | ||
Controls:TextboxHelper.Watermark="TextBox 10" /> | ||
</StackPanel> | ||
</ScrollViewer> | ||
<UniformGrid Columns="2" | ||
Grid.Row="2" | ||
Margin="10"> | ||
<Button Style="{DynamicResource SquareButtonStyle}" | ||
Margin="10" | ||
Content="Create" /> | ||
<Button Style="{DynamicResource SquareButtonStyle}" | ||
Margin="10" | ||
Content="Cancel" /> | ||
</UniformGrid> | ||
</Grid> | ||
</Controls:Flyout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
|
||
namespace MetroDemo.ExampleWindows { | ||
/// <summary> | ||
/// Interaction logic for DynamicFlyout.xaml | ||
/// </summary> | ||
public partial class DynamicFlyout { | ||
public DynamicFlyout() { | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters