• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ViewType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ViewType的典型用法代码示例。如果您正苦于以下问题:C# ViewType类的具体用法?C# ViewType怎么用?C# ViewType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ViewType类属于命名空间,在下文中一共展示了ViewType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AdditionalViewControlsAttribute

 public AdditionalViewControlsAttribute(string message, string messagePropertyName, ViewType targetViewType, AdditionalViewControlsProviderPosition additionalViewControlsProviderPosition)
 {
     this.message = message;
     this.messagePropertyName = messagePropertyName;
     this.targetViewType = targetViewType;
     this.additionalViewControlsProviderPosition = additionalViewControlsProviderPosition;
 }
开发者ID:cevious,项目名称:eXpand,代码行数:7,代码来源:AdditionalViewControlsAttribute.cs


示例2: EditNodeWindow

 public EditNodeWindow(Sidebar sidebar, string Type, string Name, ViewType viewType)
     : this(sidebar, viewType)
 {
     titlePanelEditNode.lblTitle.Text = "Edit " + Type;
     lblName.Text = Type + " Name:";
     txtName.Text = Name;
 }
开发者ID:GameMakersUnion,项目名称:BoulderDash-OrbIt,代码行数:7,代码来源:EditNodeWindow.cs


示例3: Create

 public View Create(Element subject, ViewType viewType)
 {
     var view = new View(subject, viewType);
     view.Model = _model;
     Views.Add(view);
     return view;
 }
开发者ID:AgileArchitect,项目名称:AgileViews,代码行数:7,代码来源:Workspace.cs


示例4: SearchUserViewModel

 public SearchUserViewModel(ViewType viewType, Decimal TwitterAccountID)
 {
     this.TwitterAccountID = TwitterAccountID;
       this.CancelCommand = new RelayCommand(new Action(this.Cancel));
       this.OKCommand = new RelayCommand(new Action(this.OK));
       this.viewType = viewType;
 }
开发者ID:unbearab1e,项目名称:FlattyTweet,代码行数:7,代码来源:SearchUserViewModel.cs


示例5: CloseView

        private static void CloseView(ViewType viewType)
        {
            if (_cacheSingle.ContainsKey(viewType) && _cacheSingle[viewType].IsAlive)
              {
            ResponsiveMDIChild view = _cacheSingle[viewType].Target as ResponsiveMDIChild;
            if (view != null)
            {
              view.Close();
            }
            _cacheSingle[viewType].Target = null;
            _cacheSingle.Remove(viewType);
              }

              List<ViewType> deleteItems = new List<ViewType>();
              foreach (var item in _cacheSingle)
              {
            if (item.Value.IsAlive == false || item.Value.Target == null)
            {
              deleteItems.Add(item.Key);
            }
              }
              foreach (var item in deleteItems)
              {
            _cacheSingle.Remove(item);
              }
        }
开发者ID:sclcwwl,项目名称:Gimela,代码行数:26,代码来源:NavigationRouter.cs


示例6: ActionStateRuleAttribute

 public ActionStateRuleAttribute(string id, string actionId, Nesting targetViewNesting, string normalCriteria,
                                 string emptyCriteria, ViewType viewType, string module, ActionState actionState,
                                 string viewId)
     : base(id, targetViewNesting, normalCriteria, emptyCriteria, viewType, module, viewId) {
     this.actionId = actionId;
     ActionState = actionState;
 }
开发者ID:akingunes,项目名称:eXpand,代码行数:7,代码来源:ActionStateRuleAttribute.cs


示例7: InitManager

    //This gets called from SceneManager's Start()
    public virtual void InitManager()
    {
        m_UIEventHandler.CloseView          += OnTappedOnCloseButton;
        InputController.SingleTapped        += OnSingleTapped;

        mActiveViewType = ViewType.ARCAMERAVIEW;
    }
开发者ID:simsinak,项目名称:offline-map-with-augmenteReality-nav,代码行数:8,代码来源:AppManager.cs


示例8: LogicAttribute

 protected LogicAttribute(string id,Nesting targetViewNesting, ViewType viewType,string viewId)
 {
     ViewId = viewId;
     ID=id;
     ViewType = viewType;
     Nesting = targetViewNesting;   
 }
开发者ID:akingunes,项目名称:eXpand,代码行数:7,代码来源:LogicAttribute.cs


示例9: Child

		public Child(Order doc, ViewType viewType)
			: this()
		{
			// Configure the title.
			this.Text = doc.LastFileName;
			this.Document = doc;

			// Create a reference for the view.
			// This reference can accomodate any type of control.
			Control view = null;

			// Instantiate the appropriate view.
			switch (viewType)
			{
				case ViewType.ItemGrid:
					view = new OrderGridView(doc);
					break;
				case ViewType.PrintPreview:
					view = new OrderPrintPreview(doc);
					break;
			}

			// Add the view to the form.
			view.Dock = DockStyle.Fill;
			this.Controls.Add(view);
		}
开发者ID:ehershey,项目名称:development,代码行数:26,代码来源:Child.cs


示例10: Register

 void Register(ViewType type, Uri address)
 {
     if (!_views.ContainsKey(type))
         _views.Add(type, address);
     else
         _views[type] = address;
 }
开发者ID:varta-group,项目名称:VartaApp,代码行数:7,代码来源:ApplicationController.cs


示例11: PostCommentModel

 public PostCommentModel(PostComment comment, ViewType viewType)
     : this()
 {
     this.Comment = comment;
     this.ViewMode = viewType;
     this.Root_ContentID = this.Comment.Root_ContentID;
 }
开发者ID:sunsiz,项目名称:CarrotCakeCMS-MVC,代码行数:7,代码来源:PostCommentModel.cs


示例12: OnDoubleTapped

 private void OnDoubleTapped()
 {
     if(mActiveViewType == ViewType.ARCAMERAVIEW)
     {
         mActiveViewType = ViewType.UIVIEW;
     }
 }
开发者ID:nileshlg2003,项目名称:NewCloud,代码行数:7,代码来源:CloudRecoSceneManager.cs


示例13: PageDisplaySettings

		public PageDisplaySettings(int imagesPerRow, ViewType viewType, double horizontalOffsetBetweenPages, ImageRotation rotation = ImageRotation.None, float zoomFactor = 1.0f)
		{
			this.ImagesPerRow = imagesPerRow;
			this.ZoomFactor = zoomFactor;
			this.ViewType = viewType;
			this.HorizontalOffsetBetweenPages = viewType == ViewType.SinglePage ? 0 : horizontalOffsetBetweenPages;
			this.Rotation = rotation;
		}
开发者ID:gdlprj,项目名称:duscusys,代码行数:8,代码来源:PageDisplaySettings.cs


示例14: ViewInfo

 public ViewInfo(string key, string title, string shortcut, ViewType viewType, Type type)
     : base(key)
 {
     Title = title;
     Shortcut = shortcut;
     ViewType = viewType;
     Type = type;
 }
开发者ID:rizwan3d,项目名称:elalang,代码行数:8,代码来源:ViewInfo.cs


示例15: ToTextureView

        public override Texture ToTextureView(ViewType viewType, int arraySlice, int mipMapSlice)
        {
            // Exists since OpenGL 4.3
            if (viewType != ViewType.Full || arraySlice != 0 || mipMapSlice != 0)
                throw new NotImplementedException();

            return new Texture2D(GraphicsDevice, this);
        }
开发者ID:Powerino73,项目名称:paradox,代码行数:8,代码来源:Texture2D.OpenGL.cs


示例16: ToTextureView

 public static Texture ToTextureView(this Texture texture, ViewType type, int arraySlice, int mipLevel)
 {
     var viewDescription = texture.ViewDescription;
     viewDescription.Type = type;
     viewDescription.ArraySlice = arraySlice;
     viewDescription.MipLevel = mipLevel;
     return texture.ToTextureView(viewDescription);
 }
开发者ID:h78hy78yhoi8j,项目名称:xenko,代码行数:8,代码来源:Texture.Extensions.cs


示例17: RegisterAppearance

 public void RegisterAppearance(ChartAppearance appearance, ViewType viewType, Palette palette)
 {
     AppearanceColors row = new AppearanceColors(appearance, palette);
     matrix.Add(row);
     for (int i = 0; i <= palette.Count; i++)
         row[i] = AddStyleEditor(AppearanceImageHelper.CreateImage(viewType, appearance, palette, i), i);
     lastRegisteredAppearance++;
 }
开发者ID:BadButton,项目名称:WOT-Statistics,代码行数:8,代码来源:StylesContainerControl.cs


示例18: NavigateTo

 public void NavigateTo(ViewType type)
 {
     if (!_views.ContainsKey(type)) return;
     var address = _views[type];
     var root = Application.Current.RootVisual as PhoneApplicationFrame;
     Debug.Assert(root != null, "Root is null");
     root.Navigate(address);
 }
开发者ID:varta-group,项目名称:VartaApp,代码行数:8,代码来源:ApplicationController.cs


示例19: ModuleView

 public ModuleView(string moduleName, string name, string displayName, string description, ViewType viewType)
 {
     ModuleName = moduleName;
     Name = name;
     DisplayName = displayName;
     Description = description;
     ViewType = viewType;
 }
开发者ID:rickeygalloway,项目名称:Test,代码行数:8,代码来源:ModuleView.cs


示例20: ControllerStateRuleAttribute

 public ControllerStateRuleAttribute(string id, Type controllerType, Nesting targetViewNesting,
                                     string normalCriteria,
                                     string emptyCriteria, ViewType viewType, string module, State state,
                                     string viewId)
     : base(id, targetViewNesting, normalCriteria, emptyCriteria, viewType, module, state, viewId)
 {
     this.controllerType = controllerType;
 }
开发者ID:cevious,项目名称:eXpand,代码行数:8,代码来源:ControllerStateRuleAttribute.cs



注:本文中的ViewType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ViewerEffectPacket类代码示例发布时间:2022-05-24
下一篇:
C# ViewPager类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap