Исходный код вики XCeed. PropertyGrid

Редактировал(а) Alexandr Fokin 2024/11/30 19:03

Последние авторы
1 | |XCeed. PropertyGrid, Property Grid
2 | |
3 | |(((
4 |(% style="width:202px" %)Кастомное форматирование свойства|(% style="width:1242px" %)(((
5 How to use Date Picker in Xceed PropertyGrid?
6 [[https:~~/~~/stackoverflow.com/questions/39410875/how-to-use-date-picker-in-xceed-propertygrid>>https://stackoverflow.com/questions/39410875/how-to-use-date-picker-in-xceed-propertygrid]]
7
8 {{code language="xml"}}
9 xmlns:sys="clr-namespace:System;assembly=System.Runtime"
10 xmlns:xs="http://schemas.xceed.com/wpf/xaml/toolkit"
11
12 <xs:PropertyGrid x:Name="PropertyGrid">
13
14 <!--DateTime?-->
15 <xs:PropertyGrid.EditorDefinitions>
16 <xs:EditorTemplateDefinition>
17
18 <!--Селектор по типу-->
19 <xs:EditorTemplateDefinition.TargetProperties>
20 <xs:TargetPropertyType Type="{x:Type sys:Nullable`1[System.DateTime]}" />
21 </xs:EditorTemplateDefinition.TargetProperties>
22
23 <!--Шаблон редактора-->
24 <xs:EditorTemplateDefinition.EditingTemplate>
25 <DataTemplate>
26 <TextBox Text="{Binding Value, Mode=OneWay}" IsEnabled="False">
27 <TextBox.Resources>
28 <Style TargetType="{x:Type Border}">
29 <Setter Property="Visibility" Value="Hidden"/>
30 </Style>
31 </TextBox.Resources>
32 </TextBox>
33 </DataTemplate>
34 </xs:EditorTemplateDefinition.EditingTemplate>
35 </xs:EditorTemplateDefinition>
36 </xs:PropertyGrid.EditorDefinitions>
37 </xs:PropertyGrid>
38 {{/code}}
39 )))
40 |(% style="width:202px" %) |(% style="width:1242px" %)
41 |(% style="width:202px" %) |(% style="width:1242px" %)
42
43
44 )))