Commit 3d8e7538 authored by 潘栩锋's avatar 潘栩锋 🚴

修复 GraphRange Title 不会显示

parent ee2b44d5
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
<Rectangle Name="rectangle" Grid.ColumnSpan="2" Fill="#FF579aab"/> <Rectangle Name="rectangle" Grid.ColumnSpan="2" Fill="#FF579aab"/>
<TextBlock Grid.ColumnSpan="2" HorizontalAlignment="Center" FontSize="18" VerticalAlignment="Bottom" Grid.RowSpan="2"> <TextBlock Grid.ColumnSpan="2" HorizontalAlignment="Center" FontSize="18" VerticalAlignment="Bottom" Grid.RowSpan="2">
<TextBlock.Inlines> <TextBlock.Inlines>
<Run Name="run_title" Text="{Binding Title}" FontWeight="SemiBold" /> <Run Name="run_title" FontWeight="SemiBold" />
<Run Name="run_title2" Text="{Binding Title2}" Foreground="#FF585858" /> <Run Name="run_title2" Foreground="#FF585858" />
</TextBlock.Inlines> </TextBlock.Inlines>
</TextBlock> </TextBlock>
......
...@@ -515,26 +515,37 @@ namespace FLY.ControlLibrary ...@@ -515,26 +515,37 @@ namespace FLY.ControlLibrary
mRefresh.UpdateY = true; mRefresh.UpdateY = true;
CheckDataSourceEmpty(); CheckDataSourceEmpty();
run_title.Text = Title;
run_title2.Text = Title2;
} }
void GraphRange_PropertyChanged(object sender, PropertyChangedEventArgs e) void GraphRange_PropertyChanged(object sender, PropertyChangedEventArgs e)
{ {
if ((e.PropertyName == "Target") || if ((e.PropertyName == "Target") ||
(e.PropertyName == "Alarm") || (e.PropertyName == "Alarm") ||
(e.PropertyName == "YRangePercent") || (e.PropertyName == "YRangePercent") ||
(e.PropertyName == "AutoTarget") || (e.PropertyName == "AutoTarget") ||
(e.PropertyName == "IsAutoTarget") || (e.PropertyName == "IsAutoTarget") ||
(e.PropertyName == "IsPercent") || (e.PropertyName == "IsPercent") ||
(e.PropertyName == "Type")) (e.PropertyName == "Type"))
{ {
mRefresh.UpdateY = true; mRefresh.UpdateY = true;
mRefresh.UpdateData = true; mRefresh.UpdateData = true;
} }
else if ((e.PropertyName == "DataCnt")|| else if ((e.PropertyName == "DataCnt") ||
(e.PropertyName == "XAxisType")) (e.PropertyName == "XAxisType"))
{ {
mRefresh.UpdateX = true; mRefresh.UpdateX = true;
} }
else if (e.PropertyName == "Title") {
run_title.Text = Title;
}
else if (e.PropertyName == "Title2")
{
run_title2.Text = Title2;
}
} }
void InitializeComponent2() void InitializeComponent2()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment