コード例 #1
0
 private AttributeSet?GetContentAttributeSet()
 {
     return(AttributeSet.Create(builder => builder
                                .AddClassAttribute(x => x
                                                   .Add("dropdown-content")
                                                   .Add("right-to-left", !_alignContentLeftToRight)
                                                   .AddElevation(4))
                                .AddStyleAttribute(x => x
                                                   .AddProperty("min-width", MinWidth.ToString(), MinWidth.Value > 0)
                                                   .AddProperty("max-width", MaxWidth.ToString(), MaxWidth.Value > 0))));
 }
コード例 #2
0
 protected AttributeSet?GetInputAttributes()
 {
     return(AttributeSet.Create(builder => builder
                                .AddAttribute("readonly", string.Empty, IsReadOnly)));
 }