Height=Fit;
Title=MessageBox;
Focusable=true;
-MinimumSize=150;80;
+MinimumSize=150,80;
Focusable=true;
-MinimumSize=50;50;
+MinimumSize=50,50;
Fit=true;
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border Name="Content"
- Background="vgradient|0:White|0,1:LightGray|0,9:LightGray|1:Black" Foreground="DarkGray"
+ Background="vgradient|0:White|0.1:LightGray|0.9:LightGray|1:Black" Foreground="DarkGray"
Height="{../HeightPolicy}" Width="{../WidthPolicy}"
MouseEnter="{Foreground=White}"
MouseLeave="{Foreground=DarkGray}"
- MouseDown="{Background=vgradient|0:Black|0,1:LightGray|0,9:LightGray|1:White}"
- MouseUp="{Background=vgradient|0:White|0,1:LightGray|0,9:LightGray|1:Black}"
+ MouseDown="{Background=vgradient|0:Black|0.1:LightGray|0.9:LightGray|1:White}"
+ MouseUp="{Background=vgradient|0:White|0.1:LightGray|0.9:LightGray|1:Black}"
>
</Border>
\ No newline at end of file
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border Background="{../Background}" MinimumSize="50;20" Height="{../HeightPolicy}" Width="{../WidthPolicy}"
Foreground="Transparent" CornerRadius="{../CornerRadius}" BorderWidth="1"
- MouseEnter="{Foreground=vgradient|0:White|0,2:Gray|0,9:Gray|1:Black;caption.Foreground=White}"
+ MouseEnter="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black;caption.Foreground=White}"
MouseLeave="{Foreground=Transparent;caption.Foreground=LightGray}"
- MouseDown="{Foreground=vgradient|0:Black|0,05:Gray|0,85:Gray|1:White}"
- MouseUp="{Foreground=vgradient|0:White|0,2:Gray|0,9:Gray|1:Black}"
+ MouseDown="{Foreground=vgradient|0:Black|0.05:Gray|0.85:Gray|1:White}"
+ MouseUp="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black}"
>
<!-- <Image Height="0" Width="0" Margin="0" Path="{../../Image}" SvgSub="{../../SvgSub}"/>-->
<Label Font="{../../Font}" Name="caption" Margin="5" Foreground="LightGray" Text="{../../Caption}"/>
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Window Caption="OpenFile" Height="300" Width="500">
<VerticalStack Margin="5">
<TextBox Margin="1" Width="0" Height="-1" Text="{CurrentPath}"/>
<HorizontalStack >
<ListBox Data="{Directories}" Width="-1" Height="0"
- Background="0,5;0,5;0,5;0,5"
+ Background="0.5,0.5,0.5,0.5"
SelectedItemChanged="OnSelectedItemChanged"
Template="#Crow.Templates.ScrollingListBox.goml"
ItemTemplate="#Crow.Templates.tmpDirItem.goml" >
</ListBox>
<ListBox Data="{Files}" Width="0" Height="0"
- Background="0,5;0,5;0,5;0,5"
+ Background="0.5,0.5,0.5,0.5"
SelectedItemChanged="onFileListItemChanged"
Template="#Crow.Templates.ScrollingListBox.goml"
ItemTemplate="#Crow.Templates.imgItemTemplate.goml">
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border Height="{../HeightPolicy}" Width="{../WidthPolicy}" BorderWidth="1" Foreground="White" CornerRadius="10" >
- <VerticalStack Height="{../../HeightPolicy}" Width="{../../WidthPolicy}" Background="0,4;0,4;0,4;0,4">
+ <VerticalStack Height="{../../HeightPolicy}" Width="{../../WidthPolicy}" Background="0.4,0.4,0.4,0.4">
<Border BorderWidth="1" Foreground="White" Width="{../../../WidthPolicy}" Height="-1"
- Background="0,1;0,5;1,0;0,5">
+ Background="0.1,0.5;1,0,0.5">
<HorizontalStack Name="hs" Margin="1" Spacing="1" Width="{../../../../WidthPolicy}" Height="-1" >
<GraphicObject Width="5" Height="5"/>
<Image Margin="1" Width="12" Height="12" Path="{../../../../../Icon}"/>
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="LightGray" Width="{../WidthPolicy}" Height="{../HeightPolicy}">
<GenericStack Orientation="{../../Orientation}" Spacing="0"
Width="{../../WidthPolicy}" Height="{../../HeightPolicy}">
Maximum="{../../../Maximum}"
LargeIncrement="{../../../LargeIncrement}"
SmallIncrement="{../../../SmallIncrement}"
- Background="hgradient|0:DimGray|0,1:Gray|0,95:Gray|1:White"
+ Background="hgradient|0:DimGray|0.1:Gray|0.95:Gray|1:White"
Width="{../../../WidthPolicy}" Height="{../../../HeightPolicy}"
ValueChanged="../../../onSliderValueChange"/>
<Button MouseRepeat="true" Width="12" Height="12" MouseClick="../../../onScrollForth"
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="White" CornerRadius="20" Height="{../HeightPolicy}" Width="{../WidthPolicy}"
MouseEnter="../onBorderMouseEnter"
MouseLeave="../onBorderMouseLeave">
<VerticalStack Height="{../../HeightPolicy}" Width="{../../WidthPolicy}">
<Border Name="TitleBar" BorderWidth="1" Foreground="White" Width="{../../../WidthPolicy}" Height="Fit"
- Background="vgradient|0:0,4;0,6;0,0;0,5|1:0,0;0,8;0,8;0,9">
+ Background="vgradient|0:0.4,0.6,0.0,0.5|1:0.0,0.8,0.8,0.9">
<HorizontalStack Name="hs" Margin="1" Spacing="1" Width="{../../../../WidthPolicy}" Height="Fit"
>
<GraphicObject Width="5"/>
<GraphicObject Width="5"/>
</HorizontalStack>
</Border>
- <Container Name="Content" MinimumSize="50;50" Height="{../../../HeightPolicy}" Width="{../../../WidthPolicy}" Background="0,5;0,5;0,5;0,5"/>
+ <Container Name="Content" MinimumSize="50;50" Height="{../../../HeightPolicy}" Width="{../../../WidthPolicy}" Background="0.5,0.5,0.5,0.5"/>
</VerticalStack>
</Border>
\ No newline at end of file
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<VerticalStack Width="0" Height="-1" Focusable="true"
MouseEnter="{Background=BlueCrayola}"
MouseLeave="{Background=Transparent}">
<Image Width="-1" Height="-1" Path="{FullName}" MaximumSize="80;80"/>
- <Label Text="{Name}" Width="-1" Height="-1" Margin="0" MaximumSize="100;0"/>
+ <Label Text="{Name}" Width="-1" Height="-1" Margin="0" MaximumSize="100,0"/>
</VerticalStack>
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border Fit="true" CornerRadius="5" BorderWidth="1">
- <Container Name="MainGrp" Background="0,5;0,5;0,5;0,4" Width="120" Fit="true"
+ <Container Name="MainGrp" Background="0.5,0.5,0.5,0.4" Width="120" Fit="true"
Margin="10" Focusable="True" >
<VerticalStack Fit="true" Name="vsFps" Spacing="10" >
<HorizontalStack Fit="true">
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border BorderWidth="2" Width="200" Height="200" CornerRadius="2" Margin="0"
- Background="vgradient|0,65:Mantis|1:Transparent">
+ Background="vgradient|0.65:Mantis|1:Transparent">
<GraphicObject CornerRadius="20" Background="#Tests.image.crow0.svg" Margin="0" Height="100" Width="120" />
</Border>
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Grid RowCount="2" ColumnCount="2">
- <GraphicObject Background="0,0;0,0;0,0;1,0"/>
- <GraphicObject Background="0,0;0,0;0,5;1,0"/>
- <GraphicObject Background="0,0;0,5;0,0;1,0"/>
- <GraphicObject Background="0,5;0,0;0,0;1,0"/>
+ <GraphicObject Background="0.0,0.0,0.0;1,0"/>
+ <GraphicObject Background="0.0,0.0,0.5;1,0"/>
+ <GraphicObject Background="0.0,0.5,0.0;1,0"/>
+ <GraphicObject Background="0.5,0.0,0.0;1,0"/>
</Grid>
\ No newline at end of file
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Window Left="10" Top="10" Title="Test window"
Width="250" Height="550" >
- <VerticalStack Name="contentVSStack" Margin="10" Spacing="10" Background="0,4;0,4;0,4;0,4">
+ <VerticalStack Name="contentVSStack" Margin="10" Spacing="10" Background="0.4,0.4,0.4,0.4">
<Slider Name="slider" Height="12" Width="Stretched" CornerRadius="3"/>
<GroupBox Caption="test" Height="Fit" Width="Stretched" Margin="5">
<VerticalStack Height="Fit" Width="Stretched" >
<RadioButton Width="80" Height="Fit" Caption="Radio 3" />
</HorizontalStack>
<HorizontalStack Width="Stretched" Height="Stretched" MinimumSize="10;10" Margin="10" CornerRadius="5"
- Background="vgradient|0:White|0,1:SteelBlue|0,9:SteelBlue|1:Transparent">
+ Background="vgradient|0:White|0.1:SteelBlue|0.9:SteelBlue|1:Transparent">
<CheckBox Height="Fit" Width="80"/>
<GraphicObject Width="Stretched"/>
<CheckBox Height="Fit" Width="80" IsChecked="true"/>
</HorizontalStack>
<Border Fit="true" CornerRadius="5" BorderWidth="1" >
- <Container Name="MainGrp" Background="0,5;0,5;0,5;0,4" Width="120" Fit="true"
+ <Container Name="MainGrp" Background="0.5,0.5,0.5,0.4" Width="120" Fit="true"
Margin="10" Focusable="True" >
<VerticalStack Fit="true" Name="vsFps" Spacing="10" >
<HorizontalStack Fit="true">
-<?xml version="1.0"?>
-<Window Name="window1" Left="10" Top="10" Title="Test window" Width="200" Height="200" Background="0,5;0,5;0,5;0,8"
+<?xml version="1.0"?>
+<Window Name="window1" Left="10" Top="10" Title="Test window" Width="200" Height="200" Background="0.5,0.5,0.5,0.8"
Focusable="True" CornerRadius="20" MinimumSize="100;100" MaximumSize="500;500">
<Template>
<Border BorderWidth="1" Foreground="White" CornerRadius="20" Height="{../HeightPolicy}" Width="{../WidthPolicy}">
<VerticalStack Height="{../../HeightPolicy}" Width="{../../WidthPolicy}">
<Border BorderWidth="1" Foreground="White" Width="{../../../WidthPolicy}" Height="Fit"
- Background="0,1;0,5;1,0;0,5">
+ Background="0.1,0.5;1,0,0.5">
<HorizontalStack Name="hs" Margin="1" Spacing="1" Width="{../../../../WidthPolicy}" Height="Fit" >
<GraphicObject Width="5"/>
<Image Margin="1" Width="12" Height="12" Path="{../../../../../Icon}"/>
<GraphicObject Width="5"/>
</HorizontalStack>
</Border>
- <Container Name="Content" Height="{../../../../HeightPolicy}" Width="{../../../../WidthPolicy}" Background="0,5;0,5;0,5;0,5"/>
+ <Container Name="Content" Height="{../../../../HeightPolicy}" Width="{../../../../WidthPolicy}" Background="0.5,0.5,0.5,0.5"/>
</VerticalStack>
</Border>
</Template>
-<?xml version="1.0"?>
-<Window Left="10" Top="10" Title="Test window" Width="200" Height="200" Background="0,5;0,5;0,5;0,8"
+<?xml version="1.0"?>
+<Window Left="10" Top="10" Title="Test window" Width="200" Height="200" Background="0.5,0.5,0.5,0.8"
Focusable="True" CornerRadius="20" MinimumSize="100;100" MaximumSize="500;500">
<Template>
- <Container Margin="20" Name="Content" Height="{../HeightPolicy}" Width="{../WidthPolicy}" Background="0,5;0,5;0,5;0,5"/>
+ <Container Margin="20" Name="Content" Height="{../HeightPolicy}" Width="{../WidthPolicy}" Background="0.5,0.5,0.5,0.5"/>
</Template>
<!-- <Group Background="Green">-->
<GraphicObject Height="50" Width="50" Background="Red" Margin="5"/>
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<!--<ListBox Data="{TestList}" Focusable="true"/>-->
<Border Margin="50">
<VerticalStack >
<Label Text="{../ColorList.SelectedItem}" Background="DarkGreen"/>
<Label Text="{Hover}" Background="DarkGreen"/>
<Button Caption="Clear" Width="Stretched" MouseClick="OnClear"/>
- <ListBox Name="ColorList" Data="{TestList}" Background="0,5;0,5;0,5;0,5"
+ <ListBox Name="ColorList" Data="{TestList}" Background="0.5,0.5,0.5,0.5"
HorizontalAlignment="Center" Width="Fit" Height="200" Margin="0"
ItemTemplate="#Tests.Interfaces.colorItem.crow"
Template="#Crow.Templates.ScrollingListBox.goml">
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Group Name="MainGrp"
Width="800" Height="500"
- Background="0,5;0,5;0,5;0,5" Foreground="White"
+ Background="0.5,0.5,0.5,0.5" Foreground="White"
Margin="10" >
<Border
BorderWidth="2" Foreground="Transparent"
<HorizontalStack Name="hs0" Fit="true"
WidgetSpacing="10"
VerticalAlignment="Center"
- Background="0,5;0,5;0,5;0,5">
+ Background="0.5,0.5,0.5,0.5">
<VerticalStack Name="vs1"
Margin="20" Width="400" Height="Fit">
<Label Name="labMouse" Text="MousePos"/>
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Group Name="MainGrp"
Width="800" Height="500"
- Background="0,5;0,5;0,5;0,5" Foreground="White"
+ Background="0.5,0.5,0.5,0.5" Foreground="White"
Margin="10" >
<Border Margin="10" CornerRadius="10"
Name="mainBorder"
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="White" CornerRadius="10" Width="500" Height="300">
- <VerticalStack Height="Stretched" Background="0,4;0,4;0,4;0,4">
- <Border BorderWidth="1" Foreground="White" Height="20" Background="0,1;0,5;1,0;0,5">
+ <VerticalStack Height="Stretched" Background="0.4,0.4,0.4,0.4">
+ <Border BorderWidth="1" Foreground="White" Height="20" Background="0.1,0.5;1,0,0.5">
<HorizontalStack Name="hs" Margin="1" Spacing="1" Height="Fit" >
<GraphicObject Width="5"/>
<Image Name="Image" Margin="1" Width="12" Height="12" Path="#go.Images.Icons.tetra.png"/>
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border BorderWidth="2" Fit="true">
<VerticalStack Fit="true" Margin="5">
- <ListBox Data="{TestList}" Background="0,5;0,5;0,5;0,7"
+ <ListBox Data="{TestList}" Background="0.5,0.5,0.5,0.7"
HorizontalAlignment="Center" Width="200" Height="200" Margin="5"
ItemTemplate="#Tests.Interfaces.colorItem.crow">
<Template>
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<VerticalStack Height="Fit" Width="Fit" Name="hstack" Margin="0" Spacing="Stretched">
<Border Height="Fit" Width="200" BorderWidth="2" CornerRadius="10">
<Label Name="labName" Text="{Name}" Width="Stretched" Height="Fit"/>
</Border>
<ListBox Data="{GetFileSystemInfos}" Width="Fit" Height="400"
- Background="0,5;0,5;0,5;0,5"
+ Background="0.5,0.5,0.5,0.5"
SelectedItemChanged="OnSelectedItemChanged"
ItemTemplate="Interfaces/tmpDirItem.goml" >
<Template>
void interfaceThread()
{
+ Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
+
CrowInterface.Quit += Quit;
CrowInterface.MouseCursorChanged += CrowInterface_MouseCursorChanged;
while (CrowInterface.ClientRectangle.Size.Width == 0)
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Window Font="droid bold, 10" Title="Open GL" HorizontalAlignment="Left" Width="30%" Height="90%">
<VerticalStack>
<HorizontalStack Background="Jet" Height="Fit" Width="Stretched" Margin="2">
</HorizontalStack>
<GroupBox Caption="Object Rotation" Margin="10" Width="70%" Height="Fit" >
<VerticalStack Spacing="10">
- <Spinner Width="50%" Maximum="1,0" SmallIncrement="0,01" Value="{²RotationSpeed}"/>
- <Slider Height="10" Width="50%" Maximum="1,0" SmallIncrement="0,01" Value="{²RotationSpeed}"/>
+ <Spinner Width="50%" Maximum="1,0" SmallIncrement="0.01" Value="{²RotationSpeed}"/>
+ <Slider Height="10" Width="50%" Maximum="1,0" SmallIncrement="0.01" Value="{²RotationSpeed}"/>
<CheckBox IsChecked="{²ClockWiseRotation}" Caption="Clockwise Rotation"/>
<GroupBox Caption="Rotation Axis" Height="Fit" >
<VerticalStack>
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="White" CornerRadius="15"
Height="{../HeightPolicy}" Width="{../WidthPolicy}"
MouseEnter="../onBorderMouseEnter"
MouseLeave="../onBorderMouseLeave"
- Background="vgradient|0:0,6;0,6;0,6;0,9|1:0,4;0,4;0,4;0,6">
+ Background="vgradient|0:0.6,0.6,0.6,0.9|1:0.4,0.4,0.4,0.6">
<VerticalStack Height="{../../HeightPolicy}" Width="{../../WidthPolicy}">
<HorizontalStack Height="Fit" Width="{../../../WidthPolicy}">
<Label Margin="2" Font="{../../../../Font}" Text="{../../../../Title}" Width="Stretched"/>
#region IXmlSerializable
public void ReadXml(System.Xml.XmlReader reader)
{
- string[] c = reader["Color"].Split(new char[] { ';' });
+ string[] c = reader["Color"].Split(new char[] { ',' });
R = double.Parse(c[0]);
G = double.Parse(c[1]);
B = double.Parse(c[2]);
}
}
- return string.Format("{0};{1};{2};{3}", R, G, B, A);
+ return string.Format("{0},{1},{2},{3}", R, G, B, A);
}
public static object Parse(string s)
protected bool _isVisible = true;
VerticalAlignment _verticalAlignment = VerticalAlignment.Center;
HorizontalAlignment _horizontalAlignment = HorizontalAlignment.Center;
- Size _maximumSize = "0;0";
- Size _minimumSize = "0;0";
+ Size _maximumSize = "0,0";
+ Size _minimumSize = "0,0";
bool cacheEnabled = false;
object dataSource;
string style;
NotifyValueChanged ("Visible", _isVisible);
}
}
- [XmlAttributeAttribute()][DefaultValue("1;1")]
+ [XmlAttributeAttribute()][DefaultValue("1,1")]
public virtual Size MinimumSize {
get { return _minimumSize; }
set {
RegisterForLayouting (LayoutingType.Sizing);
}
}
- [XmlAttributeAttribute()][DefaultValue("0;0")]
+ [XmlAttributeAttribute()][DefaultValue("0,0")]
public virtual Size MaximumSize {
get { return _maximumSize; }
set {
else
name = xaa.AttributeName;
}
- if (styling.ContainsKey (name)) {
- } else {
+ bool memberHasStyle = false;
+ if (styling != null){
+ if (styling.ContainsKey (name))
+ memberHasStyle = true;
+ }
+ if (memberHasStyle){
+
+ }else {
if (name == "Style") {
//retrieve default value from class attribute
//DefaultStyle defStyle = thisType.GetCustomAttribute<DefaultStyle>();
}
public static GraphicObject Load (string path, object hostClass = null)
{
+ System.Globalization.CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture;
+ Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
+
Interface.XmlLoaderCount ++;
CurrentGOMLPath = path;
GraphicObject tmp = null;
tmp = Load(stream, GetTopContainerOfGOMLStream(stream), hostClass);
}
Interface.XmlLoaderCount --;
+
+ Thread.CurrentThread.CurrentCulture = savedCulture;
+
return tmp;
}
public static GraphicObject Load (Stream stream, Type type, object hostClass = null)
public Dictionary<string, Dictionary<string, string>> Styling;
public void LoadStyling() {
+ System.Globalization.CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture;
+ Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
+
Styling = new Dictionary<string, Dictionary<string, string>> ();
//fetch styling info in this order, if member styling is alreadey referenced in previous
//assembly, it's ignored
loadStylingFromAssembly (Assembly.GetEntryAssembly ());
loadStylingFromAssembly (Assembly.GetExecutingAssembly ());
+
+ Thread.CurrentThread.CurrentCulture = savedCulture;
}
void loadStylingFromAssembly (Assembly assembly) {
public override string ToString()
{
- return string.Format("({0};{1})", X, Y);
+ return string.Format("({0},{1})", X, Y);
}
public override bool Equals(object obj)
{
if (string.IsNullOrEmpty (s))
return default(Point);
- string[] d = s.Trim().Split(';');
+ string[] d = s.Trim().Split(',');
if (d.Length == 2)
return new Point (int.Parse (d [0]), int.Parse (d [1]));
else if (d.Length == 1) {
}
public override string ToString()
{
- return string.Format("{0};{1};{2};{3}", X, Y, Width, Height);
+ return string.Format("{0},{1},{2},{3}", X, Y, Width, Height);
}
public static Rectangle Parse(string s)
{
- string[] d = s.Split(new char[] { ';' });
+ string[] d = s.Split(new char[] { ',' });
return new Rectangle(
int.Parse(d[0]),
int.Parse(d[1]),
}
public static Size Parse(string s)
{
- string[] d = s.Split(new char[] { ';' });
+ string[] d = s.Split(new char[] { ',' });
return d.Length == 1 ? new Size(int.Parse(d[0])) : new Size(
int.Parse(d[0]),
int.Parse(d[1]));