xceed

Xceed DataGrid Resets ScrollBar Position

六眼飞鱼酱① 提交于 2019-12-11 01:04:52
问题 When I change the ItemsSource in the Xceed DataGridControl my vertical and horizontal scroll bars immediately get reset to the top/left. Any ideas how to prevent that from happening? 回答1: I finally fixed and figured out why my scrollbars jump to the top/left each time my DataGrid refreshes. Turns out the XAML binded to the View instead of to an actual datasource (DataView), thus each refresh replaced the view and the datasource. As a result of binding to a DataView, my scrollbars no longer

Does the DockingManager come with a built-in method for handling Anchorables

删除回忆录丶 提交于 2019-12-10 03:14:40
问题 When setting up AvalonDock with a set of Anchorables, for example: <a:LayoutRoot> <a:LayoutPanel Orientation="Horizontal"> <a:LayoutAnchorablePane> <a:LayoutAnchorable Title="A1"> <!-- content --> </a:LayoutAnchorable> <a:LayoutAnchorable Title="A2"> <!-- content --> </a:LayoutAnchorable> </a:LayoutAnchorablePane> <!-- ... --> Does the DockingManager (or something else in AvalonDock) come with a built-in way of managing Anchorables that are closed? Are they stored in a collection somewhere so

XCeed PropertyGrid customizing IntegerUpDown

给你一囗甜甜゛ 提交于 2019-12-08 06:24:07
问题 I'm trying to assign different increment values to different fields of an object. For example, consider a class has who has int1 and int2 , and when I set ShowAdvancedOptions to true for my PropertyGrid , integer up down buttons are put in the textbox with no problems. But I want to be able to edit how much the numbers are incremented individually. Is there a way I can ahcieve this? Edit: Here is the code: public MainWindow() { InitializeComponent(); Sample or = new Sample(); pg

Is it possible to prepare bindable MVVM anchorable panes both in main, footer and ride side window using Xceed AvalonDock

余生长醉 提交于 2019-12-08 05:36:14
问题 I am using AvalonDock control to accomplish bindable and dockable panes. I found great sample which alowed me do that. A few things are required to do that: I usedDock manager: <xcad:DockingManager Name="DockingManager" AnchorablesSource="{Binding FooterTools}" DocumentsSource="{Binding MainWindowTools}"> Prepare PanesTemplateSelectors, PanesStyleSelectors Everything looks great and enables me to prepare that solution using MVVM pattern. I would like to know how to extend that solution to

Is it possible to prepare bindable MVVM anchorable panes both in main, footer and ride side window using Xceed AvalonDock

六月ゝ 毕业季﹏ 提交于 2019-12-06 16:03:31
I am using AvalonDock control to accomplish bindable and dockable panes. I found great sample which alowed me do that. A few things are required to do that: I usedDock manager: <xcad:DockingManager Name="DockingManager" AnchorablesSource="{Binding FooterTools}" DocumentsSource="{Binding MainWindowTools}"> Prepare PanesTemplateSelectors, PanesStyleSelectors Everything looks great and enables me to prepare that solution using MVVM pattern. I would like to know how to extend that solution to accomplish following draft: I have two sources which I can use as a bindable sources: AnchorablesSource="

Styling the Xceed ColumnManagerCell

不问归期 提交于 2019-12-06 15:59:53
问题 I'm interested in styling the column headers on an Xceed DataGrid. The goal is to make the background color grey, with a dark grey border around each header column cell. It seemed to me like the best way to do this was to style the ColumnManager: <Style TargetType="{x:Type xcdg:ColumnManagerCell}"> <Setter Property="Template" Value="{StaticResource ColumnManagerCellTemplate}"/> <Setter Property="BorderBrush" Value="#c5c5c5"/> <Setter Property="BorderThickness" Value="1,1,1,1"/> </Style> Using

How to add ComboBox column in XCeed DataGridControl (WPF)

本小妞迷上赌 提交于 2019-12-06 13:51:38
问题 I am trying to add a combobox column in XCeeds DataGridControl . Managed to make a CellEditor , which sets proper values to the binded field, but there are problems with the CellContent template. Xaml : <Grid> <Grid.RowDefinitions> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> <xcdg:DataGridControl ItemsSource="{Binding Address}" > <xcdg:DataGridControl.Columns> <xcdg:Column x:Name="clmAdd"

Does the DockingManager come with a built-in method for handling Anchorables

谁都会走 提交于 2019-12-05 02:43:19
When setting up AvalonDock with a set of Anchorables, for example: <a:LayoutRoot> <a:LayoutPanel Orientation="Horizontal"> <a:LayoutAnchorablePane> <a:LayoutAnchorable Title="A1"> <!-- content --> </a:LayoutAnchorable> <a:LayoutAnchorable Title="A2"> <!-- content --> </a:LayoutAnchorable> </a:LayoutAnchorablePane> <!-- ... --> Does the DockingManager (or something else in AvalonDock) come with a built-in way of managing Anchorables that are closed? Are they stored in a collection somewhere so they can be retrieved and shown again? For example, the user closes the first one from the code above

Styling the Xceed ColumnManagerCell

倖福魔咒の 提交于 2019-12-04 21:16:37
I'm interested in styling the column headers on an Xceed DataGrid. The goal is to make the background color grey, with a dark grey border around each header column cell. It seemed to me like the best way to do this was to style the ColumnManager: <Style TargetType="{x:Type xcdg:ColumnManagerCell}"> <Setter Property="Template" Value="{StaticResource ColumnManagerCellTemplate}"/> <Setter Property="BorderBrush" Value="#c5c5c5"/> <Setter Property="BorderThickness" Value="1,1,1,1"/> </Style> Using this template: <ControlTemplate x:Key="ColumnManagerCellTemplate" TargetType="xcdg:ColumnManagerCell">

Using Xceed PropertyGrid

流过昼夜 提交于 2019-12-04 03:54:35
I am a beginner at C#/WPF and am trying to use the Xceed PropertyGrid. On their site they show an example: <xctk:PropertyGrid x:Name="_propertyGrid" Width="450" Margin="10" AutoGenerateProperties="False"> <!-- Only the following properties will be displayed in the PropertyGrid --> <xctk:PropertyGrid.PropertyDefinitions> <xctk:PropertyDefinition Name="FirstName" /> <xctk:PropertyDefinition Name="FavoriteColor" /> <xctk:PropertyDefinition Name="PetNames" /> </xctk:PropertyGrid.PropertyDefinitions> </xctk:PropertyGrid> Which I have plugged in to my xaml. I see the PropertyGrid View however I do