Exemplo n.º 1
0
        private void ListBox_MouseDoubleClick_1(object sender, MouseButtonEventArgs e)
        {
            TagBrowserViewModel vm = (TagBrowserViewModel)this.DataContext;

            vm.SaveCommand.Execute(null);
            btnSave_Click(null, null);
        }
Exemplo n.º 2
0
        private void ListBox_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
        {
            ListBox lb = sender as ListBox;

            lb.ScrollIntoView(lb.SelectedItem);
            try
            {
                TagBrowserViewModel vm = (TagBrowserViewModel)this.DataContext;
                vm.CustomTag = ((Model.TagsRow)lb.SelectedItem).Address;
            }
            catch (Exception ex)
            {
            }
        }