• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# SizeChangedEventHandler类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: SetOnSizeChangedListener

        /// <summary>
        /// Sets and registers the event handler responsible for monitoring
        /// size change events.
        /// </summary>
        /// <param name="sizeChangedEventHandler">The event handler.</param>
        public void SetOnSizeChangedListener(SizeChangedEventHandler sizeChangedEventHandler)
        {
            var current = _sizeChangedEventHandler;
            if (current != null)
            {
                SizeChanged -= current;
            }

            if (sizeChangedEventHandler != null)
            {
                _sizeChangedEventHandler = sizeChangedEventHandler;
                SizeChanged += _sizeChangedEventHandler;
            }
        }
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:19,代码来源:SizeMonitoringCanvas.cs


示例17: GraphicsDeviceControl

        public GraphicsDeviceControl()
        {
            // We must be notified of the control finishing loading so we can get the GraphicsDeviceService
            Loaded += new System.Windows.RoutedEventHandler(XnaWindowHost_Loaded);

            // We must be notified of the control changing sizes so we can resize the GraphicsDeviceService
            SizeChanged += new SizeChangedEventHandler(XnaWindowHost_SizeChanged);

            // We must be notified of the application foreground status for our mouse input events
            Application.Current.Activated += new EventHandler(Current_Activated);
            Application.Current.Deactivated += new EventHandler(Current_Deactivated);

            // We use the CompositionTarget.Rendering event to trigger the control to draw itself
            CompositionTarget.Rendering += CompositionTarget_Rendering;
        }
开发者ID:reaperx420,项目名称:Terraria-Map-Editor,代码行数:15,代码来源:GraphicsDeviceControl.cs


示例18: SnapGrid

        public SnapGrid()
        {
            LayoutUpdated += new EventHandler(SnapGrid_LayoutUpdated);
            SizeChanged += new SizeChangedEventHandler(SnapGrid_SizeChanged);
            MouseLeftButtonDown += new MouseButtonEventHandler(SnapGrid_MouseLeftButtonDown);
            MouseLeftButtonUp += new MouseButtonEventHandler(SnapGrid_MouseLeftButtonUp);
            LostMouseCapture += new MouseEventHandler(SnapGrid_LostMouseCapture);
            MouseMove += new MouseEventHandler(SnapGrid_MouseMove);
            Loaded += new RoutedEventHandler(SnapGrid_Loaded);

            ColumnCount = 20;
            RowCount = 20;
            ShowGridLines = true;

            Init();
        }
开发者ID:valeriob,项目名称:Routing,代码行数:16,代码来源:SnapGrid.cs


示例19: ChapterViewModel

        public ChapterViewModel(Chapter chapter, FlipView flipView)
        {
            sizeChangedEventHandler = new SizeChangedEventHandler(textBlockResized);
            loadedEventHandler = new RoutedEventHandler(checkOverflow);
            this.flipView = flipView;
            this.chapter = chapter;
            this.Overflows = new List<RichTextBlockOverflow>();

            Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
            string currentChapter = (string)localSettings.Values["currentChapter"];
            if (currentChapter == null || currentChapter == "")
            {
                currentChapter = "jhn.1.esv";
            }
            ChangeChapter(currentChapter);
        }
开发者ID:nguyer,项目名称:OpenBible,代码行数:16,代码来源:ChapterViewModel.cs


示例20: FloatingWindow

 private FloatingWindow(DockPanel dockPanel)
 {
     Root = dockPanel;
     ShowInTaskbar = false;
     WindowStyle = WindowStyle.ToolWindow;
     WindowStartupLocation = WindowStartupLocation.Manual;
     m_dockOver = new List<IDockable>();
     Loaded += new RoutedEventHandler(FloatingWindow_Loaded);
     Closing += new System.ComponentModel.CancelEventHandler(FloatingWindow_Closing);
     MouseMove += new MouseEventHandler(FloatingWindow_MouseMove);
     MouseUp += new MouseButtonEventHandler(FloatingWindow_MouseUp);
     MouseLeave += new MouseEventHandler(FloatingWindow_MouseLeave);
     Activated += new EventHandler(FloatingWindow_Activated);
     LocationChanged += new EventHandler(FloatingWindow_LocationChanged);
     SizeChanged += new SizeChangedEventHandler(FloatingWindow_SizeChanged);
 }
开发者ID:Joxx0r,项目名称:ATF,代码行数:16,代码来源:FloatingWindow.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SizeExceededAction类代码示例发布时间:2022-05-24
下一篇:
C# Size2D类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap