xceed

Category Ordering In Xceed PropertyGrid

断了今生、忘了曾经 提交于 2020-04-30 05:06:53
问题 I am using PropertyGrid of Xceed to display characteristics of some elements. There are different categories for element like: General, Advanced, Others, Special. Here, I found that the Xceed's propertygrid sorts the category as well as property in alphabetical order. I was able to sort the properties inside the categories by using [PropertyOrder(n)] . I also wanted to sort the categories so, I tried using CategoryOrder like [CategoryOrder("General", 0)] but it shows the following error:

Avalondock MVVM Layout

有些话、适合烂在心里 提交于 2020-01-11 06:40:12
问题 So The Question has been asked before but not answered or not answered the way I would like I know how to create the Layout I want to achive, using LayoutAnchorablePaneGroup , LayoutAnchorablePane and LayoutDocument in XAML, but I wanted to use Avalondock in a MVVM way, reducing my XAML to: <avalonDock:DockingManager x:Name="dockingManager" DataContext="{Binding DockManagerViewModel}" DocumentsSource="{Binding Documents}" AnchorablesSource="{Binding Anchorables}" Loaded="dockingManager_Loaded

How do I detect row selection in the Xceed DataGrid for WPF

时间秒杀一切 提交于 2020-01-01 07:27:10
问题 I'm horrible at this WPF thing, so bear with me. I'm using the Xceed DataGrid for WPF, and I need to know when someone selects a row, but I can't figure out how to do it. I'm sure I need to add some XAML to enable this, but I can't figure out what I should do. 回答1: I use a MVVM approach and therefor favor data binding. I will bind the SelectedItem property to a SelectedItem property on my ViewModel object for the grid. <xcdg:DataGridControl x:Name="grid" SelectedItem="{Binding SelectedItem}">

Xceed Docx returns blank document

依然范特西╮ 提交于 2019-12-23 04:47:27
问题 noob here, i want to export a report as docx file using the xceed docx, but it returns blank document (empty) MemoryStream stream = new MemoryStream(); Xceed.Words.NET.DocX document = Xceed.Words.NET.DocX.Create(stream); Xceed.Words.NET.Paragraph p = document.InsertParagraph(); p.Append("Hello World"); document.Save(); return File(stream, "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "DOCHK.docx"); please help 回答1: The problem: While your data has been written to

Using Xceed PropertyGrid

折月煮酒 提交于 2019-12-21 09:18:40
问题 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

WPF Xceed PropertyGrid showing “Xceed.Wpf.Toolkit.PropertyGrid.Attributes.Item” instead of the real DisplayName

戏子无情 提交于 2019-12-13 00:39:16
问题 I'm trying to use Xceed PropertyGrid to show dropdown with hardcoded string values. Instead of showing the items as the strings I assign as the IItemSource , PropertyGrid showing: "Xceed.Wpf.Toolkit.PropertyGrid.Attributes.Item" for each item in the dropdown. When I select an object, the desired string is showing as the chosen item. This is the dropdown items I see: And when I choose an item, I can see it the way I want it to appear as the dropdown items as well: My code: XAML: <xctk

Expanding all groups, including nested, in an xceed DataGridControl

馋奶兔 提交于 2019-12-12 03:36:13
问题 I am able to expand a single group fine, but my app uses nested groupings. Im attempting to do something as follows: foreach (CollectionViewGroup group in GridControl.Items.Groups) { if (group != null) GridControl.ExpandGroup(group); } GridControl here is a DataGridControl. Even if i have nested groups, items here will only show 1 item, but inside the loop, the group can see its subgroup in its VirtualizedItems, but not in its Items. I dont think i can access the VirtualizedItems. 回答1:

Prevent document from closing in DockingManager

南楼画角 提交于 2019-12-11 10:29:20
问题 Here's a sample, which uses DockingManager (a.k.a AvalonDock) from Extended WPF Toolkit. View model: public class Person { public string Name { get; set; } public bool CanClose { get; set; } } View: <Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:xcad="http://schemas.xceed.com/wpf/xaml/avalondock" xmlns:local="clr-namespace:WpfApplication2"> <Grid> <xcad:DockingManager

How can you programmatically order categories in the Xceed PropertyGrid?

对着背影说爱祢 提交于 2019-12-11 04:49:09
问题 As shown in the example here, what I'm trying to achieve is ordering categories in the Xceed PropertyGrid control. As that example shows (copied here for reference), you can specify this information at compile-time by adding attributes to the class, like so... [CategoryOrder("General", 1)] [CategoryOrder("Advanced", 2)] [CategoryOrder("Other", 3)] public class MyClass { [Category("General")] public string Property1 { get; set; } [Category("Advanced")] public int Property2 { get; set; }