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
39a8c898
Commit
39a8c898
authored
Jun 16, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MultiLayout
1.修改 多页面布局 GageTag 位置靠左
parent
6a20c02e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
MainWindow.xaml
MultiLayout/MainWindow.xaml
+3
-2
MainWindow.xaml.cs
MultiLayout/MainWindow.xaml.cs
+17
-1
UcMultiGage.xaml
MultiLayout/UcMultiGage/UcMultiGage.xaml
+1
-1
No files found.
MultiLayout/MainWindow.xaml
View file @
39a8c898
...
...
@@ -17,8 +17,9 @@
</Window.Resources>
<Grid d:DataContext="{StaticResource viewModel}">
<Frame Name="frame" NavigationUIVisibility="Hidden"/>
<Button Style="{StaticResource Styles.Button.Empty}" Visibility="{Binding IsErrMsgVisable,Converter={StaticResource visbilityconv}}" Click="btnErrMsgClick">
<Border Background="Red" CornerRadius="0, 0 10 10" HorizontalAlignment="Center" VerticalAlignment="Top" >
<Button Style="{StaticResource Styles.Button.Empty}" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,50,0"
Visibility="{Binding IsErrMsgVisable,Converter={StaticResource visbilityconv}}" Click="btnErrMsgClick">
<Border Background="Red" CornerRadius="0, 0 10 10" Style="{StaticResource Styles.Shadow}">
<StackPanel Orientation="Horizontal">
<Grid Width="15"/>
<Path Margin="5" Fill="White" Stretch="Uniform" Width="20" Height="20" SnapsToDevicePixels="True" Data="{StaticResource Geometry_alert-circle-outline}" >
...
...
MultiLayout/MainWindow.xaml.cs
View file @
39a8c898
using
MultiLayout
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
...
...
@@ -28,11 +29,15 @@ namespace MultiLayout
IUnityContainer
container
;
LoadingProgress
lp
;
FlyLayoutManager
manager
;
WdMainVm
viewModel
;
NavigationService
NavigationService
=>
frame
.
NavigationService
;
public
MainWindow
()
{
InitializeComponent
();
viewModel
=
new
WdMainVm
();
this
.
DataContext
=
viewModel
;
//为了隐藏报警条
}
private
async
void
MainWindow_Loaded
(
object
sender
,
RoutedEventArgs
e
)
...
...
@@ -95,4 +100,15 @@ namespace MultiLayout
manager
.
ErrMsgClick
?.
Invoke
();
}
}
public
class
WdMainVm
:
INotifyPropertyChanged
{
public
event
PropertyChangedEventHandler
PropertyChanged
;
public
bool
IsErrMsgVisable
=>
!
string
.
IsNullOrEmpty
(
ErrMsg
);
/// <summary>
/// 错误信息
/// </summary>
public
string
ErrMsg
{
get
;
set
;
}
}
}
MultiLayout/UcMultiGage/UcMultiGage.xaml
View file @
39a8c898
...
...
@@ -17,7 +17,7 @@
</UserControl.Resources>
<Grid d:DataContext="{StaticResource viewModel}">
<Frame Name="frame" NavigationUIVisibility="Hidden"/>
<Border Background="#FF2C3C5A" CornerRadius="0 0 10 10" HorizontalAlignment="
Center" VerticalAlignment="Top"
<Border Background="#FF2C3C5A" CornerRadius="0 0 10 10" HorizontalAlignment="
Left" VerticalAlignment="Top" Margin="100,0,0,0"
Visibility="{Binding IsGageTagVisible,Converter={StaticResource visbilityconv}}">
<TextBlock Text="{Binding GageTag}" FontWeight="Bold" FontFamily="YouYuan" FontSize="25"
Padding="50,10"
...
...
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