inital
This commit is contained in:
303
FasdDesktopUi/Basics/UserControls/DataCanvas/DetailedChart.xaml
Normal file
303
FasdDesktopUi/Basics/UserControls/DataCanvas/DetailedChart.xaml
Normal file
@@ -0,0 +1,303 @@
|
||||
<UserControl x:Class="FasdDesktopUi.Basics.UserControls.DetailedChart"
|
||||
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:FasdDesktopUi.Basics.UserControls"
|
||||
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon"
|
||||
xmlns:vc="clr-namespace:FasdDesktopUi.Basics.Converter"
|
||||
Name="ChartUc"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800">
|
||||
|
||||
<UserControl.Resources>
|
||||
<BooleanToVisibilityConverter x:Key="BoolToVisibility" />
|
||||
<vc:NullValueToVisibilityConverter x:Key="NullToVisibility" />
|
||||
</UserControl.Resources>
|
||||
|
||||
<Border CornerRadius="10"
|
||||
Margin="0 0 0 10"
|
||||
Height="270"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||
Visibility="{Binding ElementName=ChartUc, Path=ChartData, Converter={StaticResource NullToVisibility}}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="42" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="10" />
|
||||
<ColumnDefinition Width="45" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.Column="0"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||
CornerRadius="10,0,0,0">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Grid.Row="0"
|
||||
x:Name="TitleBlock"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,5,-42,0"
|
||||
FontFamily="Calibri"
|
||||
FontSize="14"
|
||||
FontWeight="Bold"
|
||||
Foreground="{DynamicResource Color.Menu.Icon}">
|
||||
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Row="1"
|
||||
x:Name="DateBlock"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,-42,0"
|
||||
FontFamily="Calibri"
|
||||
FontSize="13"
|
||||
FontWeight="Regular"
|
||||
Foreground="{DynamicResource Color.Menu.Icon}">
|
||||
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<ico:AdaptableIcon x:Name="CloseButton"
|
||||
Grid.Column="2"
|
||||
SelectedInternIcon="window_close"
|
||||
MouseLeftButtonUp="CloseButton_MouseLeftButtonUp"
|
||||
TouchDown="CloseButton_TouchDown"
|
||||
Style="{DynamicResource SettingsPage.Close.Icon}"
|
||||
Visibility="{Binding ElementName=ChartUc, Path=IsCloseButtonVisible, Converter={StaticResource BoolToVisibility}}" />
|
||||
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="1"
|
||||
Margin="10,10,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="32" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="28" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Column="0"
|
||||
Grid.Row="0"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border Grid.RowSpan="5"
|
||||
x:Name="GraphicBorder"
|
||||
Panel.ZIndex="1">
|
||||
<Border x:Name="CanvasBorder">
|
||||
<Canvas x:Name="GraphicCanvas"
|
||||
Panel.ZIndex="1" />
|
||||
</Border>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="0"
|
||||
BorderThickness="1"
|
||||
Height="1"
|
||||
Margin="5,0,5,0">
|
||||
<Border.BorderBrush>
|
||||
<DrawingBrush Viewport="0,0,10,10"
|
||||
ViewportUnits="Absolute"
|
||||
TileMode="Tile">
|
||||
<DrawingBrush.Drawing>
|
||||
<DrawingGroup>
|
||||
<GeometryDrawing Brush="{DynamicResource HorizontalLineColor}">
|
||||
<GeometryDrawing.Geometry>
|
||||
<GeometryGroup>
|
||||
<RectangleGeometry Rect="0,0,50,50" />
|
||||
<RectangleGeometry Rect="50,50,50,0" />
|
||||
</GeometryGroup>
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup>
|
||||
</DrawingBrush.Drawing>
|
||||
</DrawingBrush>
|
||||
</Border.BorderBrush>
|
||||
|
||||
</Border>
|
||||
<Border Grid.Row="1"
|
||||
BorderThickness="1"
|
||||
Height="1"
|
||||
Margin="5,0,5,0">
|
||||
<Border.BorderBrush>
|
||||
<DrawingBrush Viewport="0,0,10,10"
|
||||
ViewportUnits="Absolute"
|
||||
TileMode="Tile">
|
||||
<DrawingBrush.Drawing>
|
||||
<DrawingGroup>
|
||||
<GeometryDrawing Brush="{DynamicResource HorizontalLineColor}">
|
||||
<GeometryDrawing.Geometry>
|
||||
<GeometryGroup>
|
||||
<RectangleGeometry Rect="0,0,50,50" />
|
||||
<RectangleGeometry Rect="50,50,50,0" />
|
||||
</GeometryGroup>
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup>
|
||||
</DrawingBrush.Drawing>
|
||||
</DrawingBrush>
|
||||
</Border.BorderBrush>
|
||||
|
||||
</Border>
|
||||
<Border Grid.Row="2"
|
||||
BorderThickness="1"
|
||||
Height="1"
|
||||
Margin="5,0,5,0">
|
||||
<Border.BorderBrush>
|
||||
<DrawingBrush Viewport="0,0,10,10"
|
||||
ViewportUnits="Absolute"
|
||||
TileMode="Tile">
|
||||
<DrawingBrush.Drawing>
|
||||
<DrawingGroup>
|
||||
<GeometryDrawing Brush="{DynamicResource HorizontalLineColor}">
|
||||
<GeometryDrawing.Geometry>
|
||||
<GeometryGroup>
|
||||
<RectangleGeometry Rect="0,0,50,50" />
|
||||
<RectangleGeometry Rect="50,50,50,0" />
|
||||
</GeometryGroup>
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup>
|
||||
</DrawingBrush.Drawing>
|
||||
</DrawingBrush>
|
||||
</Border.BorderBrush>
|
||||
|
||||
</Border>
|
||||
<Border Grid.Row="3"
|
||||
BorderThickness="1"
|
||||
Height="1"
|
||||
Margin="5,0,5,0">
|
||||
<Border.BorderBrush>
|
||||
<DrawingBrush Viewport="0,0,10,10"
|
||||
ViewportUnits="Absolute"
|
||||
TileMode="Tile">
|
||||
<DrawingBrush.Drawing>
|
||||
<DrawingGroup>
|
||||
<GeometryDrawing Brush="{DynamicResource HorizontalLineColor}">
|
||||
<GeometryDrawing.Geometry>
|
||||
<GeometryGroup>
|
||||
<RectangleGeometry Rect="0,0,50,50" />
|
||||
<RectangleGeometry Rect="50,50,50,0" />
|
||||
</GeometryGroup>
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup>
|
||||
</DrawingBrush.Drawing>
|
||||
</DrawingBrush>
|
||||
</Border.BorderBrush>
|
||||
|
||||
</Border>
|
||||
<Border Grid.Row="4"
|
||||
BorderThickness="1"
|
||||
Height="1"
|
||||
Margin="5,0,5,0">
|
||||
<Border.BorderBrush>
|
||||
<DrawingBrush Viewport="0,0,10,10"
|
||||
ViewportUnits="Absolute"
|
||||
TileMode="Tile">
|
||||
<DrawingBrush.Drawing>
|
||||
<DrawingGroup>
|
||||
<GeometryDrawing Brush="{DynamicResource HorizontalLineColor}">
|
||||
<GeometryDrawing.Geometry>
|
||||
<GeometryGroup>
|
||||
<RectangleGeometry Rect="0,0,50,50" />
|
||||
<RectangleGeometry Rect="50,50,50,0" />
|
||||
</GeometryGroup>
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup>
|
||||
</DrawingBrush.Drawing>
|
||||
</DrawingBrush>
|
||||
</Border.BorderBrush>
|
||||
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<Border Name="PercentBorder"
|
||||
Grid.Column="2"
|
||||
Grid.Row="0"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="100%"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Calibri"
|
||||
FontSize="11"
|
||||
Foreground="{DynamicResource Color.Menu.Icon}">
|
||||
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="75%"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Calibri"
|
||||
FontSize="11"
|
||||
Foreground="{DynamicResource Color.Menu.Icon}">
|
||||
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="50%"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Calibri"
|
||||
FontSize="11"
|
||||
Foreground="{DynamicResource Color.Menu.Icon}">
|
||||
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="3"
|
||||
Text="25%"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Calibri"
|
||||
FontSize="11"
|
||||
Foreground="{DynamicResource Color.Menu.Icon}">
|
||||
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="4"
|
||||
Text="0%"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Calibri"
|
||||
FontSize="11"
|
||||
Foreground="{DynamicResource Color.Menu.Icon}">
|
||||
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Grid x:Name="TimeStampGrid"
|
||||
Grid.Column="0"
|
||||
Grid.Row="1"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||
Margin="0,0,0,15">
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user