public ToolBarSampleWpf() { InitializeComponent(); options.AddOption("Enabled", toolBarTray, x => x.IsEnabled); options.AddOption("IsLocked", toolBarTray, x => x.IsLocked); }
public CalendarSampleNative() { InitializeComponent(); options.AddOption("Enabled", calendar1, x => x.Enabled); options.AddOption("ShowToday", calendar1, x => x.ShowToday); options.AddOption("ShowWeekNumbers", calendar1, x => x.ShowWeekNumbers); }
public TabControlSampleWpf() { InitializeComponent(); options.AddOption("Enabled", tabControl1, l => l.IsEnabled); options.AddOption("Tabs Right", tabControl1, l => l.TabStripPlacement, Dock.Right, Dock.Left); options.AddOption("Tabs Bottom", tabControl1, l => l.TabStripPlacement, Dock.Bottom, Dock.Top); options.Add(new GenericBoolOption("Single Tab", GetSingleTab, SetSingleTab)); }
public DataGridSampleNative() { InitializeComponent(); grid.DataSource = new SortableBindingList <Item>(new ItemsCollection().ToList()); options = new OptionList(); options.AddOption("Enabled", grid, t => t.Enabled); options.AddOption("Multiple Rows", grid, c => c.MultiSelect); options.AddOption("Full Row Select", grid, c => c.SelectionMode, DataGridViewSelectionMode.FullRowSelect, DataGridViewSelectionMode.RowHeaderSelect); options.AddOption("Show Grid Lines", grid, c => c.CellBorderStyle, DataGridViewCellBorderStyle.Single, DataGridViewCellBorderStyle.None); }
public TreeViewSampleWpf() { InitializeComponent(); DataContext = this; var root = ItemGenerator.GetTree(); AddItem(treeView1.Items, root); AddItem(treeView2.Items, root); options = new OptionList(); options.AddOption("Enabled", treeView1, treeView2, l => l.IsEnabled); options.Add(new GenericBoolOption( "FullRowSelect", () => TreeViewService.GetFullRowSelect(treeView1), v => { TreeViewService.SetFullRowSelect(treeView1, v); TreeViewService.SetFullRowSelect(treeView2, v); })); options.Add(new GenericIntOption( "ItemHeight", () => itemHeight, v => { itemHeight = v; SetItemHeight(treeView1.Items, itemHeight > 0 ? (double?)itemHeight : null); SetItemHeight(treeView2.Items, itemHeight > 0 ? (double?)itemHeight : null); })); }
public ToolBarSampleNative() { InitializeComponent(); #if !NETCOREAPP options.AddOption("Enabled", toolBar1, x => x.Enabled); #endif }
public CalendarSampleWpf() { InitializeComponent(); options.AddOption("Enabled", calendar1, x => x.IsEnabled); options.AddEnumOption("DisplayMode", calendar1, x => x.DisplayMode); options.AddEnumOption("SelectionMode", calendar1, x => x.SelectionMode); options.AddOption("IsTodayHighlighted", calendar1, x => x.IsTodayHighlighted); var today = DateTime.Now.Date; calendar1.BlackoutDates.Add( new CalendarDateRange( new DateTime(today.Year, today.Month, today.Day == 1 ? 2 : 1), new DateTime(today.Year, today.Month, 3))); calendar1.SelectedDate = today; }
public ScrollBarSampleNative() { InitializeComponent(); var options = new OptionList(); options.AddOption( "Enabled", new ScrollBar[] { vScrollBar1, hScrollBar1 }, x => x.Enabled); Options = options; }
public ListBoxSampleWpf() { InitializeComponent(); foreach (var item in ItemGenerator.Generate(90)) { lv1.Items.Add(item[0]); } options = new OptionList(); options.AddOption("Enabled", lv1, l => l.IsEnabled); }
public DataGridSampleWpf() { InitializeComponent(); DataContext = this; Items = new ItemsCollection(); var options = new OptionList(); options.AddOption("Enabled", dataGrid, l => l.IsEnabled); options.AddOption("Multiple Rows", dataGrid, c => c.SelectionMode, DataGridSelectionMode.Extended, DataGridSelectionMode.Single); options.AddOption("Full Row Select", dataGrid, c => c.SelectionUnit, DataGridSelectionUnit.FullRow, DataGridSelectionUnit.CellOrRowHeader); options.AddEnumOption("Grid Lines", dataGrid, c => c.GridLinesVisibility); options.AddEnumOption("Headers", dataGrid, c => c.HeadersVisibility); options.AddOption("Wide Row Header", dataGrid, c => c.RowHeaderWidth, 25, double.NaN); options.AddOption("Frozen Columns", dataGrid, c => c.FrozenColumnCount); options.AddOption("Row Details", dataGrid, c => c.RowDetailsVisibilityMode, DataGridRowDetailsVisibilityMode.Visible, DataGridRowDetailsVisibilityMode.Collapsed); Options = options; }
public ListViewSampleWpf() { InitializeComponent(); foreach (var item in ItemGenerator.Generate()) { var tuple = Tuple.Create(item[0], item[1], item[2]); lv1.Items.Add(tuple); lv2.Items.Add(tuple); } options = new OptionList(); options.AddOption("Enabled", lv1, l => l.IsEnabled); options.AddOption("Enabled", lv2, l => l.IsEnabled); options.Add(new GenericBoolOption( "GridView", () => lv1.View is GridView, v => { lv1.View = v ? gridView1 : null; lv2.View = v ? gridView2 : null; })); }
private void CreateOptions() { options.AddOption("Enabled", tabControl1, x => x.Enabled); //options.AddOption(tabControl1, "TCS_SCROLLOPPOSITE", x => x.); // 0x0001 options.AddOption("TCS_BOTTOM", tabControl1, x => x.Alignment, TabAlignment.Bottom, TabAlignment.Top); options.AddOption("TCS_RIGHT", tabControl1, x => x.Alignment, TabAlignment.Right, TabAlignment.Left); //options.AddOption(tabControl1, "TCS_MULTISELECT", x => x.); // 0x0004 options.AddOption("TCS_FLATBUTTONS", tabControl1, x => x.Appearance, TabAppearance.FlatButtons, TabAppearance.Normal); //options.AddOption(tabControl1, "TCS_FORCEICONLEFT", x => x.); // 0x0010 //options.AddOption(tabControl1, "TCS_FORCELABELLEFT", x => x.); // 0x0020 options.AddOption("TCS_HOTTRACK", tabControl1, x => x.HotTrack); //options.AddOption(tabControl1, "TCS_VERTICAL", x => x.); // 0x0080 options.AddOption("TCS_TABS", tabControl1, x => x.Tabs); // 0x0000 options.AddOption("TCS_BUTTONS", tabControl1, x => x.Appearance, TabAppearance.Buttons, TabAppearance.Normal); //options.AddOption(tabControl1, "TCS_SINGLELINE", x => x.); // 0x0000 options.AddOption("TCS_MULTILINE", tabControl1, x => x.Multiline); //options.AddOption(tabControl1, "TCS_RIGHTJUSTIFY", x => x.); // 0x0000 options.AddOption("TCS_FIXEDWIDTH", tabControl1, x => x.SizeMode, TabSizeMode.Fixed, TabSizeMode.Normal); options.AddOption("TCS_RAGGEDRIGHT", tabControl1, x => x.SizeMode, TabSizeMode.Normal, TabSizeMode.FillToRight); //options.AddOption(tabControl1, "TCS_FOCUSONBUTTONDOWN", x => x.); // 0x1000 options.AddOption("TCS_OWNERDRAWFIXED", tabControl1, x => x.DrawMode, TabDrawMode.OwnerDrawFixed, TabDrawMode.Normal); options.AddOption("TCS_TOOLTIPS", tabControl1, x => x.ShowToolTips); //options.AddOption(tabControl1, "TCS_FOCUSNEVER", x => x.); // 0x8000 //options.AddOption(tabControl1, "TCS_EX_FLATSEPARATORS", x => x.); // 0x00000001 //options.AddOption(tabControl1, "TCS_EX_REGISTERDROP", x => x.); // 0x00000002 options.Add(new GenericBoolOption("Single Tab", GetSingleTab, SetSingleTab)); }
private void CreateOptions() { options.AddOption("Indeterminate", new[] { bar1, bar2, bar3 }, x => x.IsIndeterminate); }
private void AddOption(string name, Expression <Func <ListViewEx, bool> > expression, bool negated = false) { options.AddOption(name, sysListView, explorerListView, expression, negated); }
public ToolBarSampleNative() { InitializeComponent(); options.AddOption("Enabled", toolBar1, x => x.Enabled); }