private static async void Setup(Flyout m)
        {
            if (DesignMode.DesignModeEnabled)
            {
                return;
            }

            var s = m.GetValue(ItemsSourceProperty);

            if (s == null)
            {
                return;
            }

            var t = GetItemTemplate(m);

            if (t == null)
            {
                return;
            }

            var c = new ItemsControl
            {
                ItemsSource  = s,
                ItemTemplate = t
            };

            await m.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => m.Content = c);
        }
Exemple #2
0
 public static Button GetCloseButton(Flyout flyout) => (Button)flyout.GetValue(CloseButtonProperty);