Class LayoutXamlConstants
Static class with variables for converting xml layouts to xaml.
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure.Layouts
Assembly: Aruba.Infrastructure.dll
Syntax
public static class LayoutXamlConstants
Properties
View SourceAttachmentView
Gets the Xaml for adding an AttachmentsView
Declaration
public static string AttachmentView { get; }
Property Value
Type | Description |
---|---|
string |
GridColumnEndTag
Gets the end of defining grid columns
Declaration
public static string GridColumnEndTag { get; }
Property Value
Type | Description |
---|---|
string |
GridColumnStartTag
Gets the start for defining grid columns
Declaration
public static string GridColumnStartTag { get; }
Property Value
Type | Description |
---|---|
string |
GridColumnTagAuto
Gets the Grid column definition with auto width
Declaration
public static string GridColumnTagAuto { get; }
Property Value
Type | Description |
---|---|
string |
GridColumnTagStar
Gets the Grid column definition with * width
Declaration
public static string GridColumnTagStar { get; }
Property Value
Type | Description |
---|---|
string |
GridEndTag
Gets the end of Grid
Declaration
public static string GridEndTag { get; }
Property Value
Type | Description |
---|---|
string |
GridRowEndTag
Gets the end of defining grid rows
Declaration
public static string GridRowEndTag { get; }
Property Value
Type | Description |
---|---|
string |
GridRowStartTag
Gets the start for defining grid rows
Declaration
public static string GridRowStartTag { get; }
Property Value
Type | Description |
---|---|
string |
GridRowTagAuto
Gets the Grid row definition with auto for height
Declaration
public static string GridRowTagAuto { get; }
Property Value
Type | Description |
---|---|
string |
GridRowTagStar
Gets the Grid row definition with * for height
Declaration
public static string GridRowTagStar { get; }
Property Value
Type | Description |
---|---|
string |
GridStartTag
Gets the Grid Start
Declaration
public static string GridStartTag { get; }
Property Value
Type | Description |
---|---|
string |
GroupBoxEndTag
Gets the end of Group Box
Declaration
public static string GroupBoxEndTag { get; }
Property Value
Type | Description |
---|---|
string |
TabCount
Gets or sets the current number of tabs to tab in
Declaration
public static int TabCount { get; set; }
Property Value
Type | Description |
---|---|
int |
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 |
UserControlEnd
Gets the end of User Control
Declaration
public static string UserControlEnd { get; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceCreateAttachmentGroupBox(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. |
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. |
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. |
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. |
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 |