Inheritance: FrameworkTemplate, IControlTemplate
Exemplo n.º 1
0
        // *** Constructors ***

        public SettingsPaneHost()
        {
            string chromelessXaml = "<ControlTemplate xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"><ContentPresenter/></ControlTemplate>";
            _chromelessTemplate = (ControlTemplate)Windows.UI.Xaml.Markup.XamlReader.Load(chromelessXaml);

            base.BackClick += SettingsPaneHost_BackClick;
        }
Exemplo n.º 2
0
        protected override void OnItemsChanged(object e)
        {
            if (defaultTemplate == null)
                defaultTemplate = this.Template;

            this.Template = this.Items.Count > 0 ? defaultTemplate : this.EmptyTemplate;

            base.OnItemsChanged(e);
        }
Exemplo n.º 3
0
        public ExtendedListView()
        {
            this.EmptyString = Strings.ListBoxEmptyStringDefault;
            this.EmptyTemplate = (ControlTemplate)App.Current.Resources["ExtendedListViewEmptyTemplate"];

            this.IsItemClickEnabled = true;
            this.ItemClick += ExtendedListView_ItemClick;

            ScrollViewer.SetVerticalScrollBarVisibility(this, ScrollBarVisibility.Visible);
        }