Move *everything* from setting flyout content and the flyout icons to a UWP control and simplified creation of the wpf host via a NotificationFlyoutApplication where you only need to set the UWP flyout
This commit is contained in:
@@ -1,21 +1,25 @@
|
||||
<UserControl
|
||||
<controls:NotificationFlyout
|
||||
x:Class="NotificationFlyoutSample.Shell"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:winui="using:Microsoft.UI.Xaml.Controls">
|
||||
<StackPanel
|
||||
Width="330"
|
||||
Height="500"
|
||||
Margin="24">
|
||||
<ComboBox x:Name="Theme" SelectionChanged="Theme_SelectionChanged">
|
||||
<ComboBoxItem Content="Default" />
|
||||
<ComboBoxItem Content="Dark" />
|
||||
<ComboBoxItem Content="Light" />
|
||||
</ComboBox>
|
||||
<Button Margin="0,0,0,8" Content="Button" />
|
||||
<Slider Margin="0,0,0,8" />
|
||||
<TextBox Margin="0,0,0,8" />
|
||||
<ToggleButton Margin="0,0,0,8" />
|
||||
<CalendarView Margin="0,0,0,8" />
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
xmlns:controls="using:NotificationFlyout.Uwp.UI.Controls"
|
||||
xmlns:winui="using:Microsoft.UI.Xaml.Controls"
|
||||
LightIconSource="/Assets/Icon.ico">
|
||||
<controls:NotificationFlyout.Content>
|
||||
<StackPanel
|
||||
Width="330"
|
||||
Height="500"
|
||||
Margin="24">
|
||||
<ComboBox x:Name="Theme" SelectionChanged="Theme_SelectionChanged">
|
||||
<ComboBoxItem Content="Default" />
|
||||
<ComboBoxItem Content="Dark" />
|
||||
<ComboBoxItem Content="Light" />
|
||||
</ComboBox>
|
||||
<Button Margin="0,0,0,8" Content="Button" />
|
||||
<Slider Margin="0,0,0,8" />
|
||||
<TextBox Margin="0,0,0,8" />
|
||||
<ToggleButton Margin="0,0,0,8" />
|
||||
<CalendarView Margin="0,0,0,8" />
|
||||
</StackPanel>
|
||||
</controls:NotificationFlyout.Content>
|
||||
</controls:NotificationFlyout>
|
||||
|
||||
Reference in New Issue
Block a user