Пример #1
0
		public BalloonToolTipViewModel()
		{
			Title = "";
			RemoveItemCommand = new RelayCommand(OnRemoveItem);
			ClearCommand = new RelayCommand(OnClear);
			customBalloonView = new Views.BalloonToolTipView();
			customBalloonView.DataContext = this;
		}
Пример #2
0
		public BalloonToolTipViewModel(string title, string text, Brush foregroundColor, Brush backgroundColor)
		{
			Items.Clear();
			Title = "";
			Add(title, text, foregroundColor, backgroundColor);
			RemoveItemCommand = new RelayCommand(OnRemoveItem);
			ClearCommand = new RelayCommand(OnClear);
			customBalloonView = new Views.BalloonToolTipView();
			customBalloonView.DataContext = this;
		}