Skip to content

Commit

Permalink
Fixed issue if Breadcrumb when switching sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffe86 committed Mar 26, 2024
1 parent 0abe72f commit 6ec136e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
41 changes: 20 additions & 21 deletions src/openHAB.Windows/Controls/ImageLabel.xaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<UserControl x:Class="openHAB.Windows.Controls.ImageLabel"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="300"
d:DesignWidth="400"
mc:Ignorable="d">

<StackPanel HorizontalAlignment="Stretch">
<Image x:Name="Icon"
Width="60"
Height="60"
Margin="12,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top" />
<TextBlock x:Name="Label"
Margin="8"
Foreground="{x:Bind LabelForeground, Mode=OneWay}"
Text="{x:Bind LabelText, Mode=OneWay}"
TextTrimming="WordEllipsis"/>
</StackPanel>
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="300"
d:DesignWidth="400"
mc:Ignorable="d">
<StackPanel HorizontalAlignment="Stretch">
<Image x:Name="Icon"
Height="60"
Margin="15,5,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Stretch="Uniform" />
<TextBlock x:Name="Label"
Margin="8"
Foreground="{x:Bind LabelForeground, Mode=OneWay}"
Text="{x:Bind LabelText, Mode=OneWay}"
TextTrimming="WordEllipsis" />
</StackPanel>
</UserControl>
1 change: 1 addition & 0 deletions src/openHAB.Windows/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public Sitemap SelectedSitemap
=> WidgetNavigatedEvent());
}

BreadcrumbItems.Clear();
SelectedMenuItem = value;
}
}
Expand Down

0 comments on commit 6ec136e

Please sign in to comment.