|
64 | 64 | </Grid> |
65 | 65 | </Grid> |
66 | 66 |
|
67 | | - <Grid Grid.Column="1"> |
68 | | - <Grid Name="LoadingContent" Visibility="Collapsed"></Grid> |
| 67 | + <Grid Grid.Column="1" Name="LoadingContent" Visibility="Collapsed"></Grid> |
69 | 68 |
|
70 | | - <Grid Name="SignedInContent" Visibility="Collapsed"> |
71 | | - <controls:SwitchPresenter |
72 | | - Value="{Binding PersonViewType, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource ObjectToStringConverter}}" |
73 | | - VerticalAlignment="Center"> |
74 | | - <!-- Avatar --> |
75 | | - <controls:Case Value="Avatar" IsDefault="True" /> |
| 69 | + <Grid Grid.Column="1" Name="SignedInContent" Visibility="Collapsed"> |
| 70 | + <controls:SwitchPresenter |
| 71 | + Value="{Binding PersonViewType, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource ObjectToStringConverter}}" |
| 72 | + VerticalAlignment="Center"> |
| 73 | + <!-- Avatar --> |
| 74 | + <controls:Case Value="Avatar" IsDefault="True" /> |
76 | 75 |
|
77 | | - <!-- One line --> |
78 | | - <controls:Case Value="OneLine"> |
79 | | - <TextBlock Margin="6,-2,2,0" |
80 | | - FontWeight="SemiBold" |
81 | | - Text="{Binding PersonDetails.DisplayName, RelativeSource={RelativeSource TemplatedParent}}" /> |
82 | | - </controls:Case> |
83 | | - |
84 | | - <!-- Two lines --> |
85 | | - <controls:Case Value="TwoLines"> |
86 | | - <StackPanel Margin="6,-2,2,0" Spacing="2"> |
87 | | - <TextBlock |
88 | | - FontWeight="SemiBold" |
89 | | - Text="{Binding PersonDetails.DisplayName, RelativeSource={RelativeSource TemplatedParent}}"/> |
90 | | - <TextBlock |
91 | | - FontSize="12" |
92 | | - Text="{Binding PersonDetails.ScoredEmailAddresses[0].Address, RelativeSource={RelativeSource TemplatedParent}}" /> |
93 | | - </StackPanel> |
94 | | - </controls:Case> |
| 76 | + <!-- One line --> |
| 77 | + <controls:Case Value="OneLine"> |
| 78 | + <TextBlock Margin="6,-2,2,0" |
| 79 | + FontWeight="SemiBold" |
| 80 | + Text="{Binding PersonDetails.DisplayName, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 81 | + </controls:Case> |
95 | 82 |
|
96 | | - <!-- Three lines--> |
97 | | - <controls:Case Value="ThreeLines"> |
98 | | - <StackPanel Margin="6,-2,2,0" Spacing="2" VerticalAlignment="Center"> |
99 | | - <TextBlock |
100 | | - FontWeight="SemiBold" |
101 | | - Text="{Binding PersonDetails.DisplayName, RelativeSource={RelativeSource TemplatedParent}}"/> |
102 | | - <TextBlock |
103 | | - FontSize="12" |
104 | | - Text="{Binding PersonDetails.ScoredEmailAddresses[0].Address, RelativeSource={RelativeSource TemplatedParent}}" /> |
105 | | - <TextBlock |
106 | | - FontSize="12" |
107 | | - Text="{Binding PersonDetails.JobTitle, RelativeSource={RelativeSource TemplatedParent}}" /> |
108 | | - </StackPanel> |
109 | | - </controls:Case> |
110 | | - </controls:SwitchPresenter> |
111 | | - </Grid> |
| 83 | + <!-- Two lines --> |
| 84 | + <controls:Case Value="TwoLines"> |
| 85 | + <StackPanel Margin="6,-2,2,0" Spacing="2"> |
| 86 | + <TextBlock |
| 87 | + FontWeight="SemiBold" |
| 88 | + Text="{Binding PersonDetails.DisplayName, RelativeSource={RelativeSource TemplatedParent}}"/> |
| 89 | + <TextBlock |
| 90 | + FontSize="12" |
| 91 | + Text="{Binding PersonDetails.ScoredEmailAddresses[0].Address, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 92 | + </StackPanel> |
| 93 | + </controls:Case> |
112 | 94 |
|
113 | | - <Grid Name="SignedOutContent" Visibility="Collapsed"> |
114 | | - <TextBlock>foobar</TextBlock> |
115 | | - </Grid> |
| 95 | + <!-- Three lines--> |
| 96 | + <controls:Case Value="ThreeLines"> |
| 97 | + <StackPanel Margin="6,-2,2,0" Spacing="2" VerticalAlignment="Center"> |
| 98 | + <TextBlock |
| 99 | + FontWeight="SemiBold" |
| 100 | + Text="{Binding PersonDetails.DisplayName, RelativeSource={RelativeSource TemplatedParent}}"/> |
| 101 | + <TextBlock |
| 102 | + FontSize="12" |
| 103 | + Text="{Binding PersonDetails.ScoredEmailAddresses[0].Address, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 104 | + <TextBlock |
| 105 | + FontSize="12" |
| 106 | + Text="{Binding PersonDetails.JobTitle, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 107 | + </StackPanel> |
| 108 | + </controls:Case> |
| 109 | + </controls:SwitchPresenter> |
116 | 110 | </Grid> |
117 | 111 |
|
| 112 | + <Grid Grid.Column="1" Name="SignedOutContent" Visibility="Collapsed"></Grid> |
| 113 | + |
118 | 114 | <VisualStateManager.VisualStateGroups> |
119 | 115 | <VisualStateGroup x:Name="ProviderStates"> |
120 | 116 | <VisualState x:Name="Loading"> |
|
0 commit comments