WPF

Tuesday, March 8, 2011

Don't Set the size on control explicitly


The less explicitly you set the sizes of controls, the happier you'll be. Remember that WPF will try to size the content to fit the individual user's screen resolution. Setting sizes of controls to specific values countermands this.
Posted by Rekha Kumari at 7:20 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: convention, size

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2011 (35)
    • ▼  March (35)
      • Canvas
      • DockPanel (Code)
      • WrapPanel (CODE)
      • GroupBox
      • Putting multiple elements into buttons
      • Viewbox
      • ScrollViewer
      • StackPanel (Code)
      • Layout (Code)
      • File Open and File Save dialog boxes
      • RichTextBox
      • TextBox and RichTextBox (Code)
      • Label (Code)
      • ToolTip property
      • Toggle Buttons
      • Command Property
      • Resources in wpf
      • Don't Set the size on control explicitly
      • FrameworkElement vs. FrameworkContentElement
      • SizeToContent Property (Window)
      • Fonts in wpf
      • Shapes in WPF (code)
      • Controls in WPF (Code)
      • TextBlock
      • Create Image from URI
      • The concept of Content
      • Visual Brush in WPF (XAML)
      • Brushes in WPF (XAML)
      • Freezable objects (.net)
      • Timers in wpf
      • Base classes: Freezable and Animatable
      • Colors and Brushes in wpf
      • Predefined Brushes Are Already Frozen
      • How To define a Dependency Property
      • Properties in WPF

About Me

Rekha Kumari
View my complete profile
Simple theme. Powered by Blogger.