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
4559d669
Commit
4559d669
authored
Mar 01, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 MenuProfile,MenuSetting 模板
parent
4e7ef69c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
184 additions
and
1 deletion
+184
-1
MenuMotion.xaml
...FLY.Thick.Base/FLY.Thick.Base.UI/UiModule/MenuMotion.xaml
+1
-1
MenuProfile.xaml
...LY.Thick.Base/FLY.Thick.Base.UI/UiModule/MenuProfile.xaml
+25
-0
MenuProfile.xaml.cs
...Thick.Base/FLY.Thick.Base.UI/UiModule/MenuProfile.xaml.cs
+60
-0
MenuSetting.xaml
...LY.Thick.Base/FLY.Thick.Base.UI/UiModule/MenuSetting.xaml
+25
-0
MenuSetting.xaml.cs
...Thick.Base/FLY.Thick.Base.UI/UiModule/MenuSetting.xaml.cs
+73
-0
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UiModule/MenuMotion.xaml
View file @
4559d669
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<UserControl.Resources>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.Thick.
Normal
.UI;component/Themes/Styles.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.Thick.
Base
.UI;component/Themes/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</ResourceDictionary>
</UserControl.Resources>
</UserControl.Resources>
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UiModule/MenuProfile.xaml
0 → 100644
View file @
4559d669
<UserControl x:Class="FLY.Thick.Base.UI.Client.UiModule.MenuProfile"
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.Normal.UI.Client.UiModule"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
mc:Ignorable="d" >
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Themes/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<StackPanel>
<Button Style="{StaticResource ButtonStyle_icon}" Foreground="White"
Click="btnProfileClick">
<StackPanel >
<iconPacks:PackIconMaterial Kind="ClipboardText" />
<TextBlock Text="产品" Foreground="White"/>
</StackPanel>
</Button>
</StackPanel>
</UserControl>
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UiModule/MenuProfile.xaml.cs
0 → 100644
View file @
4559d669
using
MultiLayout
;
using
MultiLayout.UiModule
;
using
System.Windows
;
using
System.Windows.Controls
;
using
Unity
;
namespace
FLY.Thick.Base.UI.Client.UiModule
{
/// <summary>
/// MenuProfile.xaml 的交互逻辑
/// </summary>
public
partial
class
MenuProfile
:
UserControl
{
IUnityContainer
container
;
public
MenuProfile
()
{
InitializeComponent
();
}
[
InjectionMethod
]
public
void
Init
(
IUnityContainer
container
)
{
this
.
container
=
container
;
}
private
void
btnProfileClick
(
object
sender
,
RoutedEventArgs
e
)
{
//PgBatteryProfileMultiFix p = new PgBatteryProfileMultiFix();
//container.BuildUp(p);
//FlyLayoutManager.NavigationService.Navigate(p);
}
}
public
class
UiModule2_MenuProfile
:
IUiModule2
{
public
string
Title
=>
"电池产品"
;
public
ComponentType
Type
=>
ComponentType
.
Menu
;
public
bool
IsUnique
=>
true
;
public
FrameworkElement
GetComponent
(
int
id
,
IUnityContainer
container
)
{
MenuProfile
menu
=
new
MenuProfile
();
container
.
BuildUp
(
menu
);
return
menu
;
}
public
FrameworkElement
GetThumbnail
()
{
return
new
System
.
Windows
.
Controls
.
Grid
();
}
public
void
MatchParam
(
int
[]
IDs
)
{
}
}
}
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UiModule/MenuSetting.xaml
0 → 100644
View file @
4559d669
<UserControl x:Class="FLY.Thick.Base.UI.Client.UiModule.MenuSetting"
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.Normal.UI.Client.UiModule"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
mc:Ignorable="d" >
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Themes/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<StackPanel>
<Button Style="{StaticResource ButtonStyle_icon}" Foreground="White"
Click="btnProfileClick">
<StackPanel >
<iconPacks:PackIconMaterial Kind="Settings" />
<TextBlock Text="设置" Foreground="White"/>
</StackPanel>
</Button>
</StackPanel>
</UserControl>
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UiModule/MenuSetting.xaml.cs
0 → 100644
View file @
4559d669
using
FLY.Thick.Normal.IService
;
using
MultiLayout
;
using
MultiLayout.UiModule
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
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.Client.UiModule
{
/// <summary>
/// MenuProfile.xaml 的交互逻辑
/// </summary>
public
partial
class
MenuSetting
:
UserControl
{
IUnityContainer
container
;
public
MenuSetting
()
{
InitializeComponent
();
}
[
InjectionMethod
]
public
void
Init
(
IUnityContainer
container
)
{
this
.
container
=
container
;
}
private
void
btnProfileClick
(
object
sender
,
RoutedEventArgs
e
)
{
//PgMenu p = new PgMenu();
//container.BuildUp(p);
//FlyLayoutManager.NavigationService.Navigate(p);
}
}
public
class
UiModule2_MenuSetting
:
IUiModule2
{
public
string
Title
=>
"电池参数"
;
public
ComponentType
Type
=>
ComponentType
.
Menu
;
public
bool
IsUnique
=>
true
;
public
FrameworkElement
GetComponent
(
int
id
,
IUnityContainer
container
)
{
MenuSetting
menu
=
new
MenuSetting
();
container
.
BuildUp
(
menu
);
return
menu
;
}
public
FrameworkElement
GetThumbnail
()
{
return
new
System
.
Windows
.
Controls
.
Grid
();
}
public
void
MatchParam
(
int
[]
IDs
)
{
}
}
}
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