-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNodeTemplatesCommon.xaml
More file actions
21 lines (21 loc) · 1.17 KB
/
NodeTemplatesCommon.xaml
File metadata and controls
21 lines (21 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:c="clr-namespace:SuperSocket.ServerManager.Client.Controls"
xmlns:cv="clr-namespace:SuperSocket.ServerManager.Client.Converters">
<cv:IsNullConverter x:Key="IsNullConverter"></cv:IsNullConverter>
<DataTemplate x:Key="NodeTemplateState">
<c:CircleProgressBar Grid.Row="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Margin="10"
ProgressText="{Binding Path=State, StringFormat='\{0\}...'}">
</c:CircleProgressBar>
</DataTemplate>
<DataTemplate x:Key="NodeTemplateOffline">
<Grid HorizontalAlignment="Stretch" Height="100">
<TextBlock Text="{Binding ErrorMessage, Converter={StaticResource IsNullConverter}, ConverterParameter='Offline'}"
VerticalAlignment="Center" HorizontalAlignment="Center"
Style="{StaticResource NodeError}"></TextBlock>
</Grid>
</DataTemplate>
</ResourceDictionary>