private static void OnTextBrushPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText rtext = d as RaisedText;
            Brush      brush = e.NewValue as Brush;

            rtext.DisplayText.Foreground = brush;
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.MyMapView = ((Esri.ArcGISRuntime.Controls.MapView)(target));
                return;

            case 3:
                this.Map = ((Esri.ArcGISRuntime.Controls.Map)(target));
                return;

            case 4:
                this.ProjectGraphicsLayer = ((Esri.ArcGISRuntime.Layers.GraphicsLayer)(target));
                return;

            case 5:
                this.mapTip = ((System.Windows.Controls.Border)(target));
                return;

            case 6:
                this.Title = ((IS3.Desktop.UserControls.RaisedText)(target));
                return;

            case 7:
                this.ProjectTitle = ((IS3.Desktop.UserControls.RaisedText)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private static void OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText rtext = d as RaisedText;
            string     text  = (string)e.NewValue;

            rtext.DisplayText.Text     = text;
            rtext.DisplayTextBlur.Text = text;
        }
        private static void OnShadowOpacityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText       rtext   = d as RaisedText;
            double           opacity = (double)e.NewValue;
            DropShadowEffect effect  = rtext.DisplayText.Effect as DropShadowEffect;

            effect.Opacity = opacity;
        }
        private static void OnShadowDirectionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText       rtext     = d as RaisedText;
            double           direction = (double)e.NewValue;
            DropShadowEffect effect    = rtext.DisplayText.Effect as DropShadowEffect;

            effect.Direction = direction;
        }
        private static void OnShadowBlurRadiusPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText       rtext  = d as RaisedText;
            double           radius = (double)e.NewValue;
            DropShadowEffect effect = rtext.DisplayText.Effect as DropShadowEffect;

            effect.BlurRadius = radius;
        }
        private static void OnShadowColorPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText       rtext  = d as RaisedText;
            Color            color  = (Color)e.NewValue;
            DropShadowEffect effect = rtext.DisplayText.Effect as DropShadowEffect;

            effect.Color = color;
        }
        private static void OnTextWrappingPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText   rtext = d as RaisedText;
            TextWrapping wrap  = (TextWrapping)e.NewValue;

            rtext.DisplayText.TextWrapping     = wrap;
            rtext.DisplayTextBlur.TextWrapping = wrap;
        }
        private static void OnTextAlignmentPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText    rtext = d as RaisedText;
            TextAlignment align = (TextAlignment)e.NewValue;

            rtext.DisplayText.TextAlignment     = align;
            rtext.DisplayTextBlur.TextAlignment = align;
        }
        private static void OnTextWeightPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText rtext  = d as RaisedText;
            FontWeight weight = (FontWeight)e.NewValue;

            rtext.DisplayText.FontWeight     = weight;
            rtext.DisplayTextBlur.FontWeight = weight;
        }
        private static void OnTextStylePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText rtext = d as RaisedText;
            FontStyle  style = (FontStyle)e.NewValue;

            rtext.DisplayText.FontStyle     = style;
            rtext.DisplayTextBlur.FontStyle = style;
        }
        private static void OnTextFamilyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText rtext = d as RaisedText;
            FontFamily font  = (FontFamily)e.NewValue;

            rtext.DisplayText.FontFamily     = font;
            rtext.DisplayTextBlur.FontFamily = font;
        }
        private static void OnTextSizePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RaisedText rtext = d as RaisedText;

            if (!double.IsNaN((double)e.NewValue))
            {
                double size = (double)e.NewValue;
                rtext.DisplayText.FontSize     = size;
                rtext.DisplayTextBlur.FontSize = size;
            }
        }
Beispiel #14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ProjectTitle1 = ((IS3.Desktop.UserControls.RaisedText)(target));
                return;

            case 2:
                this.ProjectTitle = ((IS3.Desktop.UserControls.RaisedText)(target));
                return;

            case 3:
                this.LoginElement = ((System.Windows.Controls.Border)(target));
                return;

            case 4:
                this.LoginNameTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.LoginPasswordTB = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 6:
                this.LoginButton = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\UserLoginPage.xaml"
                this.LoginButton.Click += new System.Windows.RoutedEventHandler(this.LoginButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RootVisual = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.TopMenuGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ProjectTitle = ((IS3.Desktop.UserControls.RaisedText)(target));
                return;

            case 4:

            #line 79 "..\..\MainFrame.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Home_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 87 "..\..\MainFrame.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Python_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.DocMan = ((Xceed.Wpf.AvalonDock.DockingManager)(target));
                return;

            case 7:
                this._layoutRoot = ((Xceed.Wpf.AvalonDock.Layout.LayoutRoot)(target));
                return;

            case 8:
                this.ProjectPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
                return;

            case 9:
                this.ViewPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutDocumentPane)(target));
                return;

            case 10:
                this.DataPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutDocumentPane)(target));
                return;

            case 11:
                this.ipcHost = ((IS3.Python.IronPythonControl)(target));
                return;

            case 12:
                this.MyDataGrid = ((IS3.Desktop.IS3DataGrid)(target));
                return;

            case 13:
                this.DomainTreeHolder = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
                return;

            case 14:
                this.ToolsPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
                return;

            case 15:
                this.objViewHolder = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;

            case 16:
                this.objectView = ((IS3.Desktop.ObjectView)(target));
                return;

            case 17:
                this.Tools = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;

            case 18:
                this.ToolsPanel = ((IS3.Desktop.ToolsPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }