-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christoph Hofmann <[email protected]>
- Loading branch information
Showing
119 changed files
with
3,086 additions
and
1,121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
<local:WidgetBase x:Class="OpenHAB.Windows.Controls.ChartWidget" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="using:OpenHAB.Windows.Controls" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="using:OpenHAB.Windows.Controls" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Visibility="{x:Bind Widget.Visibility, Converter={StaticResource BooleanToVisibilityConverter}}"> | ||
|
||
<Grid Style="{StaticResource Widget}" | ||
Tapped="ImageWidget_OnTapped"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<local:ImageLabel Grid.Column="0" | ||
IconPath="{x:Bind Widget, Mode=OneWay, Converter={StaticResource IconToPathConverter}}" | ||
LabelText="{x:Bind Widget.Label, Mode=OneWay}" /> | ||
<Grid Style="{StaticResource Widget}" | ||
Tapped="ImageWidget_OnTapped"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<local:ImageLabel Grid.Column="0" | ||
IconPath="{x:Bind Widget, Mode=OneWay, Converter={StaticResource IconToPathConverter}}" | ||
LabelText="{x:Bind Widget.Label, Mode=OneWay}" | ||
LabelForeground="{x:Bind Widget.LabelColor,Converter={StaticResource StringToColorConverter}, Mode=OneWay}"/> | ||
|
||
<ContentDialog x:Name="PopupDialog" | ||
Title="{x:Bind Widget.Label}" | ||
Grid.Column="0" | ||
Grid.ColumnSpan="2" | ||
Background="{StaticResource OpenHABLightColor}" | ||
IsPrimaryButtonEnabled="True" | ||
PrimaryButtonText="Close"> | ||
<Image x:Name="FullImage" | ||
HorizontalAlignment="Right" | ||
Source="http://demo.openhab.org:8080/chart?groups=Weather_Chart&period=w" | ||
Stretch="Uniform" /> | ||
</ContentDialog> | ||
<ContentDialog x:Name="PopupDialog" | ||
Title="{x:Bind Widget.Label}" | ||
Grid.Column="0" | ||
Grid.ColumnSpan="2" | ||
Background="{StaticResource OpenHABLightColor}" | ||
IsPrimaryButtonEnabled="True" | ||
PrimaryButtonText="Close"> | ||
<Image x:Name="FullImage" | ||
HorizontalAlignment="Right" | ||
Source="http://demo.openhab.org:8080/chart?groups=Weather_Chart&period=w" | ||
Stretch="Uniform" /> | ||
</ContentDialog> | ||
|
||
<Image x:Name="ThumbImage" | ||
Grid.Column="1" | ||
Margin="8" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Stretch="UniformToFill" /> | ||
</Grid> | ||
<Image x:Name="ThumbImage" | ||
Grid.Column="1" | ||
Margin="8" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Stretch="UniformToFill" /> | ||
</Grid> | ||
</local:WidgetBase> |
Oops, something went wrong.