Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace System.Windows.Baml2006
{
partial class WpfSharedBamlSchemaContext: XamlSchemaContext
{
const int KnownPropertyCount = 268;
const int KnownPropertyCount = 270;


private WpfKnownMember CreateKnownMember(short bamlNumber)
Expand Down Expand Up @@ -284,6 +284,8 @@ private WpfKnownMember CreateKnownMember(short bamlNumber)
case 266: return Create_BamlProperty_Window_Content();
case 267: return Create_BamlProperty_WrapPanel_Children();
case 268: return Create_BamlProperty_XmlDataProvider_XmlSerializer();
case 269: return Create_BamlProperty_TextBox_IsReadOnly();
case 270: return Create_BamlProperty_RichTextBox_IsReadOnly();
default:
throw new InvalidOperationException("Invalid BAML number");
}
Expand Down Expand Up @@ -640,6 +642,7 @@ internal WpfKnownMember CreateKnownMember(string type, string property)
switch(property)
{
case "Text": return GetKnownBamlMember(-114);
case "IsReadOnly": return GetKnownBamlMember(-269);
case "TextWrapping": return Create_BamlProperty_TextBox_TextWrapping();
case "TextAlignment": return Create_BamlProperty_TextBox_TextAlignment();
default: return null;
Expand Down Expand Up @@ -1196,6 +1199,7 @@ internal WpfKnownMember CreateKnownMember(string type, string property)
switch(property)
{
case "Document": return GetKnownBamlMember(-224);
case "IsReadOnly": return GetKnownBamlMember(-270);
default: return null;
}
case 1536792507:
Expand Down Expand Up @@ -3628,6 +3632,23 @@ private WpfKnownMember Create_BamlProperty_TextBox_Text()
return bamlMember;
}

[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
private WpfKnownMember Create_BamlProperty_TextBox_IsReadOnly()
{
Type type = typeof(System.Windows.Controls.TextBox);
DependencyProperty dp = System.Windows.Controls.TextBox.IsReadOnlyProperty;
var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType
"IsReadOnly", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
bamlMember.Freeze();
return bamlMember;
}

[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
private WpfKnownMember Create_BamlProperty_TextElement_Background()
{
Expand Down Expand Up @@ -5489,6 +5510,23 @@ private WpfKnownMember Create_BamlProperty_RichTextBox_Document()
return bamlMember;
}

[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
private WpfKnownMember Create_BamlProperty_RichTextBox_IsReadOnly()
{
Type type = typeof(System.Windows.Controls.RichTextBox);
DependencyProperty dp = System.Windows.Controls.RichTextBox.IsReadOnlyProperty;
var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.RichTextBox)), // DeclaringType
"IsReadOnly", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
bamlMember.Freeze();
return bamlMember;
}

[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
private WpfKnownMember Create_BamlProperty_Rotation3DAnimationUsingKeyFrames_KeyFrames()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,8 @@ internal enum KnownProperties : short
WrapPanel_Children,
XmlDataProvider_XmlSerializer,
MaxProperty,
TextBox_IsReadOnly,
RichTextBox_IsReadOnly
}

#if !BAMLDASM
Expand Down Expand Up @@ -1862,6 +1864,8 @@ internal static DependencyProperty GetKnownDependencyPropertyFromId(KnownPropert
return System.Windows.Controls.Primitives.Popup.PlacementProperty;
case KnownProperties.Popup_PopupAnimation:
return System.Windows.Controls.Primitives.Popup.PopupAnimationProperty;
case KnownProperties.RichTextBox_IsReadOnly:
return System.Windows.Controls.RichTextBox.IsReadOnlyProperty;
case KnownProperties.RowDefinition_Height:
return System.Windows.Controls.RowDefinition.HeightProperty;
case KnownProperties.RowDefinition_MaxHeight:
Expand Down Expand Up @@ -1906,6 +1910,8 @@ internal static DependencyProperty GetKnownDependencyPropertyFromId(KnownPropert
return System.Windows.Controls.TextBlock.TextWrappingProperty;
case KnownProperties.TextBox_Text:
return System.Windows.Controls.TextBox.TextProperty;
case KnownProperties.TextBox_IsReadOnly:
return System.Windows.Controls.TextBox.IsReadOnlyProperty;
case KnownProperties.TextElement_Background:
return System.Windows.Documents.TextElement.BackgroundProperty;
case KnownProperties.TextElement_FontFamily:
Expand Down Expand Up @@ -2251,6 +2257,8 @@ internal static KnownElements GetKnownElementFromKnownCommonProperty(KnownProper
return KnownElements.RepeatButton;
case KnownProperties.RichTextBox_Document:
return KnownElements.RichTextBox;
case KnownProperties.RichTextBox_IsReadOnly:
return KnownElements.RichTextBox;
case KnownProperties.Rotation3DAnimationUsingKeyFrames_KeyFrames:
return KnownElements.Rotation3DAnimationUsingKeyFrames;
case KnownProperties.RowDefinition_Height:
Expand Down Expand Up @@ -2319,6 +2327,8 @@ internal static KnownElements GetKnownElementFromKnownCommonProperty(KnownProper
return KnownElements.TextBlock;
case KnownProperties.TextBox_Text:
return KnownElements.TextBox;
case KnownProperties.TextBox_IsReadOnly:
return KnownElements.TextBox;
case KnownProperties.TextElement_Background:
case KnownProperties.TextElement_FontFamily:
case KnownProperties.TextElement_FontSize:
Expand Down Expand Up @@ -3379,6 +3389,8 @@ internal static short GetKnownPropertyAttributeId(KnownElements typeID, string f
case KnownElements.RichTextBox:
if (String.CompareOrdinal(fieldName, "Document") == 0)
return (short)KnownProperties.RichTextBox_Document;
if (String.CompareOrdinal(fieldName, "IsReadOnly") == 0)
return (short)KnownProperties.RichTextBox_IsReadOnly;
break;
case KnownElements.Rotation3DAnimationUsingKeyFrames:
if (String.CompareOrdinal(fieldName, "KeyFrames") == 0)
Expand Down Expand Up @@ -3515,6 +3527,8 @@ internal static short GetKnownPropertyAttributeId(KnownElements typeID, string f
case KnownElements.TextBox:
if (String.CompareOrdinal(fieldName, "Text") == 0)
return (short)KnownProperties.TextBox_Text;
if (String.CompareOrdinal(fieldName, "IsReadOnly") == 0)
return (short)KnownProperties.TextBox_IsReadOnly;
break;
case KnownElements.TextElement:
if (String.CompareOrdinal(fieldName, "Background") == 0)
Expand Down