packages/MaterialDesignThemes.2.5.1/src/net45/ComboBoxPopup.cs
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
namespace MaterialDesignThemes.Wpf
{
public enum ComboBoxPopupPlacement
{
Undefined,
Down,
Up,
Classic
}
public class ComboBoxPopup : Popup
{
#region UpContentTemplate property
public static readonly DependencyProperty UpContentTemplateProperty
= DependencyProperty.Register(nameof(UpContentTemplate),
typeof(ControlTemplate),
typeof(ComboBoxPopup),
new UIPropertyMetadata(null, CreateTemplatePropertyChangedCallback(ComboBoxPopupPlacement.Classic)));
public ControlTemplate UpContentTemplate
{
get { return (ControlTemplate)GetValue(UpContentTemplateProperty); }
set { SetValue(UpContentTemplateProperty, value); }
}
#endregion
#region DownContentTemplate region
public static readonly DependencyProperty DownContentTemplateProperty
= DependencyProperty.Register(nameof(DownContentTemplate),
typeof(ControlTemplate),
typeof(ComboBoxPopup),
new UIPropertyMetadata(null, CreateTemplatePropertyChangedCallback(ComboBoxPopupPlacement.Down)));
public ControlTemplate DownContentTemplate
{
get { return (ControlTemplate)GetValue(DownContentTemplateProperty); }
set { SetValue(DownContentTemplateProperty, value); }
}
#endregion
#region ClassicContentTemplate property
public static readonly DependencyProperty ClassicContentTemplateProperty
= DependencyProperty.Register(nameof(ClassicContentTemplate),
typeof(ControlTemplate),
typeof(ComboBoxPopup),
new UIPropertyMetadata(null, CreateTemplatePropertyChangedCallback(ComboBoxPopupPlacement.Up)));
后面还有 328 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。