本文整理汇总了C#中System.Windows.Controls.HyperlinkButton.SetToolTip方法的典型用法代码示例。如果您正苦于以下问题:C# HyperlinkButton.SetToolTip方法的具体用法?C# HyperlinkButton.SetToolTip怎么用?C# HyperlinkButton.SetToolTip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.HyperlinkButton
的用法示例。
在下文中一共展示了HyperlinkButton.SetToolTip方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddPhoto
public void AddPhoto(Photo photo, RoutedEventHandler clickHandler)
{
m_bEmpty = false;
StackPanel panel = new StackPanel();
panel.Orientation = Orientation.Horizontal;
panel.VerticalAlignment = VerticalAlignment.Stretch;
panel.HorizontalAlignment = HorizontalAlignment.Stretch;
// Find the images relative to the /ClientBin folder which contains the XAP
BitmapImage bm = new BitmapImage();
bm.UriSource = Helper.HttpImagesPath(photo.Icon);
Image image = new Image();
image.Source = bm;
image.Width = 100;
image.Height = 100;
image.VerticalAlignment = VerticalAlignment.Center;
image.HorizontalAlignment = HorizontalAlignment.Left;
panel.Children.Add(image);
HyperlinkButton iconButton = new HyperlinkButton();
iconButton.Content = panel;
iconButton.Tag = photo.Name;
iconButton.SetToolTip(photo.Name);
//j iconButton.Width = 100;
//j iconButton.Height = 100;
m_PhotosIconPanel.Children.Add(iconButton);
iconButton.Click += clickHandler;
DragDrop dragDrop = App.PageProp.DragDropProp;
dragDrop.AddSource(image, photo);
}