예제 #1
0
파일: CellControl.cs 프로젝트: happyyb/maui
        void UpdateContent(Cell newCell)
        {
            global::Windows.UI.Xaml.DataTemplate dt = GetTemplate(newCell);
            if (dt != _currentTemplate || Content == null)
            {
                _currentTemplate = dt;
                Content          = dt.LoadContent();
            }

            ((FrameworkElement)Content).DataContext = newCell;
        }
예제 #2
0
 public ShellFlyoutTemplateSelector()
 {
     BaseShellItemTemplate = (global::Windows.UI.Xaml.DataTemplate)global::Windows.UI.Xaml.Application.Current.Resources["ShellFlyoutBaseShellItemTemplate"];
     MenuItemTemplate      = (global::Windows.UI.Xaml.DataTemplate)global::Windows.UI.Xaml.Application.Current.Resources["ShellFlyoutMenuItemTemplate"];
     SeperatorTemplate     = (global::Windows.UI.Xaml.DataTemplate)global::Windows.UI.Xaml.Application.Current.Resources["ShellFlyoutSeperatorTemplate"];
 }