mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
26 lines
787 B
C#
26 lines
787 B
C#
using System.Windows.Controls;
|
|
|
|
using Bloxstrap.UI.ViewModels.Menu;
|
|
|
|
namespace Bloxstrap.UI.Elements.Menu.Pages
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for IntegrationsPage.xaml
|
|
/// </summary>
|
|
public partial class IntegrationsPage
|
|
{
|
|
public IntegrationsPage()
|
|
{
|
|
DataContext = new IntegrationsViewModel();
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void CustomIntegrationSelection(object sender, SelectionChangedEventArgs e)
|
|
{
|
|
IntegrationsViewModel viewModel = (IntegrationsViewModel)DataContext;
|
|
viewModel.SelectedCustomIntegration = (CustomIntegration)((ListBox)sender).SelectedItem;
|
|
viewModel.OnPropertyChanged(nameof(viewModel.SelectedCustomIntegration));
|
|
}
|
|
}
|
|
}
|