// Copyright (C) Microsoft Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
using System;
using System.Collections.Generic;
using System.Windows;
using Microsoft.Web.WebView2.Core;
namespace WebView2WpfBrowser {
///
/// Interaction logic for SetPermissionDialog.xaml
///
public partial class SetPermissionDialog : Window {
public SetPermissionDialog(List permissionKinds = null,
List permissionStates = null) {
InitializeComponent();
PermissionKind.ItemsSource = permissionKinds;
PermissionState.ItemsSource = permissionStates;
}
void OK_Clicked(object sender, RoutedEventArgs args) { this.DialogResult = true; }
}
}