本文整理汇总了C#中RoutedEventHandler类的典型用法代码示例。如果您正苦于以下问题:C# RoutedEventHandler类的具体用法?C# RoutedEventHandler怎么用?C# RoutedEventHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RoutedEventHandler类属于命名空间,在下文中一共展示了RoutedEventHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Window1
public Window1()
{
InitializeComponent();
InitWin();
InitIcon();
Loaded += new RoutedEventHandler(Window1_Loaded);
}
示例2: SetPassCode
public SetPassCode()
{
InitializeComponent();
this.SubClassPage = this;
Loaded += new RoutedEventHandler(MainPage_Loaded);
}
示例3: ucConfigure
public void ucConfigure(int _mode, int? _PID)
{
ucMode = _mode;
ucPID = _PID;
switchUCmode(ucMode);
Loaded += new RoutedEventHandler(uc_ProducerType_Loaded);
}
示例4: GruppenGrid
public GruppenGrid()
{
InitializeComponent();
Mannschaften = new List<Mannschaft>();
Loaded += new RoutedEventHandler(GruppenGrid_Loaded);
}
示例5: CampaignView
public CampaignView()
{
InitializeComponent();
InitializeStatusList();
_cleverCallCenter = new CleverCallCenter();
Loaded+=new RoutedEventHandler(CampaignView_Loaded);
}
示例6: CalendarPage
public CalendarPage()
{
InitializeComponent();
Loaded += new RoutedEventHandler(FirstLook_Loaded);
loadData();
}
示例7: StartAndEndNodeContextMenu
public static ContextMenu StartAndEndNodeContextMenu(RoutedEventHandler removeEventHandler)
{
Builder.AddMenuItem("RemovePointMenuItem", "Remove Point", removeEventHandler);
var result = Builder.Get("StartAndEndNodeContextMent");
Builder.Clear();
return result;
}
示例8: Odometer
/// <summary>
/// Initializes a new instance of the <see cref="Odometer"/> class.
/// </summary>
public Odometer()
{
InitializeComponent();
Loaded += new RoutedEventHandler(this.Odometer_Loaded);
this.timer.Interval = new TimeSpan(0, 0, 0, 0, 750);
this.timer.Tick += new EventHandler(this.Timer_Tick);
}
示例9: AddMenuItem
/// <summary>
/// 加载菜单项
/// </summary>
/// <param name="menuName">菜单名称</param>
/// <param name="imageUrl">图片</param>
/// <param name="eventHandler">处理事件</param>
/// <returns></returns>
Grid AddMenuItem(string menuName, string imageUrl, RoutedEventHandler eventHandler)
{
Grid grid = new Grid();// { Margin = new Thickness(1) };
grid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(25) });
grid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(80) });
grid.Children.Add(new Rectangle() { Fill = new SolidColorBrush(Color.FromArgb(255, 233, 238, 238)) });
grid.Children.Add(new Rectangle() { Fill = new SolidColorBrush(Color.FromArgb(255, 226, 228, 231)), HorizontalAlignment = HorizontalAlignment.Right, Width = 1 });
Button roButton = new Button()
{
Height = 22,
Margin = new Thickness(0, 0, 0, 0),
HorizontalAlignment = HorizontalAlignment.Stretch,
VerticalAlignment = VerticalAlignment.Top,
HorizontalContentAlignment = HorizontalAlignment.Left,
Style = Application.Current.Resources["ContextMenuButton"] as Style
};
roButton.Click += eventHandler;
Grid.SetColumnSpan(roButton, 2);
StackPanel sp = new StackPanel() { Orientation = Orientation.Horizontal };
Image roImage = new Image() { HorizontalAlignment = HorizontalAlignment.Left, Width = 16, Height = 16, Margin = new Thickness(1, 0, 0, 0) };
roImage.Source = new BitmapImage(new Uri("/HaoRan.WebCam;component/" + imageUrl, UriKind.RelativeOrAbsolute));
sp.Children.Add(roImage);
sp.Children.Add(new TextBlock() { HorizontalAlignment = HorizontalAlignment.Left, Margin = new Thickness(16, 0, 0, 0), Text = menuName });
roButton.Content = sp;
grid.Children.Add(roButton);
return grid;
}
示例10: MainWindow
public MainWindow()
{
InitializeComponent();
Loaded += new RoutedEventHandler(MainWindow_Loaded);
this.ViewModel = new MainWindowViewModel();
this.DataContext = this.ViewModel;
}
示例11: frmcatint
public frmcatint(string usr)
{
InitializeComponent();
EntityQuery<tram_vt> Query = dstb.GetTram_vtQuery();
LoadOp = dstb.Load(Query.Where(t => App.ma_huyen.Contains(t.ma_huyen)).OrderBy(p => p.ten_tram), LoadOpT_Complete, null);
//QLThuebaoDomainContext tramvt = new QLThuebaoDomainContext();
EntityQuery<khmai> Querykm = dstb.GetKhmaiQuery();
LoadOpkm = dstb.Load(Querykm.OrderByDescending(t => t.ngay_bd), LoadOpTK_Complete, null);
EntityQuery<mlydocat> Querycat = dstb.GetLyDoCatTrimQuery();
LoadOpcat = dstb.Load(Querycat.OrderBy(p => p.m_order), LoadOpCT_Complete, null);
EntityQuery<loaikh> Queryloai = dstb.GetLoaikhQuery();
LoadOpkh = dstb.Load(Queryloai, LoadOpKH_Complete, null);
EntityQuery<nganh_nghe> QueryN = dstb.GetNganh_ngheQuery();
LoadOpN = dstb.Load(QueryN, LoadOpN_Complete, null);
EntityQuery<loai_dv> Queryloaidv = dstb.GetLoai_dvQuery();
LoadOpdv = dstb.Load(Queryloaidv, LoadOpDV_Complete, null);
EntityQuery<KhachHangUuTien> Queryut = dstb.GetKhachHangUuTienTrimQuery();
LoadOput = dstb.Load(Queryut.OrderBy(p => p.kh_uutien1), LoadOpUT_Complete, null);
EntityQuery<nv_thuethu> Queryt = dstb.GetNv_thuethuQuery();
LoadOptuyen = dstb.Load(Queryt.Where(p => p.ma_huyen == App.ma_huyen).OrderBy(p => p.ten), LoadOpTT_Complete, null);
//this.txtsdt.MaxLength = App.len_sdt;
m_usr = usr;
dngaycat.EditValue = App.Current_d;
mlydo.IsEnabled = false;
Loaded += new RoutedEventHandler(frmeditmy_Loaded);
//frmdc = new frmdiachi();
//frmdc.Closed += new EventHandler(frmdiachi_Closed);
}
示例12: MainWindow
public MainWindow()
{
InitializeComponent();
Loaded += new RoutedEventHandler(MainWindow_Loaded);
btnLogin.Click += new RoutedEventHandler(btnLogin_Click);
}
示例13: ThreadPage
public ThreadPage()
{
InitializeComponent();
_PinButton = ApplicationBar.Buttons[2] as Microsoft.Phone.Shell.ApplicationBarIconButton;
Loaded += new RoutedEventHandler(ThreadPage_Loaded);
}
示例14: InputWizardUserControl
public InputWizardUserControl()
{
InitializeComponent();
Initialize();
//Controls Events
Loaded += new RoutedEventHandler(InputWizard_Loaded);
#if !SILVERLIGHT
ButtonBrowseConfigurationFile.Content = new BitmapImage(new Uri(@"images/Browse.png", UriKind.Relative));
ButtonBrowseConnectionFile.Content = new BitmapImage(new Uri(@"images/Browse.png", UriKind.Relative));
ButtonBrowseIniFile.Content = new BitmapImage(new Uri(@"images/Browse.png", UriKind.Relative));
ButtonNext.Content = new BitmapImage(new Uri(@"images/Next.png", UriKind.Relative));
ButtonPrevious.Content = new BitmapImage(new Uri(@"images/Previous.png", UriKind.Relative));
//ButtonRequestConfiguration.Content = new BitmapImage(new Uri(@"images/RequestData.png", UriKind.Relative));
ButtonBuildConnectionString.Content = new BitmapImage(new Uri(@"images/Add.png", UriKind.Relative));
ButtonBuildCommandChannel.Content = new BitmapImage(new Uri(@"images/Add.png", UriKind.Relative));
#else
ButtonManualConfiguration.Visibility = Visibility.Collapsed;
#endif
ButtonBrowseConfigurationFile.Click += new RoutedEventHandler(ButtonBrowseConfigurationFile_Click);
ButtonBrowseConnectionFile.Click += new RoutedEventHandler(ButtonBrowseConnectionFile_Click);
ButtonBrowseIniFile.Click += new RoutedEventHandler(ButtonBrowseIniFile_Click);
ButtonNext.Click += new RoutedEventHandler(ButtonNext_Click);
ButtonPrevious.Click += new RoutedEventHandler(ButtonPrevious_Click);
ButtonRequestConfiguration.Click += new RoutedEventHandler(ButtonRequestConfiguration_Click);
ButtonBuildConnectionString.Click += new RoutedEventHandler(ButtonBuildConnectionString_Click);
ButtonBuildCommandChannel.Click += new RoutedEventHandler(ButtonBuildCommandChannel_Click);
AccordianWizard.SelectionChanged += new SelectionChangedEventHandler(AccordianWizard_SelectionChanged);
CheckboxConnectToPDC.Checked += new RoutedEventHandler(CheckboxConnectToPDC_Checked);
CheckboxConnectToPDC.Unchecked += new RoutedEventHandler(CheckboxConnectToPDC_Unchecked);
ComboboxProtocol.SelectionChanged += new SelectionChangedEventHandler(ComboboxProtocol_SelectionChanged);
}
示例15: uc_CalibrationList
public uc_CalibrationList()
{
InitializeComponent();
Loaded += new RoutedEventHandler(uc_CalibrationList_Loaded);
txt_reportPath.Text = String.Format("{0}report=Report_Calibrations", SIT_Report.ReportPageModel.GetBaseAddress());
}