65 lines
1.9 KiB
C#
65 lines
1.9 KiB
C#
using SWS.CAD.Services;
|
|
using SWS.CAD.ViewModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using Unity;
|
|
|
|
namespace SWS.CAD.Views
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for UserControl1.xaml
|
|
/// </summary>
|
|
public partial class RightPanel : UserControl
|
|
{
|
|
public RightPanel(RightPanelViewModel rightPanelViewModel)
|
|
{
|
|
InitializeComponent() ;
|
|
DataContext = rightPanelViewModel;
|
|
//GlobalObject.TransparentComboBoxStyle =(Style)FindResource("TransparentComboBoxStyle");
|
|
GlobalObject.TransparentComboBoxStyle = (Style)FindResource("ComboBoxStyle");
|
|
GlobalObject.WhiteStyle = (Style)FindResource("WhiteStyle");
|
|
}
|
|
|
|
private void txtBasic_MouseDown(object sender, MouseButtonEventArgs e)
|
|
{
|
|
//if (txtBasic.Text == "+")
|
|
//{
|
|
// txtBasic.Text = "-";
|
|
// gridBasic.Visibility = Visibility.Visible;
|
|
//}
|
|
//else
|
|
//{
|
|
// txtBasic.Text = "+";
|
|
// gridBasic.Visibility = Visibility.Collapsed;
|
|
//}
|
|
}
|
|
|
|
private void txtNotBasic_MouseDown(object sender, MouseButtonEventArgs e)
|
|
{
|
|
//if (txtNotBasic.Text == "+")
|
|
//{
|
|
// txtNotBasic.Text = "-";
|
|
// gridNotBasic.Visibility = Visibility.Visible;
|
|
//}
|
|
//else
|
|
//{
|
|
// txtNotBasic.Text = "+";
|
|
// gridNotBasic.Visibility = Visibility.Collapsed;
|
|
//}
|
|
}
|
|
|
|
}
|
|
}
|