示例#1
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/DuelPortalCS;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot               = ((SilverFlow.Controls.FloatingWindowHost)(this.FindName("LayoutRoot")));
     this.soundPlayer              = ((System.Windows.Controls.MediaElement)(this.FindName("soundPlayer")));
     this.ContentBorder            = ((System.Windows.Controls.Border)(this.FindName("ContentBorder")));
     this.ContentFrame             = ((System.Windows.Controls.Frame)(this.FindName("ContentFrame")));
     this.NavigationGrid           = ((System.Windows.Controls.Grid)(this.FindName("NavigationGrid")));
     this.BrandingBorder           = ((System.Windows.Controls.Border)(this.FindName("BrandingBorder")));
     this.BrandingStackPanel       = ((System.Windows.Controls.StackPanel)(this.FindName("BrandingStackPanel")));
     this.ApplicationNameTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationNameTextBlock")));
     this.LinksBorder              = ((System.Windows.Controls.Border)(this.FindName("LinksBorder")));
     this.LinksStackPanel          = ((System.Windows.Controls.StackPanel)(this.FindName("LinksStackPanel")));
     this.chkMute   = ((System.Windows.Controls.CheckBox)(this.FindName("chkMute")));
     this.Divider8  = ((System.Windows.Shapes.Rectangle)(this.FindName("Divider8")));
     this.imgBubble = ((System.Windows.Controls.Image)(this.FindName("imgBubble")));
     this.Link6     = ((System.Windows.Controls.HyperlinkButton)(this.FindName("Link6")));
     this.Divider7  = ((System.Windows.Shapes.Rectangle)(this.FindName("Divider7")));
     this.Link1     = ((System.Windows.Controls.HyperlinkButton)(this.FindName("Link1")));
     this.Divider1  = ((System.Windows.Shapes.Rectangle)(this.FindName("Divider1")));
     this.Link2     = ((System.Windows.Controls.HyperlinkButton)(this.FindName("Link2")));
     this.Divider5  = ((System.Windows.Shapes.Rectangle)(this.FindName("Divider5")));
     this.Link3     = ((System.Windows.Controls.HyperlinkButton)(this.FindName("Link3")));
     this.Divider3  = ((System.Windows.Shapes.Rectangle)(this.FindName("Divider3")));
     this.Link4     = ((System.Windows.Controls.HyperlinkButton)(this.FindName("Link4")));
     this.Divider4  = ((System.Windows.Shapes.Rectangle)(this.FindName("Divider4")));
     this.Link5     = ((System.Windows.Controls.HyperlinkButton)(this.FindName("Link5")));
     this.Divider6  = ((System.Windows.Shapes.Rectangle)(this.FindName("Divider6")));
     this.Link7     = ((System.Windows.Controls.HyperlinkButton)(this.FindName("Link7")));
 }
        /// <summary>
        /// OverlayBrushProperty PropertyChangedCallback call back static function.
        /// </summary>
        /// <param name="d">FloatingWindowHost object whose OverlayBrush property is changed.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs which contains the old and new values.</param>
        private static void OnOverlayBrushPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FloatingWindowHost host = (FloatingWindowHost)d;

            if (host != null && host.overlay != null)
            {
                host.overlay.Background = (Brush)e.NewValue;
            }
        }
        /// <summary>
        /// WindowIconStyle PropertyChangedCallback call back static function.
        /// </summary>
        /// <param name="d">FloatingWindowHost object whose WindowIconStyle property is changed.</param>
        /// <param name="e">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void WindowIconStylePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FloatingWindowHost host = (FloatingWindowHost)d;

            if (host != null && host.iconBar != null)
            {
                host.iconBar.WindowIconStyle = e.NewValue as Style;
            }
        }
        /// <summary>
        /// BootstrapButtonStyle PropertyChangedCallback call back static function.
        /// </summary>
        /// <param name="d">FloatingWindowHost object whose BootstrapButtonStyle property is changed.</param>
        /// <param name="e">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void BootstrapButtonStylePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FloatingWindowHost host = (FloatingWindowHost)d;

            if (host != null && host.bottomBar != null)
            {
                host.bootstrapButton.Style = e.NewValue as Style;
            }
        }
示例#5
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/DuelPortalCS;component/Views/frmViewDrag.xaml", System.UriKind.Relative));
     this.Root              = ((SilverFlow.Controls.FloatingWindowHost)(this.FindName("Root")));
     this.OKButton          = ((System.Windows.Controls.Button)(this.FindName("OKButton")));
     this.lstCards          = ((System.Windows.Controls.ListBox)(this.FindName("lstCards")));
     this.cmdToGrave        = ((System.Windows.Controls.Button)(this.FindName("cmdToGrave")));
     this.cmdBanish         = ((System.Windows.Controls.Button)(this.FindName("cmdBanish")));
     this.cmdToHand         = ((System.Windows.Controls.Button)(this.FindName("cmdToHand")));
     this.cmdToTop          = ((System.Windows.Controls.Button)(this.FindName("cmdToTop")));
     this.cmdToBottom       = ((System.Windows.Controls.Button)(this.FindName("cmdToBottom")));
     this.cmdToField        = ((System.Windows.Controls.Button)(this.FindName("cmdToField")));
     this.lblDuelName       = ((System.Windows.Controls.TextBlock)(this.FindName("lblDuelName")));
     this.imgDuelAttribute  = ((System.Windows.Controls.Image)(this.FindName("imgDuelAttribute")));
     this.lblDuelType       = ((System.Windows.Controls.TextBlock)(this.FindName("lblDuelType")));
     this.imgSTIcon         = ((System.Windows.Controls.Image)(this.FindName("imgSTIcon")));
     this.lblDuelATK        = ((System.Windows.Controls.TextBox)(this.FindName("lblDuelATK")));
     this.lblDuelDEF        = ((System.Windows.Controls.TextBox)(this.FindName("lblDuelDEF")));
     this.lblATKplaceholder = ((System.Windows.Controls.TextBlock)(this.FindName("lblATKplaceholder")));
     this.lblDEFPlaceholder = ((System.Windows.Controls.TextBlock)(this.FindName("lblDEFPlaceholder")));
     this.stackPanel1       = ((System.Windows.Controls.StackPanel)(this.FindName("stackPanel1")));
     this.imgStars12        = ((System.Windows.Controls.Image)(this.FindName("imgStars12")));
     this.imgStars11        = ((System.Windows.Controls.Image)(this.FindName("imgStars11")));
     this.imgStars10        = ((System.Windows.Controls.Image)(this.FindName("imgStars10")));
     this.imgStars9         = ((System.Windows.Controls.Image)(this.FindName("imgStars9")));
     this.imgStars8         = ((System.Windows.Controls.Image)(this.FindName("imgStars8")));
     this.imgStars7         = ((System.Windows.Controls.Image)(this.FindName("imgStars7")));
     this.imgStars6         = ((System.Windows.Controls.Image)(this.FindName("imgStars6")));
     this.imgStars5         = ((System.Windows.Controls.Image)(this.FindName("imgStars5")));
     this.imgStars4         = ((System.Windows.Controls.Image)(this.FindName("imgStars4")));
     this.imgStars3         = ((System.Windows.Controls.Image)(this.FindName("imgStars3")));
     this.imgStars2         = ((System.Windows.Controls.Image)(this.FindName("imgStars2")));
     this.imgStars1         = ((System.Windows.Controls.Image)(this.FindName("imgStars1")));
     this.lblDuelLore       = ((System.Windows.Controls.TextBox)(this.FindName("lblDuelLore")));
     this.deckHelperUp      = ((System.Windows.Controls.Label)(this.FindName("deckHelperUp")));
     this.deckHelperDown    = ((System.Windows.Controls.Label)(this.FindName("deckHelperDown")));
     this.lblViewing        = ((System.Windows.Controls.Label)(this.FindName("lblViewing")));
 }