コード例 #1
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Page.BackgroundImageSource):
                PageControl.BackgroundImageSource = AttributeHelper.DelegateToImageSource(attributeValue);
                break;

            case nameof(XF.Page.IconImageSource):
                PageControl.IconImageSource = AttributeHelper.DelegateToImageSource(attributeValue);
                break;

            case nameof(XF.Page.IsBusy):
                PageControl.IsBusy = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Page.Padding):
                PageControl.Padding = AttributeHelper.StringToThickness(attributeValue);
                break;

            case nameof(XF.Page.Title):
                PageControl.Title = (string)attributeValue;
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #2
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.MenuItem.IconImageSource):
                MenuItemControl.IconImageSource = AttributeHelper.StringToImageSource((string)attributeValue);
                break;

            case nameof(XF.MenuItem.IsDestructive):
                MenuItemControl.IsDestructive = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.MenuItem.Text):
                MenuItemControl.Text = (string)attributeValue;
                break;

            case "onclick":
                Renderer.RegisterEvent(attributeEventHandlerId, () => ClickEventHandlerId = 0);
                ClickEventHandlerId = attributeEventHandlerId;
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #3
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Image.Aspect):
                ImageControl.Aspect = (XF.Aspect)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Image.IsAnimationPlaying):
                ImageControl.IsAnimationPlaying = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Image.IsOpaque):
                ImageControl.IsOpaque = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Image.Source):
                ImageControl.Source = AttributeHelper.DelegateToObject <XF.ImageSource>(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #4
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.MenuItem.@class):
                MenuItemControl.@class = AttributeHelper.GetStringList(attributeValue);
                break;

            case nameof(XF.MenuItem.IconImageSource):
                MenuItemControl.IconImageSource = AttributeHelper.DelegateToImageSource(attributeValue);
                break;

            case nameof(XF.MenuItem.IsDestructive):
                MenuItemControl.IsDestructive = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.MenuItem.IsEnabled):
                MenuItemControl.IsEnabled = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.MenuItem.StyleClass):
                MenuItemControl.StyleClass = AttributeHelper.GetStringList(attributeValue);
                break;

            case nameof(XF.MenuItem.Text):
                MenuItemControl.Text = (string)attributeValue;
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #5
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(ShellProperties.NavBarIsVisible):
                XF.Shell.SetNavBarIsVisible(Target, AttributeHelper.GetBool(attributeValue));
                break;

            case nameof(ShellProperties.NavBarHasShadow):
                XF.Shell.SetNavBarHasShadow(Target, AttributeHelper.GetBool(attributeValue));
                break;

            case nameof(ShellProperties.TabBarIsVisible):
                XF.Shell.SetTabBarIsVisible(Target, AttributeHelper.GetBool(attributeValue));
                break;

            case nameof(ShellProperties.BackgroundColor):
                XF.Shell.SetBackgroundColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;

            case nameof(ShellProperties.DisabledColor):
                XF.Shell.SetDisabledColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;

            case nameof(ShellProperties.ForegroundColor):
                XF.Shell.SetForegroundColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;

            case nameof(ShellProperties.TabBarBackgroundColor):
                XF.Shell.SetTabBarBackgroundColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;

            case nameof(ShellProperties.TabBarDisabledColor):
                XF.Shell.SetTabBarDisabledColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;

            case nameof(ShellProperties.TabBarForegroundColor):
                XF.Shell.SetTabBarForegroundColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;

            case nameof(ShellProperties.TabBarTitleColor):
                XF.Shell.SetTabBarTitleColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;

            case nameof(ShellProperties.TabBarUnselectedColor):
                XF.Shell.SetTabBarUnselectedColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;

            case nameof(ShellProperties.TitleColor):
                XF.Shell.SetTitleColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;

            case nameof(ShellProperties.UnselectedColor):
                XF.Shell.SetUnselectedColor(Target, AttributeHelper.StringToColor(attributeValue));
                break;
            }
        }
コード例 #6
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Entry.ClearButtonVisibility):
                EntryControl.ClearButtonVisibility = (XF.ClearButtonVisibility)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.CursorPosition):
                EntryControl.CursorPosition = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.FontAttributes):
                EntryControl.FontAttributes = (XF.FontAttributes)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.FontFamily):
                EntryControl.FontFamily = (string)attributeValue;
                break;

            case nameof(XF.Entry.FontSize):
                EntryControl.FontSize = AttributeHelper.StringToDouble((string)attributeValue, -1.00);
                break;

            case nameof(XF.Entry.HorizontalTextAlignment):
                EntryControl.HorizontalTextAlignment = (XF.TextAlignment)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.IsPassword):
                EntryControl.IsPassword = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Entry.IsTextPredictionEnabled):
                EntryControl.IsTextPredictionEnabled = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.Entry.ReturnType):
                EntryControl.ReturnType = (XF.ReturnType)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.SelectionLength):
                EntryControl.SelectionLength = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.VerticalTextAlignment):
                EntryControl.VerticalTextAlignment = (XF.TextAlignment)AttributeHelper.GetInt(attributeValue, (int)XF.TextAlignment.Center);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #7
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(AXFA.AudioSlider.HasThumb):
                AudioSliderControl.HasThumb = AttributeHelper.GetBool(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #8
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.GroupableItemsView.IsGrouped):
                GroupableItemsViewControl.IsGrouped = AttributeHelper.GetBool(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #9
0
        public IEnumerable<IConfigurationOptions> ParseXml(string contentsOfConfigFile)
        {
            if (String.IsNullOrEmpty(contentsOfConfigFile))
                throw new ArgumentException("contentsOfConfigFile is null or empty.", "contentsOfConfigFile");

            XmlDocument doc = new XmlDocument();
            doc.LoadXml(contentsOfConfigFile);
            XmlNodeList configNodes = doc.DocumentElement.SelectNodes("//config");
            var result = new List<IConfigurationOptions>();
            foreach (XmlNode configNode in configNodes)
            {
                IConfigurationOptions options = new DefaultConfigurationOptions();
                var attrib = new AttributeHelper(".//add[@key='{0}']/@value", configNode);
                options.AssemblyDirectory = attrib.Get("assemblydirectory");
                options.AbstractBaseName = attrib.Get("abstractbasename");
                options.BaseTypeName = attrib.Get("basetypename");
                options.ConnectionString = attrib.Get("connectionstring");
                options.DataNamespace = attrib.Get("datanamespace");
                options.IocVerboseLogging = attrib.GetBool("iocverboselogging", false);
                options.GenerateColumnList = attrib.GetBool("generatecolumnlist", true);
                options.GenerateComments = attrib.GetBool("generatecomments", true);
                options.UseMicrosoftsHeader = attrib.GetBool("usemicrosoftsheader", false);
                options.Namespace = attrib.Get("namespace");
                options.OutputPath = attrib.Get("outputpath");
                options.EnumOutputPath = attrib.Get("enumoutputpath");
                options.EnumNamespace = attrib.Get("enumnamespace");
                options.StaticPrimaryKeyName = attrib.Get("staticprimarykeyname");
                options.OnlyTablesWithPrefix.AddRange(attrib.Get("onlytableswithprefix").Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries));
                options.SkipTablesWithPrefix.AddRange(attrib.Get("skiptableswithprefix").Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries));
                options.SkipTables.AddRange(attrib.Get("skiptables").Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries));
                options.Enums = ParseEnums(configNode);
                LoadEnumReplacements(configNode, options);
                options.Components = ParseComponents(configNode);
                result.Add(options);
            }
            return result;
        }
コード例 #10
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.InputView.CharacterSpacing):
                InputViewControl.CharacterSpacing = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.InputView.IsReadOnly):
                InputViewControl.IsReadOnly = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.InputView.IsSpellCheckEnabled):
                InputViewControl.IsSpellCheckEnabled = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.InputView.Keyboard):
                InputViewControl.Keyboard = AttributeHelper.DelegateToObject <XF.Keyboard>(attributeValue);
                break;

            case nameof(XF.InputView.MaxLength):
                InputViewControl.MaxLength = AttributeHelper.GetInt(attributeValue, int.MaxValue);
                break;

            case nameof(XF.InputView.Placeholder):
                InputViewControl.Placeholder = (string)attributeValue;
                break;

            case nameof(XF.InputView.PlaceholderColor):
                InputViewControl.PlaceholderColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.InputView.Text):
                InputViewControl.Text = (string)attributeValue;
                break;

            case nameof(XF.InputView.TextColor):
                InputViewControl.TextColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.InputView.TextTransform):
                InputViewControl.TextTransform = (XF.TextTransform)AttributeHelper.GetInt(attributeValue, (int)XF.TextTransform.Default);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #11
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Shell.FlyoutBackgroundColor):
                ShellControl.FlyoutBackgroundColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.Shell.FlyoutBackgroundImage):
                ShellControl.FlyoutBackgroundImage = AttributeHelper.DelegateToObject <XF.ImageSource>(attributeValue);
                break;

            case nameof(XF.Shell.FlyoutBackgroundImageAspect):
                ShellControl.FlyoutBackgroundImageAspect = (XF.Aspect)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Shell.FlyoutBehavior):
                ShellControl.FlyoutBehavior = (XF.FlyoutBehavior)AttributeHelper.GetInt(attributeValue, (int)XF.FlyoutBehavior.Flyout);
                break;

            case nameof(XF.Shell.FlyoutHeaderBehavior):
                ShellControl.FlyoutHeaderBehavior = (XF.FlyoutHeaderBehavior)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Shell.FlyoutHeight):
                ShellControl.FlyoutHeight = AttributeHelper.StringToDouble((string)attributeValue, -1.00);
                break;

            case nameof(XF.Shell.FlyoutIcon):
                ShellControl.FlyoutIcon = AttributeHelper.DelegateToObject <XF.ImageSource>(attributeValue);
                break;

            case nameof(XF.Shell.FlyoutIsPresented):
                ShellControl.FlyoutIsPresented = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Shell.FlyoutVerticalScrollMode):
                ShellControl.FlyoutVerticalScrollMode = (XF.ScrollMode)AttributeHelper.GetInt(attributeValue, (int)XF.ScrollMode.Auto);
                break;

            case nameof(XF.Shell.FlyoutWidth):
                ShellControl.FlyoutWidth = AttributeHelper.StringToDouble((string)attributeValue, -1.00);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #12
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.BaseShellItem.FlyoutIcon):
                BaseShellItemControl.FlyoutIcon = attributeValue == null ? null : AttributeHelper.StringToImageSource((string)attributeValue);
                break;

            case nameof(XF.BaseShellItem.Icon):
                BaseShellItemControl.Icon = attributeValue == null ? null : AttributeHelper.StringToImageSource((string)attributeValue);
                break;

            case nameof(XF.BaseShellItem.IsEnabled):
                BaseShellItemControl.IsEnabled = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.BaseShellItem.IsTabStop):
                BaseShellItemControl.IsTabStop = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.BaseShellItem.Route):
                BaseShellItemControl.Route = (string)attributeValue;
                break;

            case nameof(XF.BaseShellItem.Title):
                BaseShellItemControl.Title = (string)attributeValue;
                break;

            case nameof(XF.BaseShellItem.TabIndex):
                BaseShellItemControl.TabIndex = AttributeHelper.GetInt(attributeValue);
                break;

            case "onappearing":
                Renderer.RegisterEvent(attributeEventHandlerId, () => AppearingEventHandlerId = 0);
                AppearingEventHandlerId = attributeEventHandlerId;
                break;

            case "ondisappearing":
                Renderer.RegisterEvent(attributeEventHandlerId, () => DisappearingEventHandlerId = 0);
                DisappearingEventHandlerId = attributeEventHandlerId;
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.ActivityIndicator.Color):
                ActivityIndicatorControl.Color = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.ActivityIndicator.IsRunning):
                ActivityIndicatorControl.IsRunning = AttributeHelper.GetBool(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #14
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.CheckBox.Color):
                CheckBoxControl.Color = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.CheckBox.IsChecked):
                CheckBoxControl.IsChecked = AttributeHelper.GetBool(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #15
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.BaseShellItem.FlyoutIcon):
                BaseShellItemControl.FlyoutIcon = AttributeHelper.DelegateToObject <XF.ImageSource>(attributeValue);
                break;

            case nameof(XF.BaseShellItem.FlyoutItemIsVisible):
                BaseShellItemControl.FlyoutItemIsVisible = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.BaseShellItem.Icon):
                BaseShellItemControl.Icon = AttributeHelper.DelegateToObject <XF.ImageSource>(attributeValue);
                break;

            case nameof(XF.BaseShellItem.IsEnabled):
                BaseShellItemControl.IsEnabled = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.BaseShellItem.IsTabStop):
                BaseShellItemControl.IsTabStop = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.BaseShellItem.IsVisible):
                BaseShellItemControl.IsVisible = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.BaseShellItem.Route):
                BaseShellItemControl.Route = (string)attributeValue;
                break;

            case nameof(XF.BaseShellItem.TabIndex):
                BaseShellItemControl.TabIndex = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.BaseShellItem.Title):
                BaseShellItemControl.Title = (string)attributeValue;
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #16
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Switch.IsToggled):
                SwitchControl.IsToggled = AttributeHelper.GetBool(attributeValue);
                break;

            case "onistoggledchanged":
                Renderer.RegisterEvent(attributeEventHandlerId, () => IsToggledChangedEventHandlerId = 0);
                IsToggledChangedEventHandlerId = attributeEventHandlerId;
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #17
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Image.Aspect):
                ImageControl.Aspect = (XF.Aspect)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Image.IsOpaque):
                ImageControl.IsOpaque = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Image.Source):
                ImageControl.Source = attributeValue == null ? null : AttributeHelper.StringToImageSource((string)attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #18
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Switch.IsToggled):
                SwitchControl.IsToggled = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Switch.OnColor):
                SwitchControl.OnColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.Switch.ThumbColor):
                SwitchControl.ThumbColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #19
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.MasterDetailPage.IsGestureEnabled):
                MasterDetailPageControl.IsGestureEnabled = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.MasterDetailPage.IsPresented):
                MasterDetailPageControl.IsPresented = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.MasterDetailPage.MasterBehavior):
                MasterDetailPageControl.MasterBehavior = (XF.MasterBehavior)AttributeHelper.GetInt(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #20
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Layout.CascadeInputTransparent):
                LayoutControl.CascadeInputTransparent = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.Layout.IsClippedToBounds):
                LayoutControl.IsClippedToBounds = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Layout.Padding):
                LayoutControl.Padding = AttributeHelper.StringToThickness(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #21
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.InputView.IsReadOnly):
                InputViewControl.IsReadOnly = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.InputView.IsSpellCheckEnabled):
                InputViewControl.IsSpellCheckEnabled = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.InputView.MaxLength):
                InputViewControl.MaxLength = AttributeHelper.GetInt(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #22
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Frame.HasShadow):
                FrameControl.HasShadow = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Frame.BorderColor):
                FrameControl.BorderColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.Frame.CornerRadius):
                FrameControl.CornerRadius = AttributeHelper.StringToSingle((string)attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #23
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.ImageButton.Aspect):
                ImageButtonControl.Aspect = (XF.Aspect)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.ImageButton.BorderColor):
                ImageButtonControl.BorderColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.ImageButton.BorderWidth):
                ImageButtonControl.BorderWidth = AttributeHelper.StringToDouble((string)attributeValue, -1.00);
                break;

            case nameof(XF.ImageButton.CornerRadius):
                ImageButtonControl.CornerRadius = AttributeHelper.GetInt(attributeValue, -1);
                break;

            case nameof(XF.ImageButton.IsOpaque):
                ImageButtonControl.IsOpaque = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.ImageButton.Padding):
                ImageButtonControl.Padding = AttributeHelper.StringToThickness(attributeValue);
                break;

            case nameof(XF.ImageButton.Source):
                ImageButtonControl.Source = AttributeHelper.StringToImageSource(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #24
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Shell.FlyoutBackgroundColor):
                ShellControl.FlyoutBackgroundColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.Shell.FlyoutBackgroundImage):
                ShellControl.FlyoutBackgroundImage = AttributeHelper.StringToImageSource(attributeValue);
                break;

            case nameof(XF.Shell.FlyoutBackgroundImageAspect):
                ShellControl.FlyoutBackgroundImageAspect = (XF.Aspect)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Shell.FlyoutBehavior):
                ShellControl.FlyoutBehavior = (XF.FlyoutBehavior)AttributeHelper.GetInt(attributeValue, (int)XF.FlyoutBehavior.Flyout);
                break;

            case nameof(XF.Shell.FlyoutHeaderBehavior):
                ShellControl.FlyoutHeaderBehavior = (XF.FlyoutHeaderBehavior)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Shell.FlyoutIcon):
                ShellControl.FlyoutIcon = AttributeHelper.StringToImageSource(attributeValue);
                break;

            case nameof(XF.Shell.FlyoutIsPresented):
                ShellControl.FlyoutIsPresented = AttributeHelper.GetBool(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #25
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(PancakeView.BackgroundGradientStops):
                PancakeViewControl.BackgroundGradientStops = AMEH.AttributeHelper.StringToGradientStopCollection(attributeValue);
                break;

            case nameof(PancakeView.BackgroundGradientStartPoint):
                PancakeViewControl.BackgroundGradientStartPoint = AMEH.AttributeHelper.StringToPoint(attributeValue);
                break;

            case nameof(PancakeView.BackgroundGradientEndPoint):
                PancakeViewControl.BackgroundGradientEndPoint = AMEH.AttributeHelper.StringToPoint(attributeValue);
                break;

            //[Parameter] public IEnumerable<GradientStop> BackgroundGradientStops { get; set; }
            case nameof(XFF.PancakeView.PancakeView.BorderColor):
                PancakeViewControl.BorderColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.BorderDrawingStyle):
                PancakeViewControl.BorderDrawingStyle = (BorderDrawingStyle)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.BorderGradientAngle):
                PancakeViewControl.BorderGradientAngle = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.BorderGradientEndColor):
                PancakeViewControl.BorderGradientEndColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.BorderGradientStartColor):
                PancakeViewControl.BorderGradientStartColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            //[Parameter] public IEnumerable<GradientStop> BorderGradientStops { get; set; }
            case nameof(XFF.PancakeView.PancakeView.BorderIsDashed):
                PancakeViewControl.BorderIsDashed = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.BorderThickness):
                PancakeViewControl.BorderThickness = AttributeHelper.StringToSingle((string)attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.CornerRadius):
                PancakeViewControl.CornerRadius = AttributeHelper.StringToCornerRadius(attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.Elevation):
                PancakeViewControl.Elevation = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.HasShadow):
                PancakeViewControl.HasShadow = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.OffsetAngle):
                PancakeViewControl.OffsetAngle = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XFF.PancakeView.PancakeView.Sides):
                PancakeViewControl.Sides = AttributeHelper.GetInt(attributeValue);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #26
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.VisualElement.AnchorX):
                VisualElementControl.AnchorX = AttributeHelper.StringToDouble((string)attributeValue, 0.50);
                break;

            case nameof(XF.VisualElement.AnchorY):
                VisualElementControl.AnchorY = AttributeHelper.StringToDouble((string)attributeValue, 0.50);
                break;

            case nameof(XF.VisualElement.BackgroundColor):
                VisualElementControl.BackgroundColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.VisualElement.FlowDirection):
                VisualElementControl.FlowDirection = (XF.FlowDirection)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.VisualElement.HeightRequest):
                VisualElementControl.HeightRequest = AttributeHelper.StringToDouble((string)attributeValue, -1.00);
                break;

            case nameof(XF.VisualElement.InputTransparent):
                VisualElementControl.InputTransparent = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.VisualElement.IsEnabled):
                VisualElementControl.IsEnabled = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.VisualElement.IsTabStop):
                VisualElementControl.IsTabStop = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.VisualElement.IsVisible):
                VisualElementControl.IsVisible = AttributeHelper.GetBool(attributeValue, true);
                break;

            case nameof(XF.VisualElement.MinimumHeightRequest):
                VisualElementControl.MinimumHeightRequest = AttributeHelper.StringToDouble((string)attributeValue, -1.00);
                break;

            case nameof(XF.VisualElement.MinimumWidthRequest):
                VisualElementControl.MinimumWidthRequest = AttributeHelper.StringToDouble((string)attributeValue, -1.00);
                break;

            case nameof(XF.VisualElement.Opacity):
                VisualElementControl.Opacity = AttributeHelper.StringToDouble((string)attributeValue, 1.00);
                break;

            case nameof(XF.VisualElement.Rotation):
                VisualElementControl.Rotation = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.RotationX):
                VisualElementControl.RotationX = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.RotationY):
                VisualElementControl.RotationY = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.Scale):
                VisualElementControl.Scale = AttributeHelper.StringToDouble((string)attributeValue, 1.00);
                break;

            case nameof(XF.VisualElement.ScaleX):
                VisualElementControl.ScaleX = AttributeHelper.StringToDouble((string)attributeValue, 1.00);
                break;

            case nameof(XF.VisualElement.ScaleY):
                VisualElementControl.ScaleY = AttributeHelper.StringToDouble((string)attributeValue, 1.00);
                break;

            case nameof(XF.VisualElement.TabIndex):
                VisualElementControl.TabIndex = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.VisualElement.TranslationX):
                VisualElementControl.TranslationX = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.TranslationY):
                VisualElementControl.TranslationY = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.WidthRequest):
                VisualElementControl.WidthRequest = AttributeHelper.StringToDouble((string)attributeValue, -1.00);
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #27
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.VisualElement.AnchorX):
                VisualElementControl.AnchorX = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.AnchorY):
                VisualElementControl.AnchorY = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.BackgroundColor):
                VisualElementControl.BackgroundColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.VisualElement.HeightRequest):
                VisualElementControl.HeightRequest = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.InputTransparent):
                VisualElementControl.InputTransparent = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.VisualElement.IsEnabled):
                VisualElementControl.IsEnabled = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.VisualElement.IsTabStop):
                VisualElementControl.IsTabStop = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.VisualElement.IsVisible):
                VisualElementControl.IsVisible = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.VisualElement.MinimumHeightRequest):
                VisualElementControl.MinimumHeightRequest = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.MinimumWidthRequest):
                VisualElementControl.MinimumWidthRequest = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.Opacity):
                VisualElementControl.Opacity = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.Rotation):
                VisualElementControl.Rotation = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.RotationX):
                VisualElementControl.RotationX = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.RotationY):
                VisualElementControl.RotationY = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.Scale):
                VisualElementControl.Scale = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.ScaleX):
                VisualElementControl.ScaleX = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.ScaleY):
                VisualElementControl.ScaleY = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.TabIndex):
                VisualElementControl.TabIndex = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.VisualElement.TranslationX):
                VisualElementControl.TranslationX = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.TranslationY):
                VisualElementControl.TranslationY = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.VisualElement.WidthRequest):
                VisualElementControl.WidthRequest = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case "onfocused":
                Renderer.RegisterEvent(attributeEventHandlerId, () => FocusedEventHandlerId = 0);
                FocusedEventHandlerId = attributeEventHandlerId;
                break;

            case "onsizechanged":
                Renderer.RegisterEvent(attributeEventHandlerId, () => SizeChangedEventHandlerId = 0);
                SizeChangedEventHandlerId = attributeEventHandlerId;
                break;

            case "onunfocused":
                Renderer.RegisterEvent(attributeEventHandlerId, () => UnfocusedEventHandlerId = 0);
                UnfocusedEventHandlerId = attributeEventHandlerId;
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #28
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(FF.CachedImage.Aspect):
                CachedImageControl.Aspect = (XFF.Aspect)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(FF.CachedImage.BitmapOptimizations):
                CachedImageControl.BitmapOptimizations = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(FF.CachedImage.CacheDuration):
                CachedImageControl.CacheDuration = AMEH.AttributeHelper.StringToTimeSpan(attributeValue);;
                break;

            //case nameof(FF.CachedImage.CacheKeyFactory):
            //    CachedImageControl.CacheKeyFactory = ;
            //    break;
            case nameof(FF.CachedImage.CacheType):
                CachedImageControl.CacheType = (CacheType)AttributeHelper.GetInt(attributeValue);
                break;

            //case nameof(FF.CachedImage.CustomDataResolver):
            //    CachedImageControl.CustomDataResolver = ;
            //    break;
            case nameof(FF.CachedImage.DownsampleHeight):
                CachedImageControl.DownsampleHeight = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(FF.CachedImage.DownsampleToViewSize):
                CachedImageControl.DownsampleToViewSize = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(FF.CachedImage.DownsampleUseDipUnits):
                CachedImageControl.DownsampleUseDipUnits = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(FF.CachedImage.DownsampleWidth):
                CachedImageControl.DownsampleWidth = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(FF.CachedImage.ErrorPlaceholder):
                CachedImageControl.ErrorPlaceholder = AttributeHelper.StringToImageSource(attributeValue);
                break;

            case nameof(FF.CachedImage.FadeAnimationDuration):
                CachedImageControl.FadeAnimationDuration = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(FF.CachedImage.FadeAnimationEnabled):
                CachedImageControl.FadeAnimationEnabled = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(FF.CachedImage.FadeAnimationForCachedImages):
                CachedImageControl.FadeAnimationForCachedImages = AttributeHelper.GetBool(attributeValue);
                break;

            //case nameof(FF.CachedImage.FixedAndroidMotionEventHandler):
            //    CachedImageControl.FixedAndroidMotionEventHandler = AttributeHelper.GetBool(attributeValue);
            //    break;
            //case nameof(FF.CachedImage.FixedOnMeasureBehavior):
            //    CachedImageControl.FixedOnMeasureBehavior = AttributeHelper.GetBool(attributeValue);
            //    break;
            case nameof(FF.CachedImage.InvalidateLayoutAfterLoaded):
                CachedImageControl.InvalidateLayoutAfterLoaded = AttributeHelper.GetBool(attributeValue);;
                break;

            case nameof(FF.CachedImage.IsOpaque):
                CachedImageControl.IsOpaque = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(FF.CachedImage.LoadingDelay):
                CachedImageControl.LoadingDelay = AttributeHelper.GetInt(attributeValue);;
                break;

            case nameof(FF.CachedImage.LoadingPlaceholder):
                CachedImageControl.LoadingPlaceholder = AttributeHelper.StringToImageSource(attributeValue);
                break;

            case nameof(FF.CachedImage.LoadingPriority):
                CachedImageControl.LoadingPriority = (LoadingPriority)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(FF.CachedImage.RetryCount):
                CachedImageControl.RetryCount = AttributeHelper.GetInt(attributeValue, 3);
                break;

            case nameof(FF.CachedImage.RetryDelay):
                CachedImageControl.RetryDelay = AttributeHelper.GetInt(attributeValue, 250);
                break;

            case nameof(FF.CachedImage.Source):
                CachedImageControl.Source = AttributeHelper.StringToImageSource(attributeValue);
                break;

            //case nameof(FF.CachedImage.Transformations):
            //    CachedImageControl.Transformations = ;
            //    break;
            case nameof(FF.CachedImage.TransformPlaceholders):
                CachedImageControl.TransformPlaceholders = AttributeHelper.GetBool(attributeValue);;
                break;

            default:
                ApplyAdditionalAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }
コード例 #29
0
        public override void ApplyAttribute(ulong attributeEventHandlerId, string attributeName, object attributeValue, string attributeEventUpdatesAttributeName)
        {
            switch (attributeName)
            {
            case nameof(XF.Entry.CharacterSpacing):
                EntryControl.CharacterSpacing = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.Entry.ClearButtonVisibility):
                EntryControl.ClearButtonVisibility = (XF.ClearButtonVisibility)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.CursorPosition):
                EntryControl.CursorPosition = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.FontAttributes):
                EntryControl.FontAttributes = (XF.FontAttributes)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.FontFamily):
                EntryControl.FontFamily = (string)attributeValue;
                break;

            case nameof(XF.Entry.FontSize):
                EntryControl.FontSize = AttributeHelper.StringToDouble((string)attributeValue);
                break;

            case nameof(XF.Entry.HorizontalTextAlignment):
                EntryControl.HorizontalTextAlignment = (XF.TextAlignment)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.IsPassword):
                EntryControl.IsPassword = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Entry.IsTextPredictionEnabled):
                EntryControl.IsTextPredictionEnabled = AttributeHelper.GetBool(attributeValue);
                break;

            case nameof(XF.Entry.Placeholder):
                EntryControl.Placeholder = (string)attributeValue;
                break;

            case nameof(XF.Entry.PlaceholderColor):
                EntryControl.PlaceholderColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.Entry.ReturnType):
                EntryControl.ReturnType = (XF.ReturnType)AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.SelectionLength):
                EntryControl.SelectionLength = AttributeHelper.GetInt(attributeValue);
                break;

            case nameof(XF.Entry.Text):
                EntryControl.Text = (string)attributeValue;
                break;

            case nameof(XF.Entry.TextColor):
                EntryControl.TextColor = AttributeHelper.StringToColor((string)attributeValue);
                break;

            case nameof(XF.Entry.VerticalTextAlignment):
                EntryControl.VerticalTextAlignment = (XF.TextAlignment)AttributeHelper.GetInt(attributeValue);
                break;

            case "oncompleted":
                Renderer.RegisterEvent(attributeEventHandlerId, () => CompletedEventHandlerId = 0);
                CompletedEventHandlerId = attributeEventHandlerId;
                break;

            case "ontextchanged":
                Renderer.RegisterEvent(attributeEventHandlerId, () => TextChangedEventHandlerId = 0);
                TextChangedEventHandlerId = attributeEventHandlerId;
                break;

            default:
                base.ApplyAttribute(attributeEventHandlerId, attributeName, attributeValue, attributeEventUpdatesAttributeName);
                break;
            }
        }