init
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<base:BaseView x:Class="DTS.Viewer.Graph.GraphView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
||||
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common"
|
||||
HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
|
||||
<base:BaseView.Resources>
|
||||
<ResourceDictionary >
|
||||
<converters:BooleanToOpacityConverter x:Key="BooleanToOpacityConverter" />
|
||||
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
|
||||
<converters:InverseBooleanToVisibilityConverter x:Key="InverseBooleanToVisibilityConverter"/>
|
||||
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="../Resources/CommonStyles.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</base:BaseView.Resources>
|
||||
<ContentControl x:Name="GraphRegion" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<ContentControl.Template>
|
||||
<ControlTemplate TargetType="ContentControl">
|
||||
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<ContentControl Content="{Binding DataSeriesView}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="{Binding Path=GraphVisibility, Converter={StaticResource BooleanToVisibilityConverter}}" Opacity="{Binding Path=ProgressVisibility, Converter={StaticResource BooleanToOpacityConverter}}" />
|
||||
<TextBlock Text="{Binding Path=MessageText, FallbackValue='This is a message', Mode=TwoWay}" FontWeight="Bold" FontSize="14" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||
Visibility="{Binding Path=MessageVisibility, Converter={StaticResource BooleanToVisibilityConverter}, Mode=TwoWay}" TextAlignment="Center" />
|
||||
<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="{Binding Path=ProgressVisibility, Converter={StaticResource BooleanToVisibilityConverter}, Mode=TwoWay}" >
|
||||
<TextBlock Text="{Binding Path=ProgressText, FallbackValue='This is a message', Mode=TwoWay}" FontWeight="Bold" FontSize="14" TextAlignment="Center" />
|
||||
<ProgressBar Value="{Binding Path=ProgressPercent, FallbackValue=0, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</ContentControl.Template>
|
||||
</ContentControl>
|
||||
</base:BaseView>
|
||||
Reference in New Issue
Block a user