diff --git a/SampleApplications/Samples/Client/ClientPage.xaml b/SampleApplications/Samples/Client/ClientPage.xaml
index 968a82b114..0993567a60 100644
--- a/SampleApplications/Samples/Client/ClientPage.xaml
+++ b/SampleApplications/Samples/Client/ClientPage.xaml
@@ -27,12 +27,19 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
-
diff --git a/SampleApplications/Samples/ClientControls/Endpoints/DiscoveredServerListCtrl.xaml.cs b/SampleApplications/Samples/ClientControls/Endpoints/DiscoveredServerListCtrl.xaml.cs
index 2e31d9f93d..383c47c2bf 100644
--- a/SampleApplications/Samples/ClientControls/Endpoints/DiscoveredServerListCtrl.xaml.cs
+++ b/SampleApplications/Samples/ClientControls/Endpoints/DiscoveredServerListCtrl.xaml.cs
@@ -33,6 +33,7 @@ using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
+using Windows.UI.Core;
using Windows.UI.Xaml.Controls;
namespace Opc.Ua.Client.Controls
@@ -190,12 +191,23 @@ namespace Opc.Ua.Client.Controls
// return new item.
return listItem;
}
-
+
///
/// Updates the list of servers displayed in the control.
///
- private void OnUpdateServers(object state)
+ private async void OnUpdateServers(object state)
{
+ if (!Dispatcher.HasThreadAccess)
+ {
+ await Dispatcher.RunAsync(
+ CoreDispatcherPriority.Normal,
+ () =>
+ {
+ OnUpdateServers(state);
+ });
+ return;
+ }
+
ItemsLV.Items.Clear();
ApplicationDescriptionCollection servers = state as ApplicationDescriptionCollection;
diff --git a/SampleApplications/Samples/ClientControls/Endpoints/EndpointSelectorCtrl.xaml b/SampleApplications/Samples/ClientControls/Endpoints/EndpointSelectorCtrl.xaml
index ee686335a6..a59fe170f1 100644
--- a/SampleApplications/Samples/ClientControls/Endpoints/EndpointSelectorCtrl.xaml
+++ b/SampleApplications/Samples/ClientControls/Endpoints/EndpointSelectorCtrl.xaml
@@ -7,8 +7,8 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
-
+
-
+
diff --git a/SampleApplications/Samples/Publisher/ClientPage.xaml b/SampleApplications/Samples/Publisher/ClientPage.xaml
index a426865345..96f3367d7f 100644
--- a/SampleApplications/Samples/Publisher/ClientPage.xaml
+++ b/SampleApplications/Samples/Publisher/ClientPage.xaml
@@ -10,7 +10,6 @@
-
@@ -18,8 +17,8 @@
-
-
+
+
@@ -28,12 +27,19 @@
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/SampleApplications/Samples/Publisher/Opc.Ua.Publisher.Endpoints.xml b/SampleApplications/Samples/Publisher/Opc.Ua.Publisher.Endpoints.xml
index a828504cf2..d7b85ca188 100644
--- a/SampleApplications/Samples/Publisher/Opc.Ua.Publisher.Endpoints.xml
+++ b/SampleApplications/Samples/Publisher/Opc.Ua.Publisher.Endpoints.xml
@@ -21,21 +21,5 @@
true
0
-
-
- opc.tcp://192.168.2.101:51210/UA/SampleServer
- SignAndEncrypt_3
- http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15
-
-
- Anonymous_0
-
-
- http://opcfoundation.org/UA/profiles/transport/wsxmlorbinary
- 0
-
- true
- 0
-
\ No newline at end of file