本文共 4396 字,大约阅读时间需要 14 分钟。
Controls/LayoutControl/PanelDemo.xaml.cs
/* * Panel(基类) - 面板控件基类(继承自 FrameworkElement, 请参见 /Controls/BaseControl/FrameworkElementDemo.xaml) */ using Windows.UI.Xaml.Controls;namespace Windows10.Controls.LayoutControl{ public sealed partial class PanelDemo : Page { public PanelDemo() { this.InitializeComponent(); } }}
Controls/LayoutControl/CanvasDemo.xaml.cs
/* * Canvas - 绝对定位布局控件(继承自 Panel, 请参见 /Controls/LayoutControl/PanelDemo.xaml) * double GetLeft(UIElement element) - 获取指定 UIElement 的 Canvas.Left 值 * double GetTop(UIElement element) - 获取指定 UIElement 的 Canvas.Top 值 * int GetZIndex(UIElement element) - 获取指定 UIElement 的 Canvas.ZIndex 值 * SetLeft(UIElement element, double length) - 设置指定 UIElement 的 Canvas.Left 值 * SetTop(UIElement element, double length) - 设置指定 UIElement 的 Canvas.Top 值 * SetZIndex(UIElement element, int value) - 设置指定 UIElement 的 Canvas.ZIndex 值 */using Windows.UI.Xaml.Controls;namespace Windows10.Controls.LayoutControl{ public sealed partial class CanvasDemo : Page { public CanvasDemo() { this.InitializeComponent(); } }}
Controls/LayoutControl/RelativePanelDemo.xaml.cs
/* * RelativePanel - 相对定位布局控件(继承自 Panel, 请参见 /Controls/LayoutControl/PanelDemo.xaml) */using Windows.UI.Xaml.Controls;namespace Windows10.Controls.LayoutControl{ public sealed partial class RelativePanelDemo : Page { public RelativePanelDemo() { this.InitializeComponent(); } }}
Controls/LayoutControl/StackPanelDemo.xaml.cs
/* * StackPanel - 流式布局控件(继承自 Panel, 请参见 /Controls/LayoutControl/PanelDemo.xaml) */using Windows.UI.Xaml.Controls;namespace Windows10.Controls.LayoutControl{ public sealed partial class StackPanelDemo : Page { public StackPanelDemo() { this.InitializeComponent(); } }}
Controls/LayoutControl/GridDemo.xaml.cs
/* * Grid - 网格布局控件(继承自 Panel, 请参见 /Controls/LayoutControl/PanelDemo.xaml) */using Windows.UI.Xaml.Controls;namespace Windows10.Controls.LayoutControl{ public sealed partial class GridDemo : Page { public GridDemo() { this.InitializeComponent(); } }}
转载地址:http://aifco.baihongyu.com/