public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Views/Shell/OnDemandShellView.xaml", UriKind.Relative));
         this.userControl = (UserControl) base.FindName("userControl");
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.AssetInfoStates = (VisualStateGroup) base.FindName("AssetInfoStates");
         this.ShowAssetInfo = (VisualState) base.FindName("ShowAssetInfo");
         this.InfoPanelIn = (Storyboard) base.FindName("InfoPanelIn");
         this.HideAssetInfo = (VisualState) base.FindName("HideAssetInfo");
         this.ShowSmallAssetInfoPopupBubble = (VisualState) base.FindName("ShowSmallAssetInfoPopupBubble");
         this.CaptionSettingsStates = (VisualStateGroup) base.FindName("CaptionSettingsStates");
         this.ShowCaptionSettings = (VisualState) base.FindName("ShowCaptionSettings");
         this.HideCaptionSettings = (VisualState) base.FindName("HideCaptionSettings");
         this.CaptionSettingsPopupStates = (VisualStateGroup) base.FindName("CaptionSettingsPopupStates");
         this.ShowSettingsBubble = (VisualState) base.FindName("ShowSettingsBubble");
         this.HideSettingsBubble = (VisualState) base.FindName("HideSettingsBubble");
         this.BackgroundRectangle = (Rectangle) base.FindName("BackgroundRectangle");
         this.AssetViewer = (ContentControl) base.FindName("AssetViewer");
         this.ClickToggleControlBarAction = (ActionMessage) base.FindName("ClickToggleControlBarAction");
         this.controller = (OnDemandController) base.FindName("controller");
         this.assetInfoContentControl = (BubbleContentControl) base.FindName("assetInfoContentControl");
         this.captionBubble = (BubbleContentControl) base.FindName("captionBubble");
         this.CaptionSettings = (ContentControl) base.FindName("CaptionSettings");
         this.Interaction = (ContentControl) base.FindName("Interaction");
     }
 }
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Controls/ErrorMessageBox.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.DetailsEnabledStates = (VisualStateGroup) base.FindName("DetailsEnabledStates");
         this.ErrorMessageDetailDisabled = (VisualState) base.FindName("ErrorMessageDetailDisabled");
         this.ErrorMessageDetailEnabled = (VisualState) base.FindName("ErrorMessageDetailEnabled");
         this.DetailsStates = (VisualStateGroup) base.FindName("DetailsStates");
         this.DetailsVisible = (VisualState) base.FindName("DetailsVisible");
         this.DetailsNotVisible = (VisualState) base.FindName("DetailsNotVisible");
         this.BackgroundRectangle = (Rectangle) base.FindName("BackgroundRectangle");
         this.InnerDialogGrid = (Grid) base.FindName("InnerDialogGrid");
         this.DialogRectangle = (Rectangle) base.FindName("DialogRectangle");
         this.CloseButton = (Button) base.FindName("CloseButton");
         this.ErrorMessageTitleTextBlock = (TextBlock) base.FindName("ErrorMessageTitleTextBlock");
         this.ErrorMessageTextBlock = (TextBlock) base.FindName("ErrorMessageTextBlock");
         this.ButtonOK = (Button) base.FindName("ButtonOK");
         this.Icon = (TextBlock) base.FindName("Icon");
         this.SimpleErrorDetails = (Grid) base.FindName("SimpleErrorDetails");
         this.ShowDetailsToggle = (TextToggleButton) base.FindName("ShowDetailsToggle");
         this.DetailsTextBox = (TextBox) base.FindName("DetailsTextBox");
     }
 }
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Views/Shell/SportsNetworkShellView.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.ControllerStates = (VisualStateGroup) base.FindName("ControllerStates");
         this.ShowController = (VisualState) base.FindName("ShowController");
         this.HideController = (VisualState) base.FindName("HideController");
         this.WindowStates = (VisualStateGroup) base.FindName("WindowStates");
         this.FullScreen = (VisualState) base.FindName("FullScreen");
         this.Embedded = (VisualState) base.FindName("Embedded");
         this.CaptionSettingsStates = (VisualStateGroup) base.FindName("CaptionSettingsStates");
         this.ShowCaptionSettings = (VisualState) base.FindName("ShowCaptionSettings");
         this.HideCaptionSettings = (VisualState) base.FindName("HideCaptionSettings");
         this.BackgroundRectangle = (Rectangle) base.FindName("BackgroundRectangle");
         this.AssetViewer = (ContentControl) base.FindName("AssetViewer");
         this.Controller = (Grid) base.FindName("Controller");
         this.volumeControl = (VolumeControl) base.FindName("volumeControl");
         this.ClosedCaptioning = (ToggleButton) base.FindName("ClosedCaptioning");
         this.FullScreenGrid = (Grid) base.FindName("FullScreenGrid");
         this.FullScreenButton = (Button) base.FindName("FullScreenButton");
         this.ExitFullScreenGrid = (Grid) base.FindName("ExitFullScreenGrid");
         this.ExitFullScreenButton = (Button) base.FindName("ExitFullScreenButton");
         this.Interaction = (ContentControl) base.FindName("Interaction");
     }
 }
示例#4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ClassLibrary;component/ContentScaler.xaml", System.UriKind.Relative));
     this.CommonStates = ((System.Windows.VisualStateGroup)(this.FindName("CommonStates")));
     this.Normal = ((System.Windows.VisualState)(this.FindName("Normal")));
     this.MouseOver = ((System.Windows.VisualState)(this.FindName("MouseOver")));
     this.presenter = ((ClassLibrary.ContentScalerPresenter)(this.FindName("presenter")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Conversion%20App;component/CustomUserControl.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.CommonStates = ((System.Windows.VisualStateGroup)(this.FindName("CommonStates")));
     this.Normal = ((System.Windows.VisualState)(this.FindName("Normal")));
     this.Selected = ((System.Windows.VisualState)(this.FindName("Selected")));
     this.textBlock = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/WindowsPhonePrototype1.Screens;component/Baby_Stages.xaml", System.UriKind.Relative));
     this.PhoneChrome = ((Microsoft.Expression.Prototyping.WindowsPhone.Mockups.WindowsPhoneChrome)(this.FindName("PhoneChrome")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.CommonStates = ((System.Windows.VisualStateGroup)(this.FindName("CommonStates")));
     this.Portrait = ((System.Windows.VisualState)(this.FindName("Portrait")));
     this.Landscape = ((System.Windows.VisualState)(this.FindName("Landscape")));
 }
示例#7
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/homework.Screens;component/Screen_2.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this._SketchFlowAnimation_SketchFlowAnimation = ((System.Windows.VisualStateGroup)(this.FindName("_SketchFlowAnimation_SketchFlowAnimation")));
     this.holdtimes = ((System.Windows.VisualState)(this.FindName("holdtimes")));
     this.SketchFlowAnimationFrame = ((System.Windows.VisualState)(this.FindName("SketchFlowAnimationFrame")));
     this._SketchFlowAnimation_base = ((System.Windows.VisualState)(this.FindName("_SketchFlowAnimation_base")));
     this.button = ((System.Windows.Controls.Button)(this.FindName("button")));
 }
 protected override bool GoToStateCore(Control control, FrameworkElement templateRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
 {
     if (_isSuspended)
     {
         //_states.Enqueue(stateName);
        // return true;
         return false;
     }
     else
     {
         return base.GoToStateCore(control, templateRoot, stateName, group, state, useTransitions);
     }
 }
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Views/InteractionView.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.ErrorStates = (VisualStateGroup) base.FindName("ErrorStates");
         this.ErrorMessageShown = (VisualState) base.FindName("ErrorMessageShown");
         this.ErrorMessageNotShown = (VisualState) base.FindName("ErrorMessageNotShown");
         this.ErrorMessage = (ErrorMessageBox) base.FindName("ErrorMessage");
     }
 }
示例#10
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EFI;component/Views/MainPage.xaml", System.UriKind.Relative));
     this.Container = ((System.Windows.Controls.Grid)(this.FindName("Container")));
     this.SettingsPane = ((System.Windows.Controls.Grid)(this.FindName("SettingsPane")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.SettingsStates = ((System.Windows.VisualStateGroup)(this.FindName("SettingsStates")));
     this.ShowSettings = ((System.Windows.VisualState)(this.FindName("ShowSettings")));
     this.HideSettings = ((System.Windows.VisualState)(this.FindName("HideSettings")));
 }
示例#11
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Microsoft.Phone.Controls.Toolkit;component/DateTimePickers/DatePickerPage.xaml", System.UriKind.Relative));
     this.VisibilityStates = ((System.Windows.VisualStateGroup)(this.FindName("VisibilityStates")));
     this.Open = ((System.Windows.VisualState)(this.FindName("Open")));
     this.Closed = ((System.Windows.VisualState)(this.FindName("Closed")));
     this.PlaneProjection = ((System.Windows.Media.PlaneProjection)(this.FindName("PlaneProjection")));
     this.SystemTrayPlaceholder = ((System.Windows.Shapes.Rectangle)(this.FindName("SystemTrayPlaceholder")));
     this.SecondarySelector = ((Microsoft.Phone.Controls.Primitives.LoopingSelector)(this.FindName("SecondarySelector")));
     this.TertiarySelector = ((Microsoft.Phone.Controls.Primitives.LoopingSelector)(this.FindName("TertiarySelector")));
     this.PrimarySelector = ((Microsoft.Phone.Controls.Primitives.LoopingSelector)(this.FindName("PrimarySelector")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Microsoft.HealthMonitorPlayer;component/Views/Player.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.SettingStates = ((System.Windows.VisualStateGroup)(this.FindName("SettingStates")));
     this.SettingsVisible = ((System.Windows.VisualState)(this.FindName("SettingsVisible")));
     this.SettingsHidden = ((System.Windows.VisualState)(this.FindName("SettingsHidden")));
     this.playerSmooth = ((Microsoft.SilverlightMediaFramework.Core.SMFPlayer)(this.FindName("playerSmooth")));
     this.SettingsPanel = ((System.Windows.Controls.Border)(this.FindName("SettingsPanel")));
     this.SettingsScaler = ((System.Windows.Media.ScaleTransform)(this.FindName("SettingsScaler")));
     this.TraceConfig = ((Microsoft.HealthMonitorPlayer.Views.TraceConfig)(this.FindName("TraceConfig")));
 }
示例#13
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Flippingcardanimation;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.VisualStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("VisualStateGroup")));
     this.FlipCardFront = ((System.Windows.VisualState)(this.FindName("FlipCardFront")));
     this.FlipCardBack = ((System.Windows.VisualState)(this.FindName("FlipCardBack")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.backrectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("backrectangle")));
     this.frontrectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("frontrectangle")));
 }
示例#14
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EmbeddedSystemsProject;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.VisualStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("VisualStateGroup")));
     this.button1 = ((System.Windows.Controls.Button)(this.FindName("button1")));
     this.txtHostName = ((System.Windows.Controls.TextBox)(this.FindName("txtHostName")));
     this.txtPortNumber = ((System.Windows.Controls.TextBox)(this.FindName("txtPortNumber")));
     this.btnSave = ((System.Windows.Controls.Button)(this.FindName("btnSave")));
     this.btnClear = ((System.Windows.Controls.Button)(this.FindName("btnClear")));
     this.checkBox1 = ((System.Windows.Controls.CheckBox)(this.FindName("checkBox1")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Contacts;component/Views/ContactsView.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ViewStates = ((System.Windows.VisualStateGroup)(this.FindName("ViewStates")));
     this.ListState = ((System.Windows.VisualState)(this.FindName("ListState")));
     this.OpportunitiesState = ((System.Windows.VisualState)(this.FindName("OpportunitiesState")));
     this.ActivitiesState = ((System.Windows.VisualState)(this.FindName("ActivitiesState")));
     this.ContactsListRegion = ((System.Windows.Controls.ContentControl)(this.FindName("ContactsListRegion")));
     this.ContactDetailsRegion = ((System.Windows.Controls.ContentControl)(this.FindName("ContactDetailsRegion")));
     this.ContactMiscDetailsRegion = ((System.Windows.Controls.ContentControl)(this.FindName("ContactMiscDetailsRegion")));
 }
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Controls/CaptionSettingsPopupContents.xaml", UriKind.Relative));
         this.userControl = (UserControl) base.FindName("userControl");
         this.LanguageOptionStates = (VisualStateGroup) base.FindName("LanguageOptionStates");
         this.ShowSettings = (VisualState) base.FindName("ShowSettings");
         this.HideSettings = (VisualState) base.FindName("HideSettings");
         this.MouseOverRect = (Rectangle) base.FindName("MouseOverRect");
         this.CaptionsToggle = (TextToggleButton) base.FindName("CaptionsToggle");
         this.SettingsGrid = (Grid) base.FindName("SettingsGrid");
         this.languageListBox = (ListBox) base.FindName("languageListBox");
         this.ClosedCaptioningSettings = (Button) base.FindName("ClosedCaptioningSettings");
     }
 }
示例#17
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/JNotes;component/Views/TreeViewItemUC.xaml", System.UriKind.Relative));
     this.userControl = ((System.Windows.Controls.UserControl)(this.FindName("userControl")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.EditStates = ((System.Windows.VisualStateGroup)(this.FindName("EditStates")));
     this.EditOff = ((System.Windows.VisualState)(this.FindName("EditOff")));
     this.EditOn = ((System.Windows.VisualState)(this.FindName("EditOn")));
     this.VisibilityStates = ((System.Windows.VisualStateGroup)(this.FindName("VisibilityStates")));
     this.Normal = ((System.Windows.VisualState)(this.FindName("Normal")));
     this.Collapsed = ((System.Windows.VisualState)(this.FindName("Collapsed")));
     this.textBlock = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock")));
     this.txtEdit = ((System.Windows.Controls.TextBox)(this.FindName("txtEdit")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ERP;component/Views/Login/LoginStatus.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.loginStates = ((System.Windows.VisualStateGroup)(this.FindName("loginStates")));
     this.windowsAuth = ((System.Windows.VisualState)(this.FindName("windowsAuth")));
     this.loggedIn = ((System.Windows.VisualState)(this.FindName("loggedIn")));
     this.loggedOut = ((System.Windows.VisualState)(this.FindName("loggedOut")));
     this.loginControls = ((System.Windows.Controls.StackPanel)(this.FindName("loginControls")));
     this.loginButton = ((System.Windows.Controls.Button)(this.FindName("loginButton")));
     this.logoutControls = ((System.Windows.Controls.StackPanel)(this.FindName("logoutControls")));
     this.welcomeText = ((System.Windows.Controls.TextBlock)(this.FindName("welcomeText")));
     this.logoutButton = ((System.Windows.Controls.Button)(this.FindName("logoutButton")));
 }
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Views/LiveAssetInfoView.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.AssetInfoLoadingStates = (VisualStateGroup) base.FindName("AssetInfoLoadingStates");
         this.Loading = (VisualState) base.FindName("Loading");
         this.LoadedState = (VisualState) base.FindName("LoadedState");
         this.LoadedGrid = (Grid) base.FindName("LoadedGrid");
         this.assetInfoPanel = (BubbleContentControl) base.FindName("assetInfoPanel");
         this.LoadingGrid = (Grid) base.FindName("LoadingGrid");
         this.assetInfoPanel_Copy = (BubbleContentControl) base.FindName("assetInfoPanel_Copy");
         this.Spinner = (LoadSpinnerControl) base.FindName("Spinner");
     }
 }
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Views/AssetViewerView.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.ErrorStates = (VisualStateGroup) base.FindName("ErrorStates");
         this.ErrorMessageShown = (VisualState) base.FindName("ErrorMessageShown");
         this.ErrorMessageNotShown = (VisualState) base.FindName("ErrorMessageNotShown");
         this.LoadingStates = (VisualStateGroup) base.FindName("LoadingStates");
         this.Loading = (VisualState) base.FindName("Loading");
         this.NotLoading = (VisualState) base.FindName("NotLoading");
         this.Player = (ContentControl) base.FindName("Player");
         this.assetLoadingControl = (LoadingPanelControl) base.FindName("assetLoadingControl");
         this.ErrorMessage = (ErrorMessageBox) base.FindName("ErrorMessage");
     }
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Contacts;component/Views/ContactOpportunitiesUs" +
                 "erControl.xaml", System.UriKind.Relative));
     this.uc = ((System.Windows.Controls.UserControl)(this.FindName("uc")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.VisualStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("VisualStateGroup")));
     this.Normal = ((System.Windows.VisualState)(this.FindName("Normal")));
     this.Edit = ((System.Windows.VisualState)(this.FindName("Edit")));
     this.opportunitiesGrid = ((RadGridView)(this.FindName("opportunitiesGrid")));
     this.overlayRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("overlayRectangle")));
     this.border = ((System.Windows.Controls.Border)(this.FindName("border")));
     this.dataForm = ((RadDataForm)(this.FindName("dataForm")));
     this.productsDataSource = ((RadDomainDataSource)(this.FindName("productsDataSource")));
 }
示例#22
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SMT.FileUpLoad;component/FileUploadRowControl.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Border)(this.FindName("LayoutRoot")));
     this.StatusGroup = ((System.Windows.VisualStateGroup)(this.FindName("StatusGroup")));
     this.Pending = ((System.Windows.VisualState)(this.FindName("Pending")));
     this.Resizing = ((System.Windows.VisualState)(this.FindName("Resizing")));
     this.Error = ((System.Windows.VisualState)(this.FindName("Error")));
     this.Complete = ((System.Windows.VisualState)(this.FindName("Complete")));
     this.Uploading = ((System.Windows.VisualState)(this.FindName("Uploading")));
     this.imagePreview = ((System.Windows.Controls.Image)(this.FindName("imagePreview")));
     this.TbName = ((System.Windows.Controls.TextBlock)(this.FindName("TbName")));
     this.PercentageProgress = ((System.Windows.Controls.ProgressBar)(this.FindName("PercentageProgress")));
     this.removeButton = ((System.Windows.Controls.Button)(this.FindName("removeButton")));
 }
示例#23
0
 /// <summary>
 /// Transitions a control between states.
 /// </summary>
 /// <param name="control">The control to transition between states.</param>
 /// <param name="templateRoot">The root element of the control's <see cref="T:System.Windows.Controls.ControlTemplate"/>.</param>
 /// <param name="stateName">The name of the state to transition to.</param>
 /// <param name="group">The <see cref="T:System.Windows.VisualStateGroup"/> that the state belongs to.</param>
 /// <param name="state">The representation of the state to transition to.</param>
 /// <param name="useTransitions"><c>true</c> to use a <see cref="T:System.Windows.VisualTransition"/> to transition between states; otherwise, <c>false</c>.</param>
 /// <returns>
 /// <c>true</c> if the control successfully transitioned to the new state; otherwise, <c>false</c>.
 /// </returns>
 protected override bool GoToStateCore(Control control, FrameworkElement templateRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
 {
     if (state == null)
     {
         return false;
     }
     Storyboard storyboard = state.Storyboard;
     if (storyboard == null || storyboard.GetCurrentState() != ClockState.Stopped ||
         !string.IsNullOrEmpty(Storyboard.GetTargetName(storyboard)))
     {
         return base.GoToStateCore(control, templateRoot, stateName, group, state, useTransitions);
     }
     foreach (Timeline timeline in storyboard.Children.Where(timeline => string.IsNullOrEmpty(Storyboard.GetTargetName(timeline))))
     {
         Storyboard.SetTarget(timeline, control);
     }
     return base.GoToStateCore(control, templateRoot, stateName, group, state, useTransitions);
 }
示例#24
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Meme%20Generator;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.NetworkStates = ((System.Windows.VisualStateGroup)(this.FindName("NetworkStates")));
     this.Connected = ((System.Windows.VisualState)(this.FindName("Connected")));
     this.NotConnected = ((System.Windows.VisualState)(this.FindName("NotConnected")));
     this.panorama = ((Microsoft.Phone.Controls.Panorama)(this.FindName("panorama")));
     this.newPanorama = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("newPanorama")));
     this.newBox = ((System.Windows.Controls.ListBox)(this.FindName("newBox")));
     this.newNotConnected = ((System.Windows.Controls.TextBlock)(this.FindName("newNotConnected")));
     this.popularPanorama = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("popularPanorama")));
     this.popularBox = ((System.Windows.Controls.ListBox)(this.FindName("popularBox")));
     this.popNotConnected = ((System.Windows.Controls.TextBlock)(this.FindName("popNotConnected")));
 }
示例#25
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/LateralMenus;component/MainPage.xaml", System.UriKind.Relative));
     this.canvas = ((System.Windows.Controls.Canvas)(this.FindName("canvas")));
     this.moveAnimation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("moveAnimation")));
     this.CommonStates = ((System.Windows.VisualStateGroup)(this.FindName("CommonStates")));
     this.Normal = ((System.Windows.VisualState)(this.FindName("Normal")));
     this.LeftMenuOpened = ((System.Windows.VisualState)(this.FindName("LeftMenuOpened")));
     this.RightMenuOpened = ((System.Windows.VisualState)(this.FindName("RightMenuOpened")));
     this.LayoutRoot = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.grdCommands = ((System.Windows.Controls.Grid)(this.FindName("grdCommands")));
     this.Add = ((System.Windows.Controls.Button)(this.FindName("Add")));
     this.ListBox1 = ((System.Windows.Controls.ListBox)(this.FindName("ListBox1")));
     this.RecordingDetails = ((System.Windows.Controls.StackPanel)(this.FindName("RecordingDetails")));
 }
示例#26
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MySchoolApp;component/FeedPage.xaml", System.UriKind.Relative));
     this.Page = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("Page")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.LoadingStates = ((System.Windows.VisualStateGroup)(this.FindName("LoadingStates")));
     this.LoadingState = ((System.Windows.VisualState)(this.FindName("LoadingState")));
     this.CompletedState = ((System.Windows.VisualState)(this.FindName("CompletedState")));
     this.ErrorState = ((System.Windows.VisualState)(this.FindName("ErrorState")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.loadingTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("loadingTextBlock")));
     this.feedListBox = ((System.Windows.Controls.ListBox)(this.FindName("feedListBox")));
     this.progressBar = ((Microsoft.Phone.Controls.PerformanceProgressBar)(this.FindName("progressBar")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Photo_inspector_gadget;component/MainPage.xaml", System.UriKind.Relative));
     this.Container = ((System.Windows.Controls.Grid)(this.FindName("Container")));
     this.SettingsStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("SettingsStateGroup")));
     this.SettingsOpenState = ((System.Windows.VisualState)(this.FindName("SettingsOpenState")));
     this.SettingsClosedState = ((System.Windows.VisualState)(this.FindName("SettingsClosedState")));
     this.SettingsPane = ((System.Windows.Controls.ScrollViewer)(this.FindName("SettingsPane")));
     this.ListPicture = ((System.Windows.Controls.StackPanel)(this.FindName("ListPicture")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.Canvas = ((System.Windows.Controls.Canvas)(this.FindName("Canvas")));
     this.ViewfinderVideoBrush = ((System.Windows.Media.VideoBrush)(this.FindName("ViewfinderVideoBrush")));
     this.FocusBracket = ((System.Windows.Controls.Border)(this.FindName("FocusBracket")));
     this.FreezeImage = ((System.Windows.Controls.Image)(this.FindName("FreezeImage")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Companies;component/Views/CompanyActivitiesUser" +
                 "Control.xaml", System.UriKind.Relative));
     this.uc = ((System.Windows.Controls.UserControl)(this.FindName("uc")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.VisualStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("VisualStateGroup")));
     this.Normal = ((System.Windows.VisualState)(this.FindName("Normal")));
     this.Add = ((System.Windows.VisualState)(this.FindName("Add")));
     this.Edit = ((System.Windows.VisualState)(this.FindName("Edit")));
     this.scheduleView = ((RadScheduleView)(this.FindName("scheduleView")));
     this.activitiesGrid = ((RadGridView)(this.FindName("activitiesGrid")));
     this.Status = ((GridViewDataColumn)(this.FindName("Status")));
     this.overlayRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("overlayRectangle")));
     this.border = ((System.Windows.Controls.Border)(this.FindName("border")));
     this.dialog = ((Procbel.Apps.Silverlight.Helpers.ScheduleViewCustomDialogHost)(this.FindName("dialog")));
 }
示例#29
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/TrumpBubbles;component/Views/BubbleNormal.xaml", System.UriKind.Relative));
     this.x_RootLayout = ((System.Windows.Controls.Grid)(this.FindName("x_RootLayout")));
     this.CommonStates = ((System.Windows.VisualStateGroup)(this.FindName("CommonStates")));
     this.Shown = ((System.Windows.VisualState)(this.FindName("Shown")));
     this.NotShown = ((System.Windows.VisualState)(this.FindName("NotShown")));
     this.x_Header = ((System.Windows.Controls.StackPanel)(this.FindName("x_Header")));
     this.x_Icon = ((System.Windows.Controls.Image)(this.FindName("x_Icon")));
     this.x_OpenText = ((System.Windows.Controls.TextBlock)(this.FindName("x_OpenText")));
     this.x_OpenImage = ((System.Windows.Controls.Image)(this.FindName("x_OpenImage")));
     this.x_Title = ((System.Windows.Controls.TextBlock)(this.FindName("x_Title")));
     this.x_ItemContent = ((System.Windows.Controls.ContentControl)(this.FindName("x_ItemContent")));
     this.x_CallToActionSP = ((System.Windows.Controls.StackPanel)(this.FindName("x_CallToActionSP")));
     this.x_CallToActionBtn = ((System.Windows.Controls.Image)(this.FindName("x_CallToActionBtn")));
     this.x_CallToActionText = ((System.Windows.Controls.TextBlock)(this.FindName("x_CallToActionText")));
 }
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            this.LayoutRoot = ((System.Windows.Controls.Grid)(this.GetTemplateChild("LayoutRoot")));
            this.TabStates = ((System.Windows.VisualStateGroup)(this.GetTemplateChild("TabStates")));
            this.Select1 = ((System.Windows.VisualState)(this.GetTemplateChild("Select1")));
            this.Select2 = ((System.Windows.VisualState)(this.GetTemplateChild("Select2")));
            this.Tab1 = ((System.Windows.Controls.Grid)(this.GetTemplateChild("Tab1")));
            this.Tab1_Selected = ((System.Windows.Controls.ContentPresenter)(this.GetTemplateChild("Tab1_Selected")));
            this.Tab1_Unselected = ((System.Windows.Controls.Grid)(this.GetTemplateChild("Tab1_Unselected")));
            this.Tab2 = ((System.Windows.Controls.Grid)(this.GetTemplateChild("Tab2")));
            this.Tab2_Selected = ((System.Windows.Controls.ContentPresenter)(this.GetTemplateChild("Tab2_Selected")));
            this.Tab2_Unselected = ((System.Windows.Controls.Grid)(this.GetTemplateChild("Tab2_Unselected")));
            this.Button1 = ((System.Windows.Controls.Button)(this.GetTemplateChild("Button1")));
            this.Button2 = ((System.Windows.Controls.Button)(this.GetTemplateChild("Button2")));

            Button1.Click += Button1_Click;
            Button2.Click += Button2_Click;
        }
示例#31
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.userControl = ((BPiaoBao.Client.DomesticTicket.View.PNRControl)(target));
                return;

            case 2:
                this.PNRTypeStateGroup = ((System.Windows.VisualStateGroup)(target));
                return;

            case 3:
                this.Normal0State = ((System.Windows.VisualState)(target));
                return;

            case 4:
                this.NormalState = ((System.Windows.VisualState)(target));
                return;

            case 5:
                this.ChildState = ((System.Windows.VisualState)(target));
                return;

            case 6:
                this.UpState = ((System.Windows.VisualState)(target));
                return;

            case 7:
                this.ChildStateGroup = ((System.Windows.VisualStateGroup)(target));
                return;

            case 8:
                this.Child1State = ((System.Windows.VisualState)(target));
                return;

            case 9:
                this.Child2State = ((System.Windows.VisualState)(target));
                return;

            case 10:
                this.TextBoxStateGroup = ((System.Windows.VisualStateGroup)(target));
                return;

            case 11:
                this.FocusState = ((System.Windows.VisualState)(target));
                return;

            case 12:
                this.FocusState1 = ((System.Windows.VisualState)(target));
                return;

            case 13:
                this.FocusState0 = ((System.Windows.VisualState)(target));
                return;

            case 14:
                this.UnFocusState = ((System.Windows.VisualState)(target));
                return;

            case 15:
                this.topBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 16:
                this.cbSH = ((System.Windows.Controls.CheckBox)(target));

            #line 342 "..\..\..\View\PNRControl.xaml"
                this.cbSH.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChecked);

            #line default
            #line hidden

            #line 342 "..\..\..\View\PNRControl.xaml"
                this.cbSH.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnUnchecked);

            #line default
            #line hidden
                return;

            case 17:
                this.Child2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 18:
                this.dg = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 19:
                this.ChildPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 20:
                this.UpPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 21:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 22:
                this.watermarkTextBox1 = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 23:
                this.btnStackPanel1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 24:
                this.border = ((System.Windows.Controls.Border)(target));
                return;

            case 25:
                this.watermarkTextBox = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 26:
                this.btnStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 27:
                this.border0 = ((System.Windows.Controls.Border)(target));
                return;

            case 28:
                this.watermarkTextBox0 = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 29:
                this.btnStackPanel0 = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
 protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
 {
 }
示例#33
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Database(fireworks);component/editor.xaml", System.UriKind.Relative));
     this.Storyboard1      = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1")));
     this.LayoutRoot       = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.Scale            = ((System.Windows.Media.ScaleTransform)(this.FindName("Scale")));
     this.Translate        = ((System.Windows.Media.TranslateTransform)(this.FindName("Translate")));
     this.flyout_states    = ((System.Windows.VisualStateGroup)(this.FindName("flyout_states")));
     this.none             = ((System.Windows.VisualState)(this.FindName("none")));
     this.insert           = ((System.Windows.VisualState)(this.FindName("insert")));
     this.format           = ((System.Windows.VisualState)(this.FindName("format")));
     this.table            = ((System.Windows.VisualState)(this.FindName("table")));
     this.workspace_states = ((System.Windows.VisualStateGroup)(this.FindName("workspace_states")));
     this.code_v           = ((System.Windows.VisualState)(this.FindName("code_v")));
     this.design_v         = ((System.Windows.VisualState)(this.FindName("design_v")));
     this.starting         = ((System.Windows.VisualStateGroup)(this.FindName("starting")));
     this.start            = ((System.Windows.VisualState)(this.FindName("start")));
     this.popup            = ((System.Windows.VisualStateGroup)(this.FindName("popup")));
     this.modalfade        = ((System.Windows.VisualState)(this.FindName("modalfade")));
     this.layout           = ((System.Windows.Shapes.Rectangle)(this.FindName("layout")));
     this.starlayoutroot   = ((System.Windows.Controls.Canvas)(this.FindName("starlayoutroot")));
     this.browseninsert    = ((System.Windows.Controls.Button)(this.FindName("browseninsert")));
     this.myimage          = ((System.Windows.Controls.Image)(this.FindName("myimage")));
     this.mytext           = ((System.Windows.Controls.TextBlock)(this.FindName("mytext")));
     this.textbox1         = ((System.Windows.Controls.TextBlock)(this.FindName("textbox1")));
     this.workspace        = ((System.Windows.Controls.Canvas)(this.FindName("workspace")));
     this.but_design       = ((System.Windows.Controls.Button)(this.FindName("but_design")));
     this.but_code         = ((System.Windows.Controls.Button)(this.FindName("but_code")));
     this.rect_code        = ((System.Windows.Shapes.Rectangle)(this.FindName("rect_code")));
     this.text_design      = ((System.Windows.Controls.TextBlock)(this.FindName("text_design")));
     this.text_code        = ((System.Windows.Controls.TextBlock)(this.FindName("text_code")));
     this.canvas_code      = ((System.Windows.Controls.Canvas)(this.FindName("canvas_code")));
     this.rtb1             = ((Liquid.RichTextBox)(this.FindName("rtb1")));
     this.stackPanel       = ((System.Windows.Controls.StackPanel)(this.FindName("stackPanel")));
     this.tool_undo        = ((System.Windows.Controls.Button)(this.FindName("tool_undo")));
     this.tool_redo        = ((System.Windows.Controls.Button)(this.FindName("tool_redo")));
     this.tool_cut         = ((System.Windows.Controls.Button)(this.FindName("tool_cut")));
     this.tool_copy        = ((System.Windows.Controls.Button)(this.FindName("tool_copy")));
     this.tool_paste       = ((System.Windows.Controls.Button)(this.FindName("tool_paste")));
     this.tool_find        = ((System.Windows.Controls.Button)(this.FindName("tool_find")));
     this.zoom             = ((System.Windows.Controls.ComboBox)(this.FindName("zoom")));
     this.canvas_design    = ((System.Windows.Controls.Canvas)(this.FindName("canvas_design")));
     this.rtb                    = ((Liquid.RichTextBox)(this.FindName("rtb")));
     this.red                    = ((System.Windows.Shapes.Rectangle)(this.FindName("red")));
     this.sidebar_insert         = ((System.Windows.Controls.Canvas)(this.FindName("sidebar_insert")));
     this.tool_button            = ((System.Windows.Controls.Button)(this.FindName("tool_button")));
     this.tool_label             = ((System.Windows.Controls.Button)(this.FindName("tool_label")));
     this.tool_textbox           = ((System.Windows.Controls.Button)(this.FindName("tool_textbox")));
     this.tool_radio             = ((System.Windows.Controls.Button)(this.FindName("tool_radio")));
     this.tool_check             = ((System.Windows.Controls.Button)(this.FindName("tool_check")));
     this.tool_hyperlink         = ((System.Windows.Controls.Button)(this.FindName("tool_hyperlink")));
     this.tool_line              = ((System.Windows.Controls.Button)(this.FindName("tool_line")));
     this.tool_image             = ((System.Windows.Controls.Button)(this.FindName("tool_image")));
     this.tool_table             = ((System.Windows.Controls.Button)(this.FindName("tool_table")));
     this.buttonimage            = ((System.Windows.Controls.Image)(this.FindName("buttonimage")));
     this.sidebar_format         = ((System.Windows.Controls.Canvas)(this.FindName("sidebar_format")));
     this.tool_bold              = ((System.Windows.Controls.Button)(this.FindName("tool_bold")));
     this.tool_italic            = ((System.Windows.Controls.Button)(this.FindName("tool_italic")));
     this.tool_underline         = ((System.Windows.Controls.Button)(this.FindName("tool_underline")));
     this.tool_alignc            = ((System.Windows.Controls.Button)(this.FindName("tool_alignc")));
     this.tool_alignl            = ((System.Windows.Controls.Button)(this.FindName("tool_alignl")));
     this.tool_alignr            = ((System.Windows.Controls.Button)(this.FindName("tool_alignr")));
     this.tool_num               = ((System.Windows.Controls.Button)(this.FindName("tool_num")));
     this.tool_bul               = ((System.Windows.Controls.Button)(this.FindName("tool_bul")));
     this.tool_indent            = ((System.Windows.Controls.Button)(this.FindName("tool_indent")));
     this.tool_outdent           = ((System.Windows.Controls.Button)(this.FindName("tool_outdent")));
     this.tool_sub               = ((System.Windows.Controls.Button)(this.FindName("tool_sub")));
     this.tool_super             = ((System.Windows.Controls.Button)(this.FindName("tool_super")));
     this.tool_strike            = ((System.Windows.Controls.Button)(this.FindName("tool_strike")));
     this.tool_styles            = ((System.Windows.Controls.Button)(this.FindName("tool_styles")));
     this.selectFontFamily       = ((System.Windows.Controls.ComboBox)(this.FindName("selectFontFamily")));
     this.selectFontSize         = ((System.Windows.Controls.ComboBox)(this.FindName("selectFontSize")));
     this.selectShadow           = ((System.Windows.Controls.ComboBox)(this.FindName("selectShadow")));
     this.selectColor            = ((Liquid.ColorSelector)(this.FindName("selectColor")));
     this.selectBackground       = ((Liquid.ColorSelector)(this.FindName("selectBackground")));
     this.sidebar_table          = ((System.Windows.Controls.Canvas)(this.FindName("sidebar_table")));
     this.tool_addrow            = ((System.Windows.Controls.Button)(this.FindName("tool_addrow")));
     this.tool_addcol            = ((System.Windows.Controls.Button)(this.FindName("tool_addcol")));
     this.tool_delrow            = ((System.Windows.Controls.Button)(this.FindName("tool_delrow")));
     this.tool_delcol            = ((System.Windows.Controls.Button)(this.FindName("tool_delcol")));
     this.tool_edit_table        = ((System.Windows.Controls.Button)(this.FindName("tool_edit_table")));
     this.detail_page_menus      = ((System.Windows.Controls.Canvas)(this.FindName("detail_page_menus")));
     this.but_insert             = ((System.Windows.Controls.Button)(this.FindName("but_insert")));
     this.but_format             = ((System.Windows.Controls.Button)(this.FindName("but_format")));
     this.but_table              = ((System.Windows.Controls.Button)(this.FindName("but_table")));
     this.but_templates          = ((System.Windows.Controls.Button)(this.FindName("but_templates")));
     this.menubar                = ((System.Windows.Controls.Canvas)(this.FindName("menubar")));
     this.testMenu               = ((Liquid.MainMenu)(this.FindName("testMenu")));
     this.RootElement            = ((System.Windows.Controls.Grid)(this.FindName("RootElement")));
     this.ElementHover           = ((System.Windows.Shapes.Rectangle)(this.FindName("ElementHover")));
     this.ElementText            = ((System.Windows.Controls.TextBlock)(this.FindName("ElementText")));
     this.datetime               = ((System.Windows.Controls.TextBlock)(this.FindName("datetime")));
     this.filename               = ((System.Windows.Controls.TextBlock)(this.FindName("filename")));
     this.layout_Copy            = ((System.Windows.Shapes.Rectangle)(this.FindName("layout_Copy")));
     this.tooltip_bubble         = ((Liquid.Bubble)(this.FindName("tooltip_bubble")));
     this.tooltip_sp             = ((System.Windows.Controls.StackPanel)(this.FindName("tooltip_sp")));
     this.tooltip_image          = ((System.Windows.Controls.Image)(this.FindName("tooltip_image")));
     this.tooltip_text           = ((System.Windows.Controls.TextBlock)(this.FindName("tooltip_text")));
     this.fader                  = ((System.Windows.Shapes.Rectangle)(this.FindName("fader")));
     this.stylePopup             = ((Liquid.Dialog)(this.FindName("stylePopup")));
     this.selectStyle            = ((System.Windows.Controls.ListBox)(this.FindName("selectStyle")));
     this.button                 = ((System.Windows.Controls.Button)(this.FindName("button")));
     this.myrect                 = ((System.Windows.Shapes.Rectangle)(this.FindName("myrect")));
     this.areYouSure             = ((Liquid.Dialog)(this.FindName("areYouSure")));
     this.stack1                 = ((System.Windows.Controls.StackPanel)(this.FindName("stack1")));
     this.name                   = ((System.Windows.Controls.TextBlock)(this.FindName("name")));
     this.name1                  = ((System.Windows.Controls.TextBox)(this.FindName("name1")));
     this.value                  = ((System.Windows.Controls.TextBlock)(this.FindName("value")));
     this.value1                 = ((System.Windows.Controls.TextBox)(this.FindName("value1")));
     this.stack_lbl              = ((System.Windows.Controls.StackPanel)(this.FindName("stack_lbl")));
     this.name4                  = ((System.Windows.Controls.TextBlock)(this.FindName("name4")));
     this.txt_lbl                = ((System.Windows.Controls.TextBox)(this.FindName("txt_lbl")));
     this.stack2                 = ((System.Windows.Controls.StackPanel)(this.FindName("stack2")));
     this.checked_box            = ((System.Windows.Controls.CheckBox)(this.FindName("checked_box")));
     this.insertEditTableDialog  = ((Liquid.Dialog)(this.FindName("insertEditTableDialog")));
     this.tableColumns           = ((System.Windows.Controls.TextBox)(this.FindName("tableColumns")));
     this.tableRows              = ((System.Windows.Controls.TextBox)(this.FindName("tableRows")));
     this.tableStyle             = ((System.Windows.Controls.ComboBox)(this.FindName("tableStyle")));
     this.TableRed               = ((Liquid.Table)(this.FindName("TableRed")));
     this.tablePreview           = ((Liquid.Table)(this.FindName("tablePreview")));
     this.findPopup              = ((Liquid.Dialog)(this.FindName("findPopup")));
     this.searchTerms            = ((System.Windows.Controls.TextBox)(this.FindName("searchTerms")));
     this.search                 = ((System.Windows.Controls.Button)(this.FindName("search")));
     this.enterURL               = ((Liquid.Dialog)(this.FindName("enterURL")));
     this.url                    = ((System.Windows.Controls.TextBox)(this.FindName("url")));
     this.previewPopup           = ((Liquid.Dialog)(this.FindName("previewPopup")));
     this.previewRichText        = ((Liquid.RichTextBlock)(this.FindName("previewRichText")));
     this.dropdown_popup         = ((Liquid.Dialog)(this.FindName("dropdown_popup")));
     this.name2                  = ((System.Windows.Controls.TextBlock)(this.FindName("name2")));
     this.name3                  = ((System.Windows.Controls.TextBox)(this.FindName("name3")));
     this.value2                 = ((System.Windows.Controls.TextBlock)(this.FindName("value2")));
     this.value3                 = ((System.Windows.Controls.TextBox)(this.FindName("value3")));
     this.comboitems             = ((System.Windows.Controls.StackPanel)(this.FindName("comboitems")));
     this.comboitem1             = ((System.Windows.Controls.TextBox)(this.FindName("comboitem1")));
     this.comboitem2             = ((System.Windows.Controls.TextBox)(this.FindName("comboitem2")));
     this.comboitem3             = ((System.Windows.Controls.TextBox)(this.FindName("comboitem3")));
     this.image_popup            = ((Liquid.Dialog)(this.FindName("image_popup")));
     this.Holder                 = ((System.Windows.Controls.Canvas)(this.FindName("Holder")));
     this.imgtext                = ((System.Windows.Controls.TextBlock)(this.FindName("imgtext")));
     this.MoveLeftButton         = ((System.Windows.Controls.Image)(this.FindName("MoveLeftButton")));
     this.MoveRightButton        = ((System.Windows.Controls.Image)(this.FindName("MoveRightButton")));
     this.image_width            = ((System.Windows.Controls.TextBox)(this.FindName("image_width")));
     this.image_height           = ((System.Windows.Controls.TextBox)(this.FindName("image_height")));
     this.FullScreen1            = ((System.Windows.Controls.Button)(this.FindName("FullScreen1")));
     this.FullScreen2            = ((System.Windows.Controls.Button)(this.FindName("FullScreen2")));
     this.dragging               = ((System.Windows.Controls.Image)(this.FindName("dragging")));
     this.editor_popup_save      = ((Liquid.Dialog)(this.FindName("editor_popup_save")));
     this.editor_tblock_savefile = ((System.Windows.Controls.TextBlock)(this.FindName("editor_tblock_savefile")));
     this.editor_btn_saveyes     = ((System.Windows.Controls.Button)(this.FindName("editor_btn_saveyes")));
     this.editor_btn_saveno      = ((System.Windows.Controls.Button)(this.FindName("editor_btn_saveno")));
     this.editor_btn_savecancel  = ((System.Windows.Controls.Button)(this.FindName("editor_btn_savecancel")));
     this.editor_rect_fader      = ((System.Windows.Shapes.Rectangle)(this.FindName("editor_rect_fader")));
 }
 //
 // Summary:
 //     Raises the System.Windows.VisualStateGroup.CurrentStateChanging event on
 //     the specified System.Windows.VisualStateGroup.
 //
 // Parameters:
 //   stateGroup:
 //     The object on which the System.Windows.VisualStateGroup.CurrentStateChanging
 //     event
 //
 //   oldState:
 //     The state that the control is transitioning from.
 //
 //   newState:
 //     The state that the control is transitioning to.
 //
 //   control:
 //     The control that is transitioning states.
 //
 // Exceptions:
 //   System.ArgumentNullException:
 //     stateGroup is null.-or-newState is null.-or-control is null.
 protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, Control control);
示例#35
0
        private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group)
        {
            bool flag  = true;
            bool flag2 = true;

            if (control != null && !control.IsVisible)
            {
                flag = (PresentationSource.CriticalFromVisual(control) != null);
            }
            if (stateGroupsRoot != null && !stateGroupsRoot.IsVisible)
            {
                flag2 = (PresentationSource.CriticalFromVisual(stateGroupsRoot) != null);
            }
            return(flag && flag2 && state == group.CurrentState);
        }
示例#36
0
 /// <summary>
 ///     Allows subclasses to override the GoToState logic.
 /// </summary>
 protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
 {
     return(GoToStateInternal(control, stateGroupsRoot, group, state, useTransitions));
 }
示例#37
0
        private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition)
        {
            IEasingFunction easingFunction = null;
            Storyboard      dynamic        = new Storyboard();

            if (transition != null)
            {
                if (transition.GeneratedDuration != null)
                {
                    dynamic.Duration = transition.GeneratedDuration;
                }

                easingFunction = transition.GeneratedEasingFunction;
            }
            else
            {
                dynamic.Duration = new Duration(TimeSpan.Zero);
            }

            Dictionary <TimelineDataToken, Timeline> currentAnimations    = FlattenTimelines(group.CurrentStoryboards);
            Dictionary <TimelineDataToken, Timeline> transitionAnimations = FlattenTimelines(transition != null ? transition.Storyboard : null);
            Dictionary <TimelineDataToken, Timeline> newStateAnimations   = FlattenTimelines(newState.Storyboard);

            // Remove any animations that the transition already animates.
            // There is no need to create an interstitial animation if one already exists.
            foreach (KeyValuePair <TimelineDataToken, Timeline> pair in transitionAnimations)
            {
                currentAnimations.Remove(pair.Key);
                newStateAnimations.Remove(pair.Key);
            }

            // Generate the "to" animations
            foreach (KeyValuePair <TimelineDataToken, Timeline> pair in newStateAnimations)
            {
                // The new "To" Animation -- the root is passed as a reference point for name
                // lookup.
                Timeline toAnimation = GenerateToAnimation(root, pair.Value, easingFunction, true);

                // If the animation is of a type that we can't generate transition animations
                // for, GenerateToAnimation will return null, and we should just keep going.
                if (toAnimation != null)
                {
                    toAnimation.Duration = dynamic.Duration;
                    dynamic.Children.Add(toAnimation);
                }

                // Remove this from the list of current state animations we have to consider next
                currentAnimations.Remove(pair.Key);
            }

            // Generate the "from" animations
            foreach (KeyValuePair <TimelineDataToken, Timeline> pair in currentAnimations)
            {
                Timeline fromAnimation = GenerateFromAnimation(root, pair.Value, easingFunction);
                if (fromAnimation != null)
                {
                    fromAnimation.Duration = dynamic.Duration;
                    dynamic.Children.Add(fromAnimation);
                }
            }

            return(dynamic);
        }
示例#38
0
        private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions)
        {
            if (stateGroupsRoot == null)
            {
                throw new ArgumentNullException("stateGroupsRoot");
            }

            if (state == null)
            {
                throw new ArgumentNullException("state");
            }

            if (group == null)
            {
                throw new InvalidOperationException();
            }

            VisualState lastState = group.CurrentState;

            if (lastState == state)
            {
                return(true);
            }

            // Get the transition Storyboard. Even if there are no transitions specified, there might
            // be properties that we're rolling back to their default values.
            VisualTransition transition = useTransitions ? VisualStateManager.GetTransition(stateGroupsRoot, group, lastState, state) : null;

            // Generate dynamicTransition Storyboard
            Storyboard dynamicTransition = GenerateDynamicTransitionAnimations(stateGroupsRoot, group, state, transition);

            // If the transition is null, then we want to instantly snap. The dynamicTransition will
            // consist of everything that is being moved back to the default state.
            // If the transition.Duration and explicit storyboard duration is zero, then we want both the dynamic
            // and state Storyboards to happen in the same tick, so we start them at the same time.
            if (transition == null || (transition.GeneratedDuration == DurationZero &&
                                       (transition.Storyboard == null || transition.Storyboard.Duration == DurationZero)))
            {
                // Start new state Storyboard and stop any previously running Storyboards
                if (transition != null && transition.Storyboard != null)
                {
                    group.StartNewThenStopOld(stateGroupsRoot, transition.Storyboard, state.Storyboard);
                }
                else
                {
                    group.StartNewThenStopOld(stateGroupsRoot, state.Storyboard);
                }

                // Fire both CurrentStateChanging and CurrentStateChanged events
                group.RaiseCurrentStateChanging(stateGroupsRoot, lastState, state, control);
                group.RaiseCurrentStateChanged(stateGroupsRoot, lastState, state, control);
            }
            else
            {
                // In this case, we have an interstitial storyboard of duration > 0 and/or
                // explicit storyboard of duration >0 , so we need
                // to run them first, and then we'll run the state storyboard.
                // we have to wait for both storyboards to complete before
                // starting the steady state animations.
                transition.DynamicStoryboardCompleted = false;

                // Hook up generated Storyboard's Completed event handler
                dynamicTransition.Completed += delegate(object sender, EventArgs e)
                {
                    if (transition.Storyboard == null || transition.ExplicitStoryboardCompleted)
                    {
                        if (ShouldRunStateStoryboard(control, stateGroupsRoot, state, group))
                        {
                            group.StartNewThenStopOld(stateGroupsRoot, state.Storyboard);
                        }

                        group.RaiseCurrentStateChanged(stateGroupsRoot, lastState, state, control);
                    }

                    transition.DynamicStoryboardCompleted = true;
                };

                if (transition.Storyboard != null && transition.ExplicitStoryboardCompleted == true)
                {
                    EventHandler transitionCompleted = null;
                    transitionCompleted = new EventHandler(delegate(object sender, EventArgs e)
                    {
                        if (transition.DynamicStoryboardCompleted)
                        {
                            if (ShouldRunStateStoryboard(control, stateGroupsRoot, state, group))
                            {
                                group.StartNewThenStopOld(stateGroupsRoot, state.Storyboard);
                            }

                            group.RaiseCurrentStateChanged(stateGroupsRoot, lastState, state, control);
                        }

                        transition.Storyboard.Completed       -= transitionCompleted;
                        transition.ExplicitStoryboardCompleted = true;
                    });

                    // hook up explicit storyboard's Completed event handler
                    transition.ExplicitStoryboardCompleted = false;
                    transition.Storyboard.Completed       += transitionCompleted;
                }

                // Start transition and dynamicTransition Storyboards
                // Stop any previously running Storyboards
                group.StartNewThenStopOld(stateGroupsRoot, transition.Storyboard, dynamicTransition);

                group.RaiseCurrentStateChanging(stateGroupsRoot, lastState, state, control);
            }

            group.CurrentState = state;

            return(true);
        }
 protected virtual new bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
 {
     return(default(bool));
 }
 //
 // Summary:
 //     Transitions a control between states.
 //
 // Parameters:
 //   control:
 //     The control to transition between states.
 //
 //   templateRoot:
 //     The root element of the control's System.Windows.Controls.ControlTemplate.
 //
 //   stateName:
 //     The name of the state to transition to.
 //
 //   group:
 //     The System.Windows.VisualStateGroup that the state belongs to.
 //
 //   state:
 //     The representation of the state to transition to.
 //
 //   useTransitions:
 //     true to use a System.Windows.VisualTransition to transition between states;
 //     otherwise, false.
 //
 // Returns:
 //     true if the control successfully transitioned to the new state; otherwise,
 //     false.
 protected virtual bool GoToStateCore(Control control, FrameworkElement templateRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions);
示例#41
0
        // Token: 0x06000CFE RID: 3326 RVA: 0x0003040C File Offset: 0x0002E60C
        private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition)
        {
            IEasingFunction easingFunction = null;
            Storyboard      storyboard     = new Storyboard();

            if (transition != null)
            {
                Duration generatedDuration = transition.GeneratedDuration;
                storyboard.Duration = transition.GeneratedDuration;
                easingFunction      = transition.GeneratedEasingFunction;
            }
            else
            {
                storyboard.Duration = new Duration(TimeSpan.Zero);
            }
            Dictionary <VisualStateManager.TimelineDataToken, Timeline> dictionary  = VisualStateManager.FlattenTimelines(group.CurrentStoryboards);
            Dictionary <VisualStateManager.TimelineDataToken, Timeline> dictionary2 = VisualStateManager.FlattenTimelines((transition != null) ? transition.Storyboard : null);
            Dictionary <VisualStateManager.TimelineDataToken, Timeline> dictionary3 = VisualStateManager.FlattenTimelines(newState.Storyboard);

            foreach (KeyValuePair <VisualStateManager.TimelineDataToken, Timeline> keyValuePair in dictionary2)
            {
                dictionary.Remove(keyValuePair.Key);
                dictionary3.Remove(keyValuePair.Key);
            }
            foreach (KeyValuePair <VisualStateManager.TimelineDataToken, Timeline> keyValuePair2 in dictionary3)
            {
                Timeline timeline = VisualStateManager.GenerateToAnimation(root, keyValuePair2.Value, easingFunction, true);
                if (timeline != null)
                {
                    timeline.Duration = storyboard.Duration;
                    storyboard.Children.Add(timeline);
                }
                dictionary.Remove(keyValuePair2.Key);
            }
            foreach (KeyValuePair <VisualStateManager.TimelineDataToken, Timeline> keyValuePair3 in dictionary)
            {
                Timeline timeline2 = VisualStateManager.GenerateFromAnimation(root, keyValuePair3.Value, easingFunction);
                if (timeline2 != null)
                {
                    timeline2.Duration = storyboard.Duration;
                    storyboard.Children.Add(timeline2);
                }
            }
            return(storyboard);
        }
示例#42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.userControl = ((BPiaoBao.Client.UIExt.CommonControl.PayControl)(target));
                return;

            case 2:
                this.VisualStateGroup = ((System.Windows.VisualStateGroup)(target));
                return;

            case 3:
                this.CashState = ((System.Windows.VisualState)(target));
                return;

            case 4:
                this.CreditState = ((System.Windows.VisualState)(target));
                return;

            case 5:
                this.bg = ((System.Windows.Controls.Border)(target));
                return;

            case 6:
                this.headContent = ((System.Windows.Controls.Control)(target));
                return;

            case 7:
                this.listBoxPlatform = ((System.Windows.Controls.ListBox)(target));
                return;

            case 8:
                this.payByPlatformBtn = ((System.Windows.Controls.Button)(target));

            #line 120 "..\..\..\CommonControl\PayControl.xaml"
                this.payByPlatformBtn.Click += new System.Windows.RoutedEventHandler(this.payByPlatform_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.listBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 10:
                this.payByBankBtn = ((System.Windows.Controls.Button)(target));

            #line 133 "..\..\..\CommonControl\PayControl.xaml"
                this.payByBankBtn.Click += new System.Windows.RoutedEventHandler(this.payByBankBtn_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.radioBtnCashbag = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 12:
                this.radioBtnCredit = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.txtCash = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.txtCredit = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.passwordBox = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 16:
                this.payBtn = ((System.Windows.Controls.Button)(target));

            #line 203 "..\..\..\CommonControl\PayControl.xaml"
                this.payBtn.Click += new System.Windows.RoutedEventHandler(this.payBtn_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GUI2FullPrototypeScreens_Manage_Meat_Contamination_2_Name = ((GUI2FullPrototypeScreens.Manage_Meat_Contamination_2)(target));
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this._SketchFlowAnimation_SketchFlowAnimation = ((System.Windows.VisualStateGroup)(target));
                return;

            case 4:
                this.holdtimes = ((System.Windows.VisualState)(target));
                return;

            case 5:
                this.SketchFlowAnimationFrame = ((System.Windows.VisualState)(target));
                return;

            case 6:
                this._SketchFlowAnimation_base = ((System.Windows.VisualState)(target));
                return;

            case 7:
                this.SketchFlowAnimationFrame1 = ((System.Windows.VisualState)(target));
                return;

            case 8:
                this.SketchFlowAnimationFrame2 = ((System.Windows.VisualState)(target));
                return;

            case 9:
                this.SketchFlowAnimationFrame3 = ((System.Windows.VisualState)(target));
                return;

            case 10:
                this.SketchFlowAnimationFrame4 = ((System.Windows.VisualState)(target));
                return;

            case 11:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.progressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 13:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.button = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.lambxray = ((Microsoft.Expression.Prototyping.Behavior.PlaySketchFlowAnimationAction)(target));
                return;

            case 16:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 17:
                this.ellipse = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 18:
                this.rectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.layoutRoot = ((System.Windows.Controls.Grid)(target));

            #line 69 "..\..\KinectSensorChooserUI.xaml"
                this.layoutRoot.MouseEnter += new System.Windows.Input.MouseEventHandler(this.OnRootGridMouseEnter);

            #line default
            #line hidden

            #line 69 "..\..\KinectSensorChooserUI.xaml"
                this.layoutRoot.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.OnRootGridGotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 2:
                this.SensorStatusStates = ((System.Windows.VisualStateGroup)(target));
                return;

            case 3:
                this.Stopped = ((System.Windows.VisualState)(target));
                return;

            case 4:
                this.Initializing = ((System.Windows.VisualState)(target));
                return;

            case 5:
                this.AllSetListening = ((System.Windows.VisualState)(target));
                return;

            case 6:
                this.NoAvailableSensors = ((System.Windows.VisualState)(target));
                return;

            case 7:
                this.Error = ((System.Windows.VisualState)(target));
                return;

            case 8:
                this.AllSetNotListening = ((System.Windows.VisualState)(target));
                return;

            case 9:
                this.initializingContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.allSetNotListeningContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.allSetListeningContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:
                this.noAvailableSensorsContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.errorContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.expandedPopup = ((System.Windows.Controls.Primitives.Popup)(target));

            #line 349 "..\..\KinectSensorChooserUI.xaml"
                this.expandedPopup.Opened += new System.EventHandler(this.ExpandedPopupOnOpened);

            #line default
            #line hidden

            #line 349 "..\..\KinectSensorChooserUI.xaml"
                this.expandedPopup.MouseLeave += new System.Windows.Input.MouseEventHandler(this.OnExpandedPopupMouseLeave);

            #line default
            #line hidden
                return;

            case 15:
                this.popupGrid = ((System.Windows.Controls.Grid)(target));

            #line 350 "..\..\KinectSensorChooserUI.xaml"
                this.popupGrid.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.OnPopupGridGotKeyboardFocus);

            #line default
            #line hidden
                return;

            case 16:
                this.expandedInitializingContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.expandedAllSetNotListeningContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 18:
                this.expandedAllSetListeningContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.expandedNoAvailableSensorsContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 20:
                this.expandedErrorContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 21:
                this.MessageTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.TellMeMoreLink = ((System.Windows.Documents.Hyperlink)(target));

            #line 422 "..\..\KinectSensorChooserUI.xaml"
                this.TellMeMoreLink.RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.TellMeMoreLinkRequestNavigate);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#45
0
        internal static bool TryGetState(IList <VisualStateGroup> groups, string stateName, out VisualStateGroup group, out VisualState state)
        {
            for (int groupIndex = 0; groupIndex < groups.Count; ++groupIndex)
            {
                VisualStateGroup g = groups[groupIndex];
                VisualState      s = g.GetState(stateName);
                if (s != null)
                {
                    group = g;
                    state = s;
                    return(true);
                }
            }

            group = null;
            state = null;
            return(false);
        }
示例#46
0
        // Token: 0x06000CFA RID: 3322 RVA: 0x000300A4 File Offset: 0x0002E2A4
        private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions)
        {
            if (stateGroupsRoot == null)
            {
                throw new ArgumentNullException("stateGroupsRoot");
            }
            if (state == null)
            {
                throw new ArgumentNullException("state");
            }
            if (group == null)
            {
                throw new InvalidOperationException();
            }
            VisualState lastState = group.CurrentState;

            if (lastState == state)
            {
                return(true);
            }
            VisualTransition transition = useTransitions ? VisualStateManager.GetTransition(stateGroupsRoot, group, lastState, state) : null;
            Storyboard       storyboard = VisualStateManager.GenerateDynamicTransitionAnimations(stateGroupsRoot, group, state, transition);

            if (transition == null || (transition.GeneratedDuration == VisualStateManager.DurationZero && (transition.Storyboard == null || transition.Storyboard.Duration == VisualStateManager.DurationZero)))
            {
                if (transition != null && transition.Storyboard != null)
                {
                    group.StartNewThenStopOld(stateGroupsRoot, new Storyboard[]
                    {
                        transition.Storyboard,
                        state.Storyboard
                    });
                }
                else
                {
                    group.StartNewThenStopOld(stateGroupsRoot, new Storyboard[]
                    {
                        state.Storyboard
                    });
                }
                group.RaiseCurrentStateChanging(stateGroupsRoot, lastState, state, control);
                group.RaiseCurrentStateChanged(stateGroupsRoot, lastState, state, control);
            }
            else
            {
                transition.DynamicStoryboardCompleted = false;
                storyboard.Completed += delegate(object sender, EventArgs e)
                {
                    if (transition.Storyboard == null || transition.ExplicitStoryboardCompleted)
                    {
                        if (VisualStateManager.ShouldRunStateStoryboard(control, stateGroupsRoot, state, group))
                        {
                            group.StartNewThenStopOld(stateGroupsRoot, new Storyboard[]
                            {
                                state.Storyboard
                            });
                        }
                        group.RaiseCurrentStateChanged(stateGroupsRoot, lastState, state, control);
                    }
                    transition.DynamicStoryboardCompleted = true;
                };
                if (transition.Storyboard != null && transition.ExplicitStoryboardCompleted)
                {
                    EventHandler transitionCompleted = null;
                    transitionCompleted = delegate(object sender, EventArgs e)
                    {
                        if (transition.DynamicStoryboardCompleted)
                        {
                            if (VisualStateManager.ShouldRunStateStoryboard(control, stateGroupsRoot, state, group))
                            {
                                group.StartNewThenStopOld(stateGroupsRoot, new Storyboard[]
                                {
                                    state.Storyboard
                                });
                            }
                            group.RaiseCurrentStateChanged(stateGroupsRoot, lastState, state, control);
                        }
                        transition.Storyboard.Completed       -= transitionCompleted;
                        transition.ExplicitStoryboardCompleted = true;
                    };
                    transition.ExplicitStoryboardCompleted = false;
                    transition.Storyboard.Completed       += transitionCompleted;
                }
                group.StartNewThenStopOld(stateGroupsRoot, new Storyboard[]
                {
                    transition.Storyboard,
                    storyboard
                });
                group.RaiseCurrentStateChanging(stateGroupsRoot, lastState, state, control);
            }
            group.CurrentState = state;
            return(true);
        }
示例#47
0
        private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group)
        {
            bool controlInTree         = true;
            bool stateGroupsRootInTree = true;

            // We cannot simply check control.IsLoaded because the control may not be in the visual tree
            // even though IsLoaded is true.  Instead we will check that it can find a PresentationSource
            // which would tell us it's in the visual tree.
            if (control != null)
            {
                // If it's visible then it's in the visual tree, so we don't even have to look for a
                // PresentationSource
                if (!control.IsVisible)
                {
                    controlInTree = (PresentationSource.CriticalFromVisual(control) != null);
                }
            }

            if (stateGroupsRoot != null)
            {
                if (!stateGroupsRoot.IsVisible)
                {
                    stateGroupsRootInTree = (PresentationSource.CriticalFromVisual(stateGroupsRoot) != null);
                }
            }

            return(controlInTree && stateGroupsRootInTree && (state == group.CurrentState));
        }
        private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition)
        {
            Storyboard dynamic = new Storyboard();

            if (transition != null && transition.GeneratedDuration != null)
            {
                dynamic.Duration = transition.GeneratedDuration;
            }
            else
            {
                dynamic.Duration = new Duration(TimeSpan.Zero);
            }

            Dictionary <TimelineDataToken, Timeline> currentAnimations    = FlattenTimelines(group.CurrentStoryboards);
            Dictionary <TimelineDataToken, Timeline> transitionAnimations = FlattenTimelines(transition != null ? transition.Storyboard : null);
            Dictionary <TimelineDataToken, Timeline> newStateAnimations   = FlattenTimelines(newState.Storyboard);

            // Remove any animations that the transition already animates.
            // There is no need to create an interstitial animation if one already exists.
            foreach (KeyValuePair <TimelineDataToken, Timeline> pair in transitionAnimations)
            {
                currentAnimations.Remove(pair.Key);
                newStateAnimations.Remove(pair.Key);
            }

            // Generate the "to" animations
            foreach (KeyValuePair <TimelineDataToken, Timeline> pair in newStateAnimations)
            {
                // The new "To" Animation -- the root is passed as a reference point for name
                // lookup.
                Timeline toAnimation = GenerateToAnimation(root, pair.Value, true);

                // If the animation is of a type that we can't generate transition animations
                // for, GenerateToAnimation will return null, and we should just keep going.
                if (toAnimation != null)
                {
                    toAnimation.Duration = dynamic.Duration;
                    dynamic.Children.Add(toAnimation);
                }

                // Remove this from the list of current state animations we have to consider next
                currentAnimations.Remove(pair.Key);
            }

            // Generate the "from" animations
            foreach (KeyValuePair <TimelineDataToken, Timeline> pair in currentAnimations)
            {
                Timeline fromAnimation = GenerateFromAnimation(pair.Value);
                if (fromAnimation != null)
                {
                    fromAnimation.Duration = dynamic.Duration;
                    string targetName = Storyboard.GetTargetName(pair.Value);
                    Storyboard.SetTargetName(fromAnimation, targetName);

                    // If the targetName of the existing Animation is known, then look up the
                    // target
                    DependencyObject target = String.IsNullOrEmpty(targetName) ?
                                              null : root.FindName(targetName) as DependencyObject;
                    if (target != null)
                    {
                        Storyboard.SetTarget(fromAnimation, target);
                    }

                    PropertyPath propertyName = Storyboard.GetTargetProperty(pair.Value);
                    Storyboard.SetTargetProperty(fromAnimation, propertyName);
                    dynamic.Children.Add(fromAnimation);
                }
            }

            return(dynamic);
        }
示例#49
0
        /// <summary>
        /// Get the most appropriate transition between two states.
        /// </summary>
        /// <param name="element">Element being transitioned.</param>
        /// <param name="group">Group being transitioned.</param>
        /// <param name="from">VisualState being transitioned from.</param>
        /// <param name="to">VisualState being transitioned to.</param>
        /// <returns>
        /// The most appropriate transition between the desired states.
        /// </returns>
        internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            if (group == null)
            {
                throw new ArgumentNullException("group");
            }

            if (to == null)
            {
                throw new ArgumentNullException("to");
            }

            VisualTransition best = null;
            VisualTransition defaultTransition = null;
            int bestScore = -1;

            IList <VisualTransition> transitions = (IList <VisualTransition>)group.Transitions;

            if (transitions != null)
            {
                foreach (VisualTransition transition in transitions)
                {
                    if (defaultTransition == null && transition.IsDefault)
                    {
                        defaultTransition = transition;
                        continue;
                    }

                    int score = -1;

                    VisualState transitionFromState = group.GetState(transition.From);
                    VisualState transitionToState   = group.GetState(transition.To);

                    if (from == transitionFromState)
                    {
                        score += 1;
                    }
                    else if (transitionFromState != null)
                    {
                        continue;
                    }

                    if (to == transitionToState)
                    {
                        score += 2;
                    }
                    else if (transitionToState != null)
                    {
                        continue;
                    }

                    if (score > bestScore)
                    {
                        bestScore = score;
                        best      = transition;
                    }
                }
            }

            return(best ?? defaultTransition);
        }
示例#50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.VisualStateGroup = ((System.Windows.VisualStateGroup)(target));
                return;

            case 2:
                this.VisualState = ((System.Windows.VisualState)(target));
                return;

            case 3:
                this.VisualState1 = ((System.Windows.VisualState)(target));
                return;

            case 4:

            #line 40 "..\..\MainPage.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Rectangle_MouseDown);

            #line default
            #line hidden
                return;

            case 5:
                this.HeaderRectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 6:
                this.MainTitle = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.NewOrderButton = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\MainPage.xaml"
                this.NewOrderButton.Click += new System.Windows.RoutedEventHandler(this.newOrderButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.ExistingOrderButton = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\MainPage.xaml"
                this.ExistingOrderButton.Click += new System.Windows.RoutedEventHandler(this.ExistingOrderButton_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.MenuButton = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\MainPage.xaml"
                this.MenuButton.Click += new System.Windows.RoutedEventHandler(this.menuButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.TransitionFrame = ((WpfPageTransitions.PageTransition)(target));
                return;

            case 11:
                this.ManagementButton = ((System.Windows.Controls.Button)(target));

            #line 60 "..\..\MainPage.xaml"
                this.ManagementButton.Click += new System.Windows.RoutedEventHandler(this.ManagementButton_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.MenuImage = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#51
0
 // Token: 0x06000CF9 RID: 3321 RVA: 0x00030064 File Offset: 0x0002E264
 internal static bool TryGetState(IList <VisualStateGroup> groups, string stateName, out VisualStateGroup group, out VisualState state)
 {
     for (int i = 0; i < groups.Count; i++)
     {
         VisualStateGroup visualStateGroup = groups[i];
         VisualState      state2           = visualStateGroup.GetState(stateName);
         if (state2 != null)
         {
             group = visualStateGroup;
             state = state2;
             return(true);
         }
     }
     group = null;
     state = null;
     return(false);
 }
示例#52
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tbToolTip = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 2:
                this.MouseStateGroup = ((System.Windows.VisualStateGroup)(target));
                return;

            case 3:
                this.ControlMouseEnter = ((System.Windows.VisualState)(target));
                return;

            case 4:
                this.ControlMouseLeave = ((System.Windows.VisualState)(target));
                return;

            case 5:
                this.ValueStateGroup = ((System.Windows.VisualStateGroup)(target));
                return;

            case 6:
                this.ControlValueON = ((System.Windows.VisualState)(target));
                return;

            case 7:
                this.ControlValueOFF = ((System.Windows.VisualState)(target));
                return;

            case 8:
                this.ControlValueUnknown = ((System.Windows.VisualState)(target));
                return;

            case 9:
                this.ActualStateGroup = ((System.Windows.VisualStateGroup)(target));
                return;

            case 10:
                this.ControlActualTrue = ((System.Windows.VisualState)(target));
                return;

            case 11:
                this.ControlActualFalse = ((System.Windows.VisualState)(target));
                return;

            case 12:
                this.recMouse = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 13:
                this.txtCaption = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.vwWarning = ((System.Windows.Controls.Viewbox)(target));
                return;
            }
            this._contentLoaded = true;
        }