/// <summary>
        /// Initializes a new instance of the <see cref="LogonInfo"/> class.
        /// </summary>
        public LogonInfo()
        {
            InitializeComponent();
            this.DataContext = Datacontext.GetInstance();
            var window = IsWindowOpen <Window>("SoftphoneBar");

            if (window != null)
            {
                _view = (SoftPhoneBar)window;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MyMessageSummary"/> class.
        /// </summary>
        /// <param name="owner">The owner.</param>
        public MyMessageSummary(Window owner)
        {
            EventManager.RegisterClassHandler(typeof(UIElement), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed));
            if (owner is SoftPhoneBar)
            {
                bottom = owner as SoftPhoneBar;
            }
            InitializeComponent();
            this.DataContext = Datacontext.GetInstance();

            ShadowEffect.ShadowDepth = 0;
            ShadowEffect.Opacity     = 0.5;
            ShadowEffect.Softness    = 0.5;
            ShadowEffect.Color       = (Color)ColorConverter.ConvertFromString("#003660");
        }