public UiDataProviders() { #region Construct Header = Lang.Dockable.DataSources.Header; _listView = UiListViewFactory.Create(); _listView.ItemTemplate = CreateTemplate(); _listView.ItemContainerStyle = CreateNodeStyle(); Content = _listView; #endregion Refresh(); //Loaded += OnLoaded; }
public UiAudioPlayback() { SetCols(2); ColumnDefinitions[0].Width = new GridLength(50); _listView = UiListViewFactory.Create(); _listView.DisplayMemberPath = "Title"; _listView.SelectionChanged += OnListViewSelectionChanged; AddUiElement(_listView, 0, 0); _audioPlayer = new UiAudioPlayer { VerticalAlignment = VerticalAlignment.Top, Height = 32 }; AddUiElement(_audioPlayer, 0, 1); }
public UiGameFileCommander() { #region Construct Header = Lang.Dockable.GameFileCommander.Header; _grid = UiGridFactory.Create(1, 3); { _grid.ColumnDefinitions[1].Width = GridLength.Auto; _grid.AddVerticalSplitter(1); _treeView = UiTreeViewFactory.Create(); { _treeView.ItemTemplate = CreateArchiveListingTemplate(true); _treeView.ItemContainerStyle = CreateTreeViewItemContainerStyle(); _treeView.ContextMenu = CreateTreeViewContextMenu(); _treeView.SelectedItemChanged += OnTreeViewSelectedItemChanged; _grid.AddUiElement(_treeView, 0, 0); } _listView = UiListViewFactory.Create(); { _listView.ItemTemplate = CreateArchiveListingTemplate(false); _listView.ItemContainerStyle = CreateListViewItemContainerStyle(); _listView.SetValue(VirtualizingStackPanel.IsVirtualizingProperty, false); _listView.KeyDown += OnListViewKeyDown; //_listView.SetBinding(Selector.SelectedItemProperty, new Binding("ListViewSelectedItem") {Mode = BindingMode.OneWayToSource}); _listView.SelectionChanged += OnListViewSelectionChanged; _listView.DataContext = this; _grid.AddUiElement(_listView, 0, 2); } } Content = _grid; #endregion Loaded += OnLoaded; }