Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
28b5001c
Commit
28b5001c
authored
Jun 26, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 扫描图 X轴 间隔设置
parent
1a2b780a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
0 deletions
+107
-0
UcSectionScanGraph.xaml
...e/FLY.Thick.Base.UI/CustomSection/UcSectionScanGraph.xaml
+27
-0
UcSectionScanGraph.xaml.cs
...LY.Thick.Base.UI/CustomSection/UcSectionScanGraph.xaml.cs
+80
-0
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/CustomSection/UcSectionScanGraph.xaml
0 → 100644
View file @
28b5001c
<UserControl x:Class="FLY.Thick.Base.UI.CustomSection.UcSectionScanGraph"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:FLY.Thick.Base.UI.CustomSection"
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
mc:Ignorable="d" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Themes/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<StackPanel Orientation="Horizontal" >
<Border Style="{StaticResource Styles.ParamSection.Border}">
<TextBlock Text="图表
总体设置" />
</Border>
<StackPanel Orientation="Horizontal">
<StackPanel Margin="{StaticResource ControlMargin}">
<TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="X轴间隔"/>
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding XStep}"/>
</StackPanel>
</StackPanel>
</StackPanel>
</UserControl>
Project.FLY.Thick.Base/FLY.Thick.Base.UI/CustomSection/UcSectionScanGraph.xaml.cs
0 → 100644
View file @
28b5001c
using
FLY.Thick.Base.IService
;
using
FLY.Thick.Base.UI.OnInit
;
using
Misc
;
using
MultiLayout
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Linq
;
using
System.Text
;
using
System.Text.RegularExpressions
;
using
System.Threading.Tasks
;
using
System.Windows
;
using
System.Windows.Controls
;
using
System.Windows.Data
;
using
System.Windows.Documents
;
using
System.Windows.Input
;
using
System.Windows.Media
;
using
System.Windows.Media.Imaging
;
using
System.Windows.Navigation
;
using
System.Windows.Shapes
;
using
Unity
;
namespace
FLY.Thick.Base.UI.CustomSection
{
/// <summary>
/// UcSectionScanGraph.xaml 的交互逻辑
/// </summary>
public
partial
class
UcSectionScanGraph
:
UserControl
{
ParamDictionary
paramDictionary
;
IUnityContainer
container
;
FlyLayoutManager
manager
;
UcSectionScanGraphVm
viewModel
;
public
int
XStep
{
get
;
set
;
}
public
UcSectionScanGraph
()
{
InitializeComponent
();
}
[
Unity
.
InjectionMethod
]
public
void
Init
(
IUnityContainer
container
,
ParamDictionary
paramDictionary
,
FlyLayoutManager
manager
)
{
this
.
container
=
container
;
this
.
paramDictionary
=
paramDictionary
;
this
.
manager
=
manager
;
viewModel
=
new
UcSectionScanGraphVm
();
viewModel
.
Init
(
paramDictionary
);
this
.
DataContext
=
viewModel
;
}
}
public
class
UcSectionScanGraphVm
:
INotifyPropertyChanged
{
public
event
PropertyChangedEventHandler
PropertyChanged
;
/// <summary>
/// X轴间隔
/// </summary>
public
int
XStep
{
get
;
set
;
}
public
UcSectionScanGraphVm
()
{
}
public
void
Init
(
ParamDictionary
paramDictionary
)
{
paramDictionary
.
SetBinding
(
this
,
nameof
(
XStep
),
XStep
);
}
}
}
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