Name="hs" Margin="2" Spacing="0" Height="Fit">
<GraphicObject Width="5"/>
<Image Margin="1" Width="12" Height="12" Path="{./Icon}"/>
- <Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Center" Text="{./Title}" />
+ <Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Center" Text="{./Caption}" />
<Border CornerRadius="6" BorderWidth="1" Foreground="Transparent" Height="12" Width="12"
MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
<Image Focusable="true" Name="Image" Margin="0" Width="Stretched" Height="Stretched" Path="#Crow.Images.Icons.exit2.svg"
<HorizontalStack Name="hs" Margin="2" Spacing="1" Height="Fit" >
<GraphicObject Width="5" Height="5"/>
<Image Margin="1" Width="12" Height="12" Path="{./Icon}"/>
- <Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Center" Text="{./Title}" />
+ <Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Center" Text="{./Caption}" />
<Border CornerRadius="6" BorderWidth="1" Foreground="Transparent" Height="12" Width="12"
MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
<Image Focusable="true" Name="Image" Path="#Crow.Images.Icons.exit2.svg"
Name="hs" Margin="2" Spacing="0" Height="Fit">
<GraphicObject Width="5"/>
<Image Margin="1" Width="12" Height="12" Path="{./Icon}"/>
- <Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Center" Text="{./Title}" />
+ <Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Center" Text="{./Caption}" />
<Border CornerRadius="6" BorderWidth="1" Foreground="Transparent" Height="12" Width="12"
MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
<Image Focusable="true" Name="Image" Margin="0" Width="Stretched" Height="Stretched" Path="#Crow.Images.Icons.exit2.svg"
Name="hs" Margin="2" Spacing="0" Height="Fit">
<GraphicObject Width="5"/>
<Image Margin="1" Width="12" Height="12" Path="{./Icon}"/>
- <Label Width="Stretched" Foreground="White" Margin="2" TextAlignment="Center" Text="{./Title}" />
+ <Label Width="Stretched" Foreground="White" Margin="2" TextAlignment="Center" Text="{./Caption}" />
<Border Visible="{./ShowMinimize}" BorderWidth="1" Foreground="Transparent" Height="12" Width="12"
MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
<Image Focusable="true" Path="#Crow.Images.Icons.minimize.svg"
AddWidget(
new Window ()
{
- Title = "Hello World"
+ Caption = "Hello World"
}
);
initGL ();
<?xml version="1.0"?>
-<Window Title="Showcase" Height="90%" Width="90%">
+<Window Caption="Showcase" Height="90%" Width="90%">
<HorizontalStack >
<VerticalStack Width="30%" Margin="5">
<GroupBox Caption="Performance" Height="Fit">
</TabView>-->
<MessageBox Movable="false"/>
<ColorPicker SelectedColor="{²../go.Background}" Name="colorPicker" Background="Onyx" Margin="5" Fit="True" />
- <GraphicObject Name="go" Width="100" Height="60" Background="DarkBlue"/>
+ <GraphicObject Name="go" Width="100" Height="60" Background="{../../colorList.SelectedItem}"/>
+ <Label Text="{../../colorPicker.SelectedRawColor}"/>
</VerticalStack>
<Splitter/>
<VerticalStack Width="30%" Margin="5">
<DirectoryView Name="dv" CurrentDirectory="/" Margin="1"/>
</Border>
<Splitter/>
- <ListBox Data="{TestList}" Margin="5"
+ <ListBox Name="colorList" Data="{TestList}" Margin="5"
ItemTemplate="#Tests.Interfaces.colorItem.crow"
Template="#Crow.Templates.ScrollingListBox.goml"
/>
<?xml version="1.0"?>
-<Window Focusable="true" Title="Measures" Width="30%" Height="Fit" MinimumSize="100,100">
+<Window Focusable="true" Caption="Measures" Width="30%" Height="Fit" MinimumSize="100,100">
<ListBox Data="{PerfMeasures}"
ItemTemplate="#Tests.Interfaces.perfMsr.crow"/>
</Window>
<?xml version="1.0"?>
-<MessageBox Title="message" Message="this is a message box"/>
+<MessageBox Caption="message" Message="this is a message box"/>
<!-- Ok="onMsgBoxOk"
Cancel="onMsgBoxCancel"/>-->
\ No newline at end of file
<?xml version="1.0"?>
<Menu>
- <MenuItem Caption="File">
- <MenuItem Caption="New" Execute="onNew"/>
+ <MenuItem Caption="File" Width="Fit">
+ <MenuItem Caption="New" />
<MenuItem Caption="Open"/>
<MenuItem Caption="Save"/>
<MenuItem Caption="Quit"/>
</MenuItem>
- <MenuItem Caption="Edit" Name="edit">
+ <MenuItem Caption="Edit" Name="edit" Width="Fit">
<MenuItem Caption="Cut"/>
<MenuItem Caption="Copy"/>
<MenuItem Caption="Paste"/>
- <MenuItem Caption="Special" Name="special">
+ <MenuItem Caption="Special" Name="special" Width="Fit">
<MenuItem Caption="Cut"/>
<MenuItem Caption="Copy"/>
<MenuItem Caption="Paste"/>
</MenuItem>
- <MenuItem Caption="Special2" Name="special">
+ <MenuItem Caption="Special2" Name="special" Width="Fit">
<MenuItem Caption="Cut"/>
<MenuItem Caption="Copy"/>
<MenuItem Caption="Paste"/>
</MenuItem>
</MenuItem>
- <MenuItem Caption="Help">
+ <MenuItem Caption="Help" Width="Fit">
<MenuItem Caption="About"/>
<MenuItem Caption="Help"/>
</MenuItem>
<?xml version="1.0"?>
-<FileDialog Title="Open File" CurrentDirectory="/"/>
+<FileDialog Caption="Open File" CurrentDirectory="/"/>
<?xml version="1.0"?>
-<Window Width="50%" Height="50%">
+<Window Caption="Vertical Wrapper" Width="50%" Height="50%">
<Wrapper Orientation="Vertical" Height="Fit" Width="Fit" Margin="5" Background="Teal" Spacing="1" >
<GraphicObject Width="50" Height="50" Background="Mantis"/>
<GraphicObject Width="50" Height="50" Background="Mantis"/>
<?xml version="1.0"?>
-<Window Width="50%" Height="50%">
+<Window Caption="Horizontal Wrapper" Width="50%" Height="50%">
<Wrapper Orientation="Horizontal" Height="Fit" Width="Fit" Margin="5" Background="Teal" Spacing="1" >
<GraphicObject Width="50" Height="50" Background="Mantis"/>
<GraphicObject Width="50" Height="50" Background="Mantis"/>
AddWidget(
new Window ()
{
- Title = "Hello World"
+ Caption = "Hello World"
}
);
}
<?xml version="1.0"?>
-<Window Font="droid bold, 10" Title="Open GL" HorizontalAlignment="Left" Width="30%" Height="90%">
+<Window Font="droid bold, 10" Caption="Open GL" HorizontalAlignment="Left" Width="30%" Height="90%">
<VerticalStack>
<HorizontalStack Background="Jet" Height="Fit" Width="Stretched" Margin="2">
<Popper Caption="File" Template="#Tests.ui.Popper.template" Width="Fit">
Background="vgradient|0:0.6,0.6,0.6,0.9|1:0.4,0.4,0.4,0.6">
<VerticalStack>
<HorizontalStack Height="Fit">
- <Label Margin="2" Font="{../../../../Font}" Text="{../../../../Title}" Width="Stretched"/>
+ <Label Margin="2" Font="{../../../../Font}" Text="{../../../../Caption}" Width="Stretched"/>
<Border HorizontalAlignment="Right" Margin="0" VerticalAlignment="Top"
CornerRadius="6" BorderWidth="1" Foreground="Transparent"
Height="12" Width="12"
SE,
}
- string _title;
string _icon;
bool _resizable;
bool _movable;
#endregion
#region public properties
- [XmlAttributeAttribute][DefaultValue("Window")]
- public string Title {
- get { return _title; }
- set {
- if (_title == value)
- return;
- _title = value;
- NotifyValueChanged ("Title", _title);
- }
- }
[XmlAttributeAttribute][DefaultValue("#Crow.Images.Icons.crow.png")]
public string Icon {
get { return _icon; }