文档库

最新最全的文档下载
当前位置:文档库 > 1.中国果蔬门户软件 源代码

1.中国果蔬门户软件 源代码

中国果蔬门户软件 源代码 1

/****************************************************** //**用户登录 类 //******************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using System.IO; public partial class User login { /// The panel used to arrange the ribbon groups in the tab. public class RibbonGroupsPanel : RibbonPanelBase { private const double ITEMSPACING = 2d; private double lastAvailableSize; /// Initializes a new instance of the class. public RibbonGroupsPanel() { this.ItemSpacing = ITEMSPACING; } /// Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. /// The available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available. /// /// The size that this object determines it needs during layout, based on its calculations of child object allotted sizes. /// protected override Size MeasureOverride(Size availableSize) { double availableWidth = availableSize.Width; if (double.IsInfinity(availableWidth) || double.IsNaN(availableWidth)) { availableWidth = http://www.wendangku.net/doc/da4f17e6580216fc710afdae.html stAvailableSize; } else { http://www.wendangku.net/doc/da4f17e6580216fc710afdae.html stAvailableSize = availableWidth; } if (availableWidth <= 0) return base.MeasureOverride(availableSize); var calculatedGroupsVariants = this.Children.OfType().Select(g => new { Group = g, Variant = http://www.wendangku.net/doc/da4f17e6580216fc710afdae.html rge }).ToDictionary(x => x.Group, x => x.Variant); var sortedGroupsVariants = new List(this.Children.OfType().SelectMany(g => g.Variants).OrderBy(v => v.Priority));

免费下载Word文档免费下载: 1.中国果蔬门户软件 源代码

(共60页)

TOP相关主题