Skip to content

Instantly share code, notes, and snippets.

@mattleibow
Created May 1, 2015 14:48
Show Gist options
  • Save mattleibow/2fafa506fe634f8c19e9 to your computer and use it in GitHub Desktop.
Save mattleibow/2fafa506fe634f8c19e9 to your computer and use it in GitHub Desktop.
Portable Band Tile Page Syntax
new PageLayout {
Root = new ScrollFlowPanel {
Rectangle = new Rectangle(15, 0, 245, 105),
Orientation = Orientation.Vertical,
Elements = {
new FlowPanel {
Rectangle = new Rectangle(0, 0, 245, 70),
Orientation = Orientation.Horizontal,
Elements = {
new Image {
Rectangle = new Rectangle(0, 0, 60, 70),
Color = new BandColor(127, 127, 0),
ElementId = TilePages.ImagePage.ImageId1,
VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = HorizontalAlignment.Center
},
new WrappedTextBlock {
Rectangle = new Rectangle(0, 0, 120, 70),
TextColor = new BandColor(127, 127, 0),
ElementId = TilePages.ImagePage.TextBlockId1,
Font = WrappedTextBlockFont.Small,
Margins = new Margins(0, 10, 0, 10)
}
}
},
new FlowPanel {
Rectangle = new Rectangle(0, 0, 245, 70),
Orientation = Orientation.Horizontal,
Elements = {
new Image {
Rectangle = new Rectangle(0, 0, 60, 70),
Color = new BandColor(127, 0, 127),
ElementId = TilePages.ImagePage.ImageId2,
VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = HorizontalAlignment.Center
},
new WrappedTextBlock {
Rectangle = new Rectangle(0, 0, 120, 70),
TextColor = new BandColor(127, 0, 127),
ElementId = TilePages.ImagePage.TextBlockId2,
Font = WrappedTextBlockFont.Small,
Margins = new Margins(0, 10, 0, 10)
}
}
},
//new FlowPanel {
// Rectangle = new Rectangle(0, 0, 245, 70),
// Orientation = Orientation.Horizontal,
// Elements = {
// new Image {
// Rectangle = new Rectangle(0, 0, 60, 70),
// Color = new BandColor(0, 127, 127),
// ElementId = TilePages.ImagePage.ImageId3,
// },
// new WrappedTextBlock {
// Rectangle = new Rectangle(0, 0, 120, 70),
// TextColor = new BandColor(0, 127, 127),
// ElementId = TilePages.ImagePage.TextBlockId3,
// }
// }
//}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment