Beispiel #1
0
    public override void Load()
    {
        ItemsProperty.Clear();
        for (int i = 0; i < MainManager.instance.CharacterList.Count; i++)
        {
            ItemsProperty.Add(new CharacterItemContext(MainManager.instance.CharacterList[i].Name, i, this));
        }

        base.Load();
        Select(MainManager.instance.CurrentSelectCharacterId);
    }
Beispiel #2
0
        private void ConnectItems(IDomain domain, IArea currentArea, IObject currentObject, ref bool IsConnected)
        {
            IResource Resource = ItemsResource;
            IObject   Object   = ItemsObject;
            IObjectPropertyStringList ObjectProperty = ItemsObjectProperty;

            IsConnected        |= ItemsProperty.ConnectToStringList(domain, currentArea, currentObject, ref Resource, ref Object, ref ObjectProperty);
            ItemsResource       = Resource;
            ItemsObject         = Object;
            ItemsObjectProperty = ObjectProperty;

            ItemsObjectProperty?.SetIsRead();
        }
Beispiel #3
0
        /// <summary>
        /// Called after the view and its children has been loaded.
        /// </summary>
        protected override void AfterLoad()
        {
            base.AfterLoad();

            if (IsStaticProperty.IsUndefined(this) && ItemsProperty.IsUndefined(this))
            {
                // if items property isn't defined assume tab panel is meant to be static
                IsStatic = true;
            }

            if (IsStatic)
            {
                CreateStaticTabItems();
            }
            else
            {
                ItemsChanged();
            }
        }
Beispiel #4
0
 get => (VisualObjectCollection)GetValue(ItemsProperty); set => SetValue(ItemsProperty, value);
 set => SetValue(ItemsProperty, value);
 /// <inheritdoc/>
 protected override string OnComputeId()
 {
     return($"{GetType().Name}[{ChangeType?.ToString() + ": " + ItemsProperty?.ToString()}]");
 }
Beispiel #7
0
 private set => this.SetValue(ItemsProperty, value);
Beispiel #8
0
 static TagsBox()
 {
     ItemsProperty.OverrideMetadata <TagsBox>(
         new DirectPropertyMetadata <IEnumerable?>(enableDataValidation: true));
 }
 get => (IEnumerable <IExplorerControlBrowsableObjectInfoViewModel>)GetValue(ItemsProperty); set => SetValue(ItemsProperty, value);