当前位置: 首页>>代码示例>>C#>>正文


C# SizeChangedEventHandler类代码示例

本文整理汇总了C#中SizeChangedEventHandler的典型用法代码示例。如果您正苦于以下问题:C# SizeChangedEventHandler类的具体用法?C# SizeChangedEventHandler怎么用?C# SizeChangedEventHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SizeChangedEventHandler类属于命名空间,在下文中一共展示了SizeChangedEventHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ImageSequence

 public ImageSequence()
 {
     DefaultStyleKey = typeof(ImageSequence);
     imageHeight = 1600;
     Loaded += new System.Windows.RoutedEventHandler(ImageSequence_Loaded);
     SizeChanged += new SizeChangedEventHandler(ImageSequence_SizeChanged);
 }
开发者ID:JKarathiya,项目名称:SilverlightSite,代码行数:7,代码来源:ImageSequence.cs

示例2: CircleVisual

        public CircleVisual(GMapMarker m, Brush background)
        {
            Marker = m;
             Marker.ZIndex = 100;

             Popup.AllowsTransparency = true;
             Popup.PlacementTarget = this;
             Popup.Placement = PlacementMode.Mouse;
             Popup.Child.Opacity = 0.777;

             SizeChanged += new SizeChangedEventHandler(CircleVisual_SizeChanged);
             MouseEnter += new System.Windows.Input.MouseEventHandler(CircleVisual_MouseEnter);
             MouseLeave += new System.Windows.Input.MouseEventHandler(CircleVisual_MouseLeave);
             Loaded += new RoutedEventHandler(OnLoaded);

             Text = "?";

             StrokeArrow.EndLineCap = PenLineCap.Triangle;
             StrokeArrow.LineJoin = PenLineJoin.Round;

             RenderTransform = scale;

             Width = Height = 22;
             FontSize = (Width/1.55);

             Background = background;
             Angle = null;
        }
开发者ID:Gevil,项目名称:Projects,代码行数:28,代码来源:CircleVisual.cs

示例3: SceneView

        /// <summary>
        /// Initializes a new instance of the <see cref="SceneView"/> class.
        /// </summary>
        public SceneView()
        {
            InitializeComponent();

            //  Handle the size changed event.
            SizeChanged += new SizeChangedEventHandler(SceneView_SizeChanged);
        }
开发者ID:cvanherk,项目名称:3d-engine,代码行数:10,代码来源:SceneView.xaml.cs

示例4: ColorButton

 public ColorButton()
 {
     this.DefaultStyleKey = typeof(ColorButton);
     //if (System.ComponentModel.DesignerProperties.IsInDesignTool)
      //   return;
     SizeChanged += new SizeChangedEventHandler(ColorButton_SizeChanged);
 }
开发者ID:gaeeyo,项目名称:Unene,代码行数:7,代码来源:ColorButton.cs

示例5: TPill

 public TPill()
 {
     InitializeComponent();
     tb.DataContext = this;
     foreColor = Colors.White;
     SizeChanged += new SizeChangedEventHandler(TPill_SizeChanged);
 }
开发者ID:prog76,项目名称:Pacman,代码行数:7,代码来源:TPill.xaml.cs

示例6: GlassWindow_Loaded

        private void GlassWindow_Loaded( object sender, RoutedEventArgs e )
        {
            // update GlassRegion on window size change
            SizeChanged += new SizeChangedEventHandler( Window1_SizeChanged );

            // update background color on change of desktop composition mode
            AeroGlassCompositionChanged += new AeroGlassCompositionChangedEvent( Window1_AeroGlassCompositionChanged );

            // Set the window background color
            if( AeroGlassCompositionEnabled )
            {
                // exclude the GDI rendered controls from the initial GlassRegion
                ExcludeElementFromAeroGlass( eb1 );
                SetAeroGlassTransparency( );
            }
            else
            {
                this.Background = System.Windows.Media.Brushes.Teal;
            }

            // initialize the explorer browser control
            eb1.NavigationTarget = (ShellObject)KnownFolders.Computer;

            // set the state of the Desktop Composition check box.
            EnableCompositionCheck.IsChecked = AeroGlassCompositionEnabled;
        }
开发者ID:Prashant-Jonny,项目名称:phever,代码行数:26,代码来源:Window1.xaml.cs

示例7: MainWindow

		public MainWindow() {
			InitializeComponent();

            devlistCaption.CreateBinding(TextBlock.TextProperty, LocalTitles.instance, s => s.devicesList);

			this.CommandBindings.Add(
				new CommandBinding(
					DeviceListView.HideCommand,
					(s, a) => {
						devlist.Visibility = Visibility.Collapsed;
						deviceListButton.Visibility = Visibility.Visible;
					}
				)
			);
			deviceListButton.Command = new DelegateCommand(
				() => {
					devlist.Visibility = Visibility.Visible;
					deviceListButton.Visibility = Visibility.Collapsed;
				}
			);


			//AppDefaults.InitConfigs();

			InitPosition();

			SizeChanged += new SizeChangedEventHandler((obj, evargs) => {
				var mvs = AppDefaults.visualSettings;
				mvs.WndState = this.WindowState;

				if (this.WindowState == System.Windows.WindowState.Maximized) {
					AppDefaults.UpdateVisualSettings(mvs);
					return;
				}

				if (this.WindowState == System.Windows.WindowState.Minimized) {
					AppDefaults.UpdateVisualSettings(mvs);
					return;
				}

				mvs.WndSize = new Rect(mvs.WndSize.X, mvs.WndSize.Y, evargs.NewSize.Width, evargs.NewSize.Height);
				AppDefaults.UpdateVisualSettings(mvs);
			});
			LocationChanged += new EventHandler((obj, evargs) => {
				var vs = AppDefaults.visualSettings;
				vs.WndState = this.WindowState;
				if (this.WindowState == System.Windows.WindowState.Maximized) {
					AppDefaults.UpdateVisualSettings(vs);
					return;
				}
				if (this.WindowState == System.Windows.WindowState.Minimized) {
					AppDefaults.UpdateVisualSettings(vs);
					return;
				}

				vs.WndSize = new Rect(this.Left, this.Top, vs.WndSize.Width, vs.WndSize.Height);
				AppDefaults.UpdateVisualSettings(vs);
			});
		}
开发者ID:zzilla,项目名称:ONVIF-Device-Manager,代码行数:59,代码来源:MainWindow.xaml.cs

示例8: RibbonWindow

 public RibbonWindow()
     : base()
 {
     SizeChanged += new SizeChangedEventHandler(OnSizeChanged);
     HookWndProc();
     RegisterCommands();
     SkinManager.SkinChanged += new EventHandler(OnSkinChanged);
 }
开发者ID:Kayomani,项目名称:FAP,代码行数:8,代码来源:RibbonWindow.cs

示例9: MainPage

        public MainPage()
        {
            InitializeComponent();

            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;
            SizeChanged += new SizeChangedEventHandler(BinaryClock_SizeChanged);
            Loaded += new RoutedEventHandler(BinaryClock_Loaded);
        }
开发者ID:g0scin,项目名称:BinaryClock-WMP7,代码行数:8,代码来源:MainPage.xaml.cs

示例10: TiledBackground

        public TiledBackground()
        {
            // create an image as the content of the control
            tiledImage.Stretch = Stretch.None;
            Content = tiledImage;

            // no sizechanged to override
            SizeChanged += new SizeChangedEventHandler(TiledBackground_SizeChanged);
        }
开发者ID:onetug,项目名称:CodeCamp2011,代码行数:9,代码来源:TiledBackground.cs

示例11: GraphicsControlBase

        public GraphicsControlBase()
        {
            Loaded += new RoutedEventHandler(XnaWindowHost_Loaded);

            SizeChanged += new SizeChangedEventHandler(XnaWindowHost_SizeChanged);
            Application.Current.Activated += new EventHandler(Current_Activated);
            Application.Current.Deactivated += new EventHandler(Current_Deactivated);
            CompositionTarget.Rendering += CompositionTarget_Rendering;
        }
开发者ID:rickbatka,项目名称:co-op-engine,代码行数:9,代码来源:GraphicsControlBase.cs

示例12: Viewport2D

        public Viewport2D()
        {
         //   ClipToBounds = true;

            Grid.SetColumn(this, 1);
            Grid.SetRow(this, 1);
            visible = new Rect(new Point(0, 0), new Point(1, 1));
            SizeChanged += new SizeChangedEventHandler(Viewport2D_SizeChanged);
            UpdateTransform();
        }
开发者ID:XiBeichuan,项目名称:hydronumerics,代码行数:10,代码来源:Viewport2D.cs

示例13: Outline

 public Outline()
 {
     moves = new ObservableCollection<TXY>(outLineMoves);
     DataContext = this;
     fOutLineSize = 0.05;
     InitializeComponent();
     SizeChanged += new SizeChangedEventHandler(TPill_SizeChanged);
     text = "0";
     fKW = 1;
     fKH = 1;
 }
开发者ID:prog76,项目名称:Pacman,代码行数:11,代码来源:outline.xaml.cs

示例14: LayoutDocumentPaneControl

        internal LayoutDocumentPaneControl(LayoutDocumentPane model)
        {
            if (model == null)
                throw new ArgumentNullException("model");

            _model = model;
            SetBinding(ItemsSourceProperty, new Binding("Model.Children") { Source = this });
            SetBinding(FlowDirectionProperty, new Binding("Model.Root.Manager.FlowDirection") { Source = this });

            this.LayoutUpdated += new EventHandler(OnLayoutUpdated);
			SizeChanged += new SizeChangedEventHandler(LayoutDocumentPaneControl_SizeChanged);
        }
开发者ID:xbadcode,项目名称:Rubezh,代码行数:12,代码来源:LayoutDocumentPaneControl.cs

示例15: UIContainer

        public UIContainer()
        {
            m_elements = new VisualCollection(this);
            CreateElements();

            SnapsToDevicePixels = true;
            RenderOptions.SetEdgeMode(this, EdgeMode.Aliased);

            SizeChanged += new SizeChangedEventHandler((sender, e) => {
                VisualClip = new RectangleGeometry(new Rect(0, 0, ActualWidth, ActualHeight));
            });
        }
开发者ID:sohong,项目名称:greenfleet-viewer,代码行数:12,代码来源:UIContainer.cs


注:本文中的SizeChangedEventHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。