Show / Hide Table of Contents

Class LayoutXamlConstants

Static class with variables for converting xml layouts to xaml.

Inheritance
object
LayoutXamlConstants
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure.Layouts
Assembly: Aruba.Infrastructure.dll
Syntax
public static class LayoutXamlConstants

Properties

View Source

AttachmentView

Gets the Xaml for adding an AttachmentsView

Declaration
public static string AttachmentView { get; }
Property Value
Type Description
string
View Source

GridColumnEndTag

Gets the end of defining grid columns

Declaration
public static string GridColumnEndTag { get; }
Property Value
Type Description
string
View Source

GridColumnStartTag

Gets the start for defining grid columns

Declaration
public static string GridColumnStartTag { get; }
Property Value
Type Description
string
View Source

GridColumnTagAuto

Gets the Grid column definition with auto width

Declaration
public static string GridColumnTagAuto { get; }
Property Value
Type Description
string
View Source

GridColumnTagStar

Gets the Grid column definition with * width

Declaration
public static string GridColumnTagStar { get; }
Property Value
Type Description
string
View Source

GridEndTag

Gets the end of Grid

Declaration
public static string GridEndTag { get; }
Property Value
Type Description
string
View Source

GridRowEndTag

Gets the end of defining grid rows

Declaration
public static string GridRowEndTag { get; }
Property Value
Type Description
string
View Source

GridRowStartTag

Gets the start for defining grid rows

Declaration
public static string GridRowStartTag { get; }
Property Value
Type Description
string
View Source

GridRowTagAuto

Gets the Grid row definition with auto for height

Declaration
public static string GridRowTagAuto { get; }
Property Value
Type Description
string
View Source

GridRowTagStar

Gets the Grid row definition with * for height

Declaration
public static string GridRowTagStar { get; }
Property Value
Type Description
string
View Source

GridStartTag

Gets the Grid Start

Declaration
public static string GridStartTag { get; }
Property Value
Type Description
string
View Source

GroupBoxEndTag

Gets the end of Group Box

Declaration
public static string GroupBoxEndTag { get; }
Property Value
Type Description
string
View Source

TabCount

Gets or sets the current number of tabs to tab in

Declaration
public static int TabCount { get; set; }
Property Value
Type Description
int
View Source

UserControlAndNamespaces

Gets the start of the xaml layout file, start of UserControl, setting up namespace

Declaration
public static string UserControlAndNamespaces { get; }
Property Value
Type Description
string
View Source

UserControlEnd

Gets the end of User Control

Declaration
public static string UserControlEnd { get; }
Property Value
Type Description
string

Methods

View Source

CreateAttachmentGroupBox(string)

Creates the start of a group box for an attachment to go in.

Declaration
public static string CreateAttachmentGroupBox(string headerText = null)
Parameters
Type Name Description
string headerText

Header for the group box.

Returns
Type Description
string

Xaml string.

View Source

CreateEmbedGridTag(int, int, string)

Created a grid within a grid.

Declaration
public static string CreateEmbedGridTag(int gridRow, int gridColumn, string margin = null)
Parameters
Type Name Description
int gridRow

The row the grid should be on.

int gridColumn

The column the grid should be on.

string margin

Optional. The margin.

Returns
Type Description
string

Xaml string.

View Source

CreateHeaderedContentControlTag(int, int, string, string)

Creates a Headered Content Control for a field.

Declaration
public static string CreateHeaderedContentControlTag(int gridRow, int gridColumn, string sourceField, string style)
Parameters
Type Name Description
int gridRow

Grid row control is on.

int gridColumn

Grid column control is on.

string sourceField

The field name.

string style

The style of the headered content control.

Returns
Type Description
string

Xaml string.

View Source

CreateTabs(int)

Creates a string with the number of tabs specified.

Declaration
public static string CreateTabs(int tabCount)
Parameters
Type Name Description
int tabCount

The number of tabs to tab in.

Returns
Type Description
string

A string of tabs.

View Source

CreateTextBlockTag(int, int, string, string, string, LayoutFieldType?)

Creates a text block with given text.

Declaration
public static string CreateTextBlockTag(int gridRow, int gridColumn, string margin, string text, string fontWeight = null, LayoutFieldType? layoutFieldType = null)
Parameters
Type Name Description
int gridRow

Grid row the text block should be on.

int gridColumn

Grid column the text block should be on.

string margin

The margin for text block.

string text

Text to be displayed in text block.

string fontWeight

Optional. Font weight of the text.

LayoutFieldType? layoutFieldType

Optional. The layout field type.

Returns
Type Description
string

Xaml string

  • View Source
In this article
Back to top Generated by DocFX