Ejemplo n.º 1
0
        private void SetDesignerXaml(string xaml = null)
        {
            if (xaml == null)
            {
                xaml = _lastXaml;
            }

            //we don't need preview in source only view
            if (!IsDesignerVisible())
            {
                _designer.Xaml       = "";
                _designer.Visibility = Visibility.Collapsed;
                _designer?.KillProcess();
            }
            else
            {
                _designer.Visibility = Visibility.Visible;
                _designer.Xaml       = xaml;
                if (!_lastIsDesignerVisible)
                {
                    Restart();
                }
            }
            _lastIsDesignerVisible = IsDesignerVisible();
            _lastXaml = xaml;
        }
Ejemplo n.º 2
0
 private void EventsOnBuildBegin()
 {
     _designer?.KillProcess();
 }