Am basicallt trying to display the heartbeat of the system in the BarStaticItem.Glyph.
On load, my shell.xaml contains the following
<dxb:BarStaticItem Content="System Status" Name="StaticBar" Glyph="pack://application:,,,/Resources/Offline.png" ShowBorder="True" GlyphSize="Default" ContentAlignment="Right" GlyphAlignment="Right" AutoSizeMode="Fill">
When the system starts, it shows the correct image. However, when we get a heartbeat from the system, I change the Content to the name of the connected server and change the glyph to Online this way
StaticBar.Content = heartBeat.Source;
var image = new BitmapImage(new Uri("pack://application:,,,/Resources/Online.png"));
StaticBar.Glyph = image;
The content changes from System Status to the name of the heart source. However, the image doesnt change.
Am I missing something?
I have just used a timer to illustrate my problem. When the timer elapses, I want the status glyph and Content to change. The content changes perfectly well, however the glyph doesnt.
Please let me know what I am missing.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.