void OnCollateGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e) { this.ddbCollate.Image = e.Item.Image; this.ddbCollate.Text = e.Item.Caption; this.ddbCollate.Tag = e.Item.Tag; }
void Gallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e) { var portrait = e.Item.Tag as Portrait; ShowPreviewImage(portrait); }
void AssociatedObject_ItemChecked(object sender, GalleryItemEventArgs e) { UpdateSelectedItem(e.Item); }
void gallery_GalleryItemCheckedChanged(object sender, GalleryItemEventArgs e) { if(e.Item.Checked) UpdateCheckEditors(e.Item.Tag.ToString()); }
private void galleryControlImage_Gallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e) { if (e.Item.Checked) { btnImageDelete.Enabled = true; } }
void OnOrientationGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e) { ddbOrientation.Text = e.Item.Caption; ddbOrientation.Image = e.Item.Image; if(printControl1.PrintingSystem != null) this.printControl1.PrintingSystem.PageSettings.Landscape = GetLandscape(); UpdatePageButtonsEnabledState(); }
void OnPrinterGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e) { this.ddbPrinter.Text = e.Item.Caption; this.ddbPrinter.Image = e.Item.Image; }
private void Context_ItemActivated(object sender, GalleryItemEventArgs e) { ShowProperties((IStudyComposerItem)e.Item); }
void OnDuplexGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e) { this.ddbDuplex.Text = e.Item.Caption; this.ddbDuplex.Image = e.Item.Image; this.ddbDuplex.Tag = e.Item.Tag; }
void FontFamilyGallery_ItemChecked(object sender, GalleryItemEventArgs e) { FontFamily newFontFamily = (FontFamily)e.Item.Tag; ApplyPropertyValueToSelectedText(TextElement.FontFamilyProperty, newFontFamily); }
private void Gallery_ItemClick(object sender, GalleryItemEventArgs e) { MessageBox.Show("The " + e.Item.Caption + " item has been clicked"); }
static void Gallery_ItemClick(object sender, GalleryItemEventArgs e) { ThemeManager.ApplicationThemeName = e.Item.Caption.ToString(); }
void OnMarginsGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e) { this.ddbMargins.Image = e.Item.Image; this.ddbMargins.Text = e.Item.Caption; this.ddbMargins.Tag = e.Item.Tag; if(this.printControl1.PrintingSystem != null) { Margins margins = GetMargins(); this.printControl1.PrintingSystem.PageSettings.LeftMargin = margins.Left; this.printControl1.PrintingSystem.PageSettings.RightMargin = margins.Right; this.printControl1.PrintingSystem.PageSettings.TopMargin = margins.Top; this.printControl1.PrintingSystem.PageSettings.BottomMargin = margins.Bottom; } UpdatePageButtonsEnabledState(); }
private void rgbiSkins_Gallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e) { if (!IsFirst) { CurrUser.Skin = e.Item.Tag.ToString(); UserLogic.ChangeSkin(CurrUser); } IsFirst = false; }
void OnPaperSizeGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e) { this.ddbPaperSize.Image = e.Item.Image; this.ddbPaperSize.Text = e.Item.Caption; this.ddbPaperSize.Tag = e.Item.Tag; if(this.printControl1.PrintingSystem != null) this.printControl1.PrintingSystem.PageSettings.PaperKind = GetPaperKind(); UpdatePageButtonsEnabledState(); }
void FontFamilyGallery_ItemChecked(object sender, GalleryItemEventArgs e) { FontFamily newFontFamily = (FontFamily)e.Item.Tag; }
void OnPrintStyleGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e) { this.ddbPrintStyle.Text = e.Item.Caption; this.ddbPrintStyle.Image = e.Item.Image; if(printControl1.PrintingSystem != null) CreateDocument(); }
protected virtual void OnThemeItemClick(object sender, GalleryItemEventArgs e) { string themeName = (string)e.Item.Tag; ThemeManager.ApplicationThemeName = themeName; }
private void ribbonViewSkins_GalleryItemCheckedChanged(object sender, GalleryItemEventArgs e) { if (!isFristLoad) { DefaultSkinStyle = e.Item.Tag.ToString(); } { isFristLoad = false; } }
void Gallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e) { var portrait = e.Item.Tag as Damany.PortraitCapturer.DAL.DTO.Portrait; if (portrait != null) { wholePicture.Image = portrait.Frame == null ? null : portrait.Frame.ImageCopy; currentFace.Image = portrait.ImageCopy; } }
protected virtual void OnThemeItemClick(object sender, GalleryItemEventArgs e) { string themeName = (string)e.Item.Caption; switch (themeName) { case "Office2007BlueName": m_themes = 0; ThemeManager.ApplicationThemeName = Theme.Office2007BlueName; imgBrush.ImageSource = new BitmapImage(new Uri("/SilverlightQLThuebao;component/Images/background2.jpg", UriKind.Relative)); grid1.Background = imgBrush; txtthongbao.Foreground = new SolidColorBrush(Colors.Red); SetThemes(); break; case "DeepBlueName": m_themes = 1; ThemeManager.ApplicationThemeName = Theme.DeepBlueName; imgBrush.ImageSource = new BitmapImage(new Uri("/SilverlightQLThuebao;component/Images/background1.jpg", UriKind.Relative)); grid1.Background = imgBrush; SetThemes(); break; case "DXStyleName": m_themes = 2; ThemeManager.ApplicationThemeName = Theme.VS2010Name; // grid1.Background = "/SilverlightQLThuebao;component/Images/bg_body-blue.jpg"; imgBrush.ImageSource = new BitmapImage(new Uri("/SilverlightQLThuebao;component/Images/background4.jpg", UriKind.Relative)); grid1.Background = imgBrush; SetThemes(); break; } }
void SuspectsGallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e) { if (e.Item.Checked) { var result = (PersonOfInterestDetectionResult)e.Item.Tag; peopleCompare1.pictureEditTarget.Image = result.Target.ImageCopy; peopleCompare1.pictureEditSuspect.Image = result.Suspect.GetIpl().ToBitmap(); } }