Skip to content

Commit b309035

Browse files
committed
Use concrete views instead of content presenters.
1 parent bcf2923 commit b309035

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

Source/Pages/Connection/ConnectionOptionsView.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@
215215

216216
<Expander Header="User Properties"
217217
Margin="0,10,0,0">
218-
<ContentPresenter Margin="-6"
219-
Content="{Binding SessionOptions.UserProperties}" />
218+
<controls:UserPropertiesView Margin="-6"
219+
DataContext="{Binding SessionOptions.UserProperties}" />
220220
</Expander>
221221
</StackPanel>
222222
</ScrollViewer>

Source/Pages/Publish/PublishItemView.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@
107107
Grid.Column="0"
108108
Grid.Row="0"
109109
Content="Quality of service (QoS) level" />
110-
<ContentPresenter Grid.Column="1"
110+
<controls:QualityOfServiceLevelSelectorView Grid.Column="1"
111111
Grid.Row="0"
112-
Content="{Binding QualityOfServiceLevel}" />
112+
DataContext="{Binding QualityOfServiceLevel}" />
113113
<!-- Retain -->
114114
<Label Classes="caption"
115115
Grid.Column="0"

Source/Pages/Publish/PublishPageView.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
Width="1" />
6565

6666
<!-- The selected item. -->
67-
<ContentPresenter Margin="10"
67+
<publish:PublishItemView Margin="10"
6868
Grid.Column="2"
69-
Content="{Binding ElementName=PART_Items, Path=SelectedItem}" />
69+
DataContext="{Binding ElementName=PART_Items, Path=SelectedItem}" />
7070
</Grid>
7171

7272
</controls:Overlay>

Source/Pages/Subscriptions/SubscriptionItemView.axaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
Grid.Column="0"
6868
Grid.Row="0"
6969
Content="Quality of Service level (QoS)" />
70-
<ContentPresenter Content="{Binding QualityOfServiceLevel}"
70+
<controls:QualityOfServiceLevelSelectorView DataContext="{Binding QualityOfServiceLevel}"
7171
Grid.Column="1"
7272
Grid.Row="0" />
7373

@@ -91,18 +91,18 @@
9191
<Label Grid.Row="3"
9292
Grid.Column="0"
9393
Classes="caption">Retain handling</Label>
94-
<ContentPresenter Grid.Row="3"
94+
<controls:RetainHandlingSelectorView Grid.Row="3"
9595
Grid.Column="1"
96-
Content="{Binding RetainHandling}" />
96+
DataContext="{Binding RetainHandling}" />
9797

9898
<!-- User properties -->
9999
<Label Grid.Row="4"
100100
Grid.Column="0"
101101
Classes="caption">User Properties</Label>
102-
<ContentPresenter Grid.Row="5"
102+
<controls:UserPropertiesView Grid.Row="5"
103103
Grid.Column="0"
104104
Grid.ColumnSpan="2"
105-
Content="{Binding UserProperties}" />
105+
DataContext="{Binding UserProperties}" />
106106
</Grid>
107107
</Grid>
108108

@@ -146,7 +146,7 @@
146146
</TabItem>
147147
<!-- The user properties -->
148148
<TabItem Header="User properties">
149-
<ContentPresenter Content="{Binding Response.UserProperties}" />
149+
<controls:UserPropertiesView DataContext="{Binding Response.UserProperties}" />
150150
</TabItem>
151151
</TabControl>
152152
</controls:GroupBox>

Source/Pages/Subscriptions/SubscriptionsPageView.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
Width="1" />
5959

6060
<!-- The selected item. -->
61-
<ContentPresenter Margin="10"
61+
<subscriptions:SubscriptionItemView Margin="10"
6262
Grid.Column="2"
63-
Content="{Binding ElementName=PART_Items, Path=SelectedItem}" />
63+
DataContext="{Binding ElementName=PART_Items, Path=SelectedItem}" />
6464
</Grid>
6565

6666
</UserControl>

0 commit comments

Comments
 (0)