Esempio n. 1
0
		internal void AddDesignerItem(CommonDesignerItem visual)
		{
			if (visual.WPFControl != null)
			{
				Children.Add(visual.WPFControl);
			}

			_visuals.Add(visual);
			_isZIndexValid = false;
		}
Esempio n. 2
0
		internal void DeleteDesignerItem(CommonDesignerItem visual)
		{
			if (visual.IsMouseOver)
				((IVisualItem)visual).SetIsMouseOver(false, new Point());
			_visuals.Remove(visual);
		}
Esempio n. 3
0
		protected override void SetDesignerItemOver(CommonDesignerItem designerItem, bool isOver)
		{
			base.SetDesignerItemOver(designerItem, isOver);
			if (isOver)
			{
				var presenterItem = designerItem as PresenterItem;
				if (presenterItem != null && presenterItem.ShowBorderOnMouseOver)
					_border.Show(presenterItem);
			}
			else
				_border.Hide();
		}
		private void DesignerItemPropertyChanged(CommonDesignerItem designerItem)
		{
			if (designerItem.Element is ElementPassCardImageProperty)
				designerItem.Title = ((ElementPassCardImageProperty)designerItem.Element).Text.Replace('\n', ' ');
			else if (designerItem.Element is ElementPassCardTextProperty)
				designerItem.Title = ((ElementPassCardTextProperty)designerItem.Element).Text.Replace('\n', ' ');
		}