Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Package
Commits
118cfb6c
Commit
118cfb6c
authored
Feb 22, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自定义字段
parent
20ed5a57
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
1 deletions
+37
-1
VIZ.Package.Domain/Model/ControlObject/ControlFieldNodeModel.cs
+14
-0
VIZ.Package.Module.Resource/Icons/icon_custom_32x32.png
+0
-0
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
+4
-0
VIZ.Package.Module/ControlObject/FieldTree/View/FieldTreeView.xaml
+13
-0
VIZ.Package.Module/Preview/VizPreview/View/VizPreviewView.xaml
+1
-1
VIZ.Package.Storage/Entity/ControlObject/ControlFieldEntity.cs
+5
-0
No files found.
VIZ.Package.Domain/Model/ControlObject/ControlFieldNodeModel.cs
View file @
118cfb6c
...
...
@@ -125,5 +125,19 @@ namespace VIZ.Package.Domain
}
#
endregion
#
region
IsCustom
--
是否是自定义字段
private
bool
isCustom
;
/// <summary>
/// 是否是自定义字段
/// </summary>
public
bool
IsCustom
{
get
{
return
isCustom
;
}
set
{
isCustom
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
IsCustom
));
}
}
#
endregion
}
}
VIZ.Package.Module.Resource/Icons/icon_custom_32x32.png
0 → 100644
View file @
118cfb6c
870 Bytes
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
View file @
118cfb6c
...
...
@@ -270,5 +270,8 @@
<Resource Include="Icons\icon_field_edit_32x32.png" />
<Resource Include="Icons\icon_play_list_32x32.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\icon_custom_32x32.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package.Module/ControlObject/FieldTree/View/FieldTreeView.xaml
View file @
118cfb6c
...
...
@@ -16,10 +16,23 @@
d:DataContext="{d:DesignInstance Type=local:FieldTreeViewModel}"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<fcore:Bool2VisibilityConverter x:Key="Bool2VisibilityConverter" TrueVisibility="Visible" FalseVisibility="Visible"></fcore:Bool2VisibilityConverter>
</UserControl.Resources>
<Grid>
<dxg:GridControl ItemsSource="{Binding Path=ControlObject.FieldNodes}" ShowBorder="False"
SelectedItem="{Binding Path=SelectedControlField,Mode=TwoWay}">
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="IsCustom" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False" Width="50" AllowResizing="False">
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<Image Width="20" Height="20" VerticalAlignment="Center" HorizontalAlignment="Center"
Visibility="{Binding Path=Row.IsCustom,Converter={StaticResource Bool2VisibilityConverter}}"
Source="/VIZ.Package.Module.Resource;component/Icons/icon_custom_32x32.png"></Image>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
<dxg:GridColumn Header="字段" FieldName="FieldIdentifier" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False" Width="150" AllowResizing="True"></dxg:GridColumn>
<dxg:GridColumn Header="类型" FieldName="Type" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False" Width="100" AllowResizing="True"></dxg:GridColumn>
<dxg:GridColumn Header="描述" FieldName="Description" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False" Width="*" AllowResizing="True"></dxg:GridColumn>
...
...
VIZ.Package.Module/Preview/VizPreview/View/VizPreviewView.xaml
View file @
118cfb6c
...
...
@@ -95,7 +95,7 @@
</StackPanel>
</Grid>
<!-- VIZ引擎 -->
<fcommon:WindowHost x:Name="host" Grid.Row="1" Background="
Black" BackColor="Black
">
<fcommon:WindowHost x:Name="host" Grid.Row="1" Background="
#FF222222" BackColor="#FF222222
">
<dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand PassEventArgsToCommand="True" EventName="SizeChanged"
Command="{Binding Path=WindowHostSizeChangedCommand}"></dxmvvm:EventToCommand>
...
...
VIZ.Package.Storage/Entity/ControlObject/ControlFieldEntity.cs
View file @
118cfb6c
...
...
@@ -37,5 +37,10 @@ namespace VIZ.Package.Storage
/// 字段类型
/// </summary>
public
VizControlFieldType
Type
{
get
;
set
;
}
/// <summary>
/// 是否是自定义字段
/// </summary>
public
bool
IsCustom
{
get
;
set
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment