public BalloonToolTipViewModel() { Title = ""; RemoveItemCommand = new RelayCommand(OnRemoveItem); ClearCommand = new RelayCommand(OnClear); customBalloonView = new Views.BalloonToolTipView(); customBalloonView.DataContext = this; }
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; }