本文整理汇总了C#中ViewType类的典型用法代码示例。如果您正苦于以下问题:C# ViewType类的具体用法?C# ViewType怎么用?C# ViewType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ViewType类属于命名空间,在下文中一共展示了ViewType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例3: Create
public View Create(Element subject, ViewType viewType)
{
var view = new View(subject, viewType);
view.Model = _model;
Views.Add(view);
return view;
}
示例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;
}
示例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);
}
}
示例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;
}
示例7: InitManager
//This gets called from SceneManager's Start()
public virtual void InitManager()
{
m_UIEventHandler.CloseView += OnTappedOnCloseButton;
InputController.SingleTapped += OnSingleTapped;
mActiveViewType = ViewType.ARCAMERAVIEW;
}
示例8: LogicAttribute
protected LogicAttribute(string id,Nesting targetViewNesting, ViewType viewType,string viewId)
{
ViewId = viewId;
ID=id;
ViewType = viewType;
Nesting = targetViewNesting;
}
示例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);
}
示例10: Register
void Register(ViewType type, Uri address)
{
if (!_views.ContainsKey(type))
_views.Add(type, address);
else
_views[type] = address;
}
示例11: PostCommentModel
public PostCommentModel(PostComment comment, ViewType viewType)
: this()
{
this.Comment = comment;
this.ViewMode = viewType;
this.Root_ContentID = this.Comment.Root_ContentID;
}
示例12: OnDoubleTapped
private void OnDoubleTapped()
{
if(mActiveViewType == ViewType.ARCAMERAVIEW)
{
mActiveViewType = ViewType.UIVIEW;
}
}
示例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;
}
示例14: ViewInfo
public ViewInfo(string key, string title, string shortcut, ViewType viewType, Type type)
: base(key)
{
Title = title;
Shortcut = shortcut;
ViewType = viewType;
Type = type;
}
示例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);
}