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

修复 GraphRange Title 不会显示

parent ee2b44d5
......@@ -37,8 +37,8 @@
<Rectangle Name="rectangle" Grid.ColumnSpan="2" Fill="#FF579aab"/>
<TextBlock Grid.ColumnSpan="2" HorizontalAlignment="Center" FontSize="18" VerticalAlignment="Bottom" Grid.RowSpan="2">
<TextBlock.Inlines>
<Run Name="run_title" Text="{Binding Title}" FontWeight="SemiBold" />
<Run Name="run_title2" Text="{Binding Title2}" Foreground="#FF585858" />
<Run Name="run_title" FontWeight="SemiBold" />
<Run Name="run_title2" Foreground="#FF585858" />
</TextBlock.Inlines>
</TextBlock>
......
......@@ -515,6 +515,10 @@ namespace FLY.ControlLibrary
mRefresh.UpdateY = true;
CheckDataSourceEmpty();
run_title.Text = Title;
run_title2.Text = Title2;
}
void GraphRange_PropertyChanged(object sender, PropertyChangedEventArgs e)
......@@ -530,11 +534,18 @@ namespace FLY.ControlLibrary
mRefresh.UpdateY = true;
mRefresh.UpdateData = true;
}
else if ((e.PropertyName == "DataCnt")||
else if ((e.PropertyName == "DataCnt") ||
(e.PropertyName == "XAxisType"))
{
mRefresh.UpdateX = true;
}
else if (e.PropertyName == "Title") {
run_title.Text = Title;
}
else if (e.PropertyName == "Title2")
{
run_title2.Text = Title2;
}
}
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