コード例 #1
0
ファイル: Logo.g.i.cs プロジェクト: netthanhhung/Medical
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Medical.Apartment.Silverlight.UI;component/Controls/Logo.xaml", System.UriKind.Relative));
     this.uiInnerGlowBorder = ((Blacklight.Controls.InnerGlowBorder)(this.FindName("uiInnerGlowBorder")));
     this.uiContent = ((System.Windows.Controls.Grid)(this.FindName("uiContent")));
     this.uiDeploymentInfo = ((System.Windows.Controls.TextBlock)(this.FindName("uiDeploymentInfo")));
 }
コード例 #2
0
        /// <summary>
        /// Updates the glow size.
        /// </summary>
        /// <param name="dependencyObject">The inner glow border.</param>
        /// <param name="eventArgs">Dependency Property Changed Event Args</param>
        private static void InnerGlowSize_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
        {
            InnerGlowBorder innerGlowBorder = (InnerGlowBorder)dependencyObject;

            innerGlowBorder.UpdateGlowSize((Thickness)eventArgs.NewValue);
        }
コード例 #3
0
        /// <summary>
        /// Updates the inner glow color when the DP changes.
        /// </summary>
        /// <param name="dependencyObject">The inner glow border.</param>
        /// <param name="eventArgs">The new property event args.</param>
        private static void InnerGlowColor_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
        {
            InnerGlowBorder innerGlowBorder = (InnerGlowBorder)dependencyObject;

            innerGlowBorder.UpdateGlowColor((Color)eventArgs.NewValue);
        }