本文整理汇总了C#中RoutedEventHandler类的典型用法代码示例。如果您正苦于以下问题:C# RoutedEventHandler类的具体用法?C# RoutedEventHandler怎么用?C# RoutedEventHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RoutedEventHandler类属于命名空间,在下文中一共展示了RoutedEventHandler类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Window1
public Window1()
{
InitializeComponent();
InitWin();
InitIcon();
Loaded += new RoutedEventHandler(Window1_Loaded);
}
开发者ID:ConnectDeveloper01,项目名称:dorumon,代码行数:7,代码来源:Window1.xaml.cs
示例2: SetPassCode
public SetPassCode()
{
InitializeComponent();
this.SubClassPage = this;
Loaded += new RoutedEventHandler(MainPage_Loaded);
}
开发者ID:travbod57,项目名称:DatingDiary,代码行数:7,代码来源:SetPassCode.xaml.cs
示例3: ucConfigure
public void ucConfigure(int _mode, int? _PID)
{
ucMode = _mode;
ucPID = _PID;
switchUCmode(ucMode);
Loaded += new RoutedEventHandler(uc_ProducerType_Loaded);
}
开发者ID:undejavue,项目名称:SITbusiness,代码行数:7,代码来源:uc_ProducerForm.xaml.cs
示例4: GruppenGrid
public GruppenGrid()
{
InitializeComponent();
Mannschaften = new List<Mannschaft>();
Loaded += new RoutedEventHandler(GruppenGrid_Loaded);
}
开发者ID:MarioBinder,项目名称:WM2010,代码行数:7,代码来源:GruppenGrid.xaml.cs
示例5: CampaignView
public CampaignView()
{
InitializeComponent();
InitializeStatusList();
_cleverCallCenter = new CleverCallCenter();
Loaded+=new RoutedEventHandler(CampaignView_Loaded);
}
开发者ID:grzeryb,项目名称:Clever-Call-Center,代码行数:7,代码来源:CampaignView.xaml.cs
示例6: CalendarPage
public CalendarPage()
{
InitializeComponent();
Loaded += new RoutedEventHandler(FirstLook_Loaded);
loadData();
}
开发者ID:KIshen90,项目名称:FreeFoodEngine,代码行数:7,代码来源:CalendarPage.xaml.cs
示例7: StartAndEndNodeContextMenu
public static ContextMenu StartAndEndNodeContextMenu(RoutedEventHandler removeEventHandler)
{
Builder.AddMenuItem("RemovePointMenuItem", "Remove Point", removeEventHandler);
var result = Builder.Get("StartAndEndNodeContextMent");
Builder.Clear();
return result;
}
开发者ID:SergeyValavin,项目名称:MultiObjectiveOpitimzation,代码行数:7,代码来源:NodeContextMenuCreator.cs
示例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);
}
开发者ID:ElanHasson,项目名称:Dashboarding,代码行数:10,代码来源:Odometer.xaml.cs
示例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;
}
开发者ID:wenysky,项目名称:dnt31-lite,代码行数:37,代码来源:CWViewUploadedImage.xaml.cs
示例10: MainWindow
public MainWindow()
{
InitializeComponent();
Loaded += new RoutedEventHandler(MainWindow_Loaded);
this.ViewModel = new MainWindowViewModel();
this.DataContext = this.ViewModel;
}
开发者ID:KinAudio,项目名称:Master,代码行数:7,代码来源:MainWindow.xaml.cs
示例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);
}
开发者ID:phanvanthanh,项目名称:QLThueBao,代码行数:29,代码来源:frmcatint.xaml.cs
示例12: MainWindow
public MainWindow()
{
InitializeComponent();
Loaded += new RoutedEventHandler(MainWindow_Loaded);
btnLogin.Click += new RoutedEventHandler(btnLogin_Click);
}
开发者ID:bashocz,项目名称:CompanyIS,代码行数:7,代码来源:MainWindow.xaml.cs
示例13: ThreadPage
public ThreadPage()
{
InitializeComponent();
_PinButton = ApplicationBar.Buttons[2] as Microsoft.Phone.Shell.ApplicationBarIconButton;
Loaded += new RoutedEventHandler(ThreadPage_Loaded);
}
开发者ID:fleabix,项目名称:LatestChatty-WP7,代码行数:7,代码来源:ThreadPage.xaml.cs
示例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);
}
开发者ID:JiahuiGuo,项目名称:openPDC,代码行数:32,代码来源:InputWizardUserControl.xaml.cs
示例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());
}
开发者ID:undejavue,项目名称:SITbusiness,代码行数:7,代码来源:uc_CalibrationList.xaml.cs
示例16: DebuggerTooltipControl
public DebuggerTooltipControl(Location logicalPosition)
{
this.logicalPosition = logicalPosition;
InitializeComponent();
Loaded += new RoutedEventHandler(OnLoaded);
}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:7,代码来源:DebuggerTooltipControl.xaml.cs
示例17: showTmplGroup
public static object showTmplGroup(string addStr, ItemsControl itemFrame, RoutedEventHandler rehClick, string rowId = "")
{
object retItemFrame = null;
if (MainWindow.s_pW.m_docConf.SelectSingleNode("Config").SelectSingleNode("template") != null &&
MainWindow.s_pW.m_docConf.SelectSingleNode("Config").SelectSingleNode("template").SelectSingleNode(addStr + "Tmpls") != null)
{
XmlElement xeTmpls = (XmlElement)MainWindow.s_pW.m_docConf.SelectSingleNode("Config").
SelectSingleNode("template").SelectSingleNode(addStr + "Tmpls");
retItemFrame = showTmpl(itemFrame, xeTmpls, addStr, rehClick, rowId);
}
if (Project.Setting.s_docProj.SelectSingleNode("BoloUIProj").SelectSingleNode("template") != null &&
Project.Setting.s_docProj.SelectSingleNode("BoloUIProj").SelectSingleNode("template").SelectSingleNode(addStr + "Tmpls") != null)
{
XmlElement xeTmpls = (XmlElement)Project.Setting.s_docProj.SelectSingleNode("BoloUIProj").
SelectSingleNode("template").SelectSingleNode(addStr + "Tmpls");
object ret = showTmpl(itemFrame, xeTmpls, addStr, rehClick, rowId);
if (ret != null)
{
retItemFrame = ret;
}
}
return retItemFrame;
}
开发者ID:jaffrykee,项目名称:ui,代码行数:27,代码来源:XmlItemContextMenu.xaml.cs
示例18: LoadPage
public LoadPage()
{
InitializeComponent();
Loaded += new RoutedEventHandler(Scene1_Loaded);
Storyboard1.Completed += new EventHandler(Storyboard1_Completed);
SB_Timer.Completed += new EventHandler(SB_Timer_Completed);
}
开发者ID:teerachail,项目名称:MayTuxy,代码行数:7,代码来源:LoadPage.xaml.cs
示例19: MainPage
// Constructor
public MainPage()
{
InitializeComponent();
DataContext = new TaskListViewModel();
Loaded += new RoutedEventHandler(MainPage_Loaded);
}
开发者ID:ARMoir,项目名称:mobile-samples,代码行数:8,代码来源:MainPage.xaml.cs
示例20: ChartLabels
/// <summary>
/// Creates an instance of ChartLabels class.
/// </summary>
public ChartLabels()
{
_children.CollectionChanged += new NotifyCollectionChangedEventHandler(_children_CollectionChanged);
_occupiedRects.CollectionChanged += new NotifyCollectionChangedEventHandler(_occupiedRects_CollectionChanged);
LayoutUpdated += new EventHandler(ChartLabels_LayoutUpdated);
Loaded += new RoutedEventHandler(ChartLabels_Loaded);
}
开发者ID:mdjabirov,项目名称:C1Decompiled,代码行数:10,代码来源:ChartLabels.cs
注:本文中的RoutedEventHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论