Browse by Tags

layout
  • What Happened to SimpleText?

    Amit Bahree asks : I was curious as to what happeend to the class SimpleText in the WinHEC build? If I have any code that ran on the earlier build - now does now and I get an exception on SimpleText. We removed SimpleText from the builds a short while after the PDC. You should use the Text element instead...
    PostTypeIcon
  • Hooray for WinHEC bits!

    Now that the SDK has been updated I can finally start posting on some of the really cool features that I have been playing with for the last couple of months. I've got an article in the works that is an updated version of my GelButton that I posted earlier. Its not finished yet, but if you want to get...
    PostTypeIcon
  • DockPanel.Dock

    Karsten's Avalon Gotcha Quiz (and answer ) points to a common source of confusion for DockPanel users: When Avalon encounters the "Fill" command, it does just that -- filling the entirety of the given element no matter what follows that element. So though I logically expected the placement...
    PostTypeIcon
  • Text, TextPanel, and ContentElements

    In response to a Performance Tip by Markus , Iain asks : Is a Bold object little more than a Text object with an inherent formatting clue? Quoting myself from a previous post : Classes such as Image and DockPanel are responsible for their layout and rendering. This works fine for a simple class such...
    PostTypeIcon
  • Breaking Across Pages

    This is an old post from my previous blog; unfortunately, the content was never ported to this blog. I'm re-posting it here so I can reference it in the next post. James Clark asks a couple of questions about pagination in my comments: Obviously a single paragraph has to be able to broken across multiple...
    PostTypeIcon
  • Creating resizable panels with splitter bars

    Jonathan Russ, a developer on the Avalon Demo team, mentioned that somebody was asking how to do resizable frames on the newsgroups. This is really easy to do with DockPanel.Dock=“Fill“ so we put together a sample that allows you to do this. I've posted an article for it at http://www.longhornblogs...
    PostTypeIcon
  • GelButton Article and using DockPanel with Margin

    I am more or less done with the article on creating a gel button using styling. The article is posted here http://www.longhornblogs.com/ndunlap/articles/2203.aspx While I was writing the article I realized that I frivolously use DockPanels wrapped around my shape elements and other layout elements that...
    PostTypeIcon
  • Reusing Vectors with Styles and def:Includes

    In my last post I mentioned that drawing brush is good when you don't want your vectors to intelligently resize and layout. So what do I do when I want to reuse vectors that I do want to dynamically resize? Well the obvious solution is to build my vector elements directly inline. The only problem is...
    PostTypeIcon
  • Custom Layouts in Avalon

    RichB asks : What sort of layout does Avalon limit me to? Can I add my own layout engines instead of the standard flow layout? Avalon doesn’t place any limits on layout, developers are free to write the layout algorithm of their choosing. How would you implement a custom layout? Well, first you’ll...
    PostTypeIcon
Page 1 of 1 (9 items)