Пример #1
0
        protected override DependencyObject GetContainerForItemOverride()
        {
            var item = new NumberBoxItem();

            item.OnItemSingleClickHandler += Item_OnClickHandler;
            return(item);
        }
Пример #2
0
        private void Item_OnClickHandler(object sender, ItemMouseSingleClickEventArgs <object> e)
        {
            NumberBoxItem item = sender as NumberBoxItem;

            this.SelectedItem = item.Content;
        }