//c2.VerticalAlignment = VerticalAlignment.Top;\r
c.Background.AdjustAlpha (0.5);\r
labMousePos = c.FindByName ("labMouse") as Label;\r
- pb = c.FindByName("pbBar") as ProgressBar;\r
+ //pb = c.FindByName("pbBar") as ProgressBar;\r
pb2 = c.FindByName("pbBar2") as ProgressBar;\r
labPb = c.FindByName ("labPb") as Label;\r
labF = c.FindByName ("labFocus") as Label;\r
}\r
);\r
i++;\r
- if (i > 250)\r
- break;\r
+// if (i > 150)\r
+// break;\r
}\r
ValueChanged.Raise(this, new ValueChangeEventArgs ("TestList", TestList));\r
}\r
}\r
frameCpt++;\r
\r
- if (pb.Value == pb.Maximum)\r
- pb.Value = 0;\r
- pb.Value++;\r
- pb2.Value = pb.Value;\r
- //labPb.Text = pb.Value.ToString ();\r
+ if (pb2.Value == pb2.Maximum)\r
+ pb2.Value = 0;\r
+ pb2.Value++;\r
+\r
if (FocusedWidget==null)\r
labF.Text = "- none -";\r
else\r
<!-- <ListBox Data="{TestList}"></ListBox>-->\r
<HorizontalStack Name="hsPbar" Margin="5">\r
<ProgressBar Name="pbBar" \r
- Width="100" Height="20"\r
+ Width="200" Height="20"\r
Minimum="0"\r
Maximum="200"\r
- Value="50"\r
+ Value="{fps}"\r
Foreground="BlueCrayola" Background="DarkGray"\r
BorderWidth="2" BorderColor="White"/>\r
- <Label Name="labPb"\r
+<!-- <Label Name="labPb"\r
Width="30"\r
- TextAlignment="RightCenter"/>\r
+ TextAlignment="RightCenter"/>-->\r
</HorizontalStack>\r
<HorizontalStack Name="hsFocus">\r
<Label Text="Focused:"/>\r
Text="editable text"/>\r
<GroupBox Title="Group Box" Width="300" Height="100" \r
BorderColor="White" BorderWidth="2" Margin="3">\r
- <Label Name="labValue" FontSize="14" Text="000" TextAlignment="Center"/>\r
+ <Label Name="labValue" FontSize="14" Text="{../../slider.Value}" TextAlignment="Center"/>\r
</GroupBox>\r
<Slider Height="10" Width="300" BorderWidth="1" Background="Transparent" />\r
<GraduatedSlider Name="slider" Height="30" Width="300" Foreground="BlueBell"/>\r
<VerticalStack Name="colors" VerticalAlignment="Top" Margin="1">\r
<ProgressBar Name="pbBar2" Width="100" Height="20" Value="50"\r
BorderWidth="2" BorderColor="White" Foreground="BlueCrayola" Background="DarkGray"/>\r
+ <ProgressBar Width="100" Height="20" Value="{fps}" BorderWidth="2"\r
+ BorderColor="White" Foreground="BlueCrayola" Background="DarkGray"/> \r
</VerticalStack>\r
</Scroller>\r
<Scrollbar Name="scrollbar1" Scroll="{../scroller1.ScrollY}" MaximumScroll="{../scroller1.MaximumScroll}"\r
if (miDst.MemberType == MemberTypes.Property) {
PropertyInfo piDst = miDst as PropertyInfo;
//TODO: handle other dest type conversions
- if (piDst.PropertyType == typeof(string))
- srcVal = srcVal.ToString ();
+ if (piDst.PropertyType == typeof(string)){
+ if (srcVal != null)
+ srcVal = srcVal.ToString ();
+ }
piDst.GetSetMethod ().Invoke (binding.Source, new object[] { srcVal });
} else if (miDst.MemberType == MemberTypes.Field) {
FieldInfo fiDst = miDst as FieldInfo;