<?xml version="1.0" encoding="UTF-8" ?>
-<GenericStack Orientation="Vertical" Spacing="0" Hoverable="false"
+<GenericStack Orientation="Vertical" Spacing="0"
Width="{../../WidthPolicy}" Height="{../../HeightPolicy}">
<Label Margin="5" Name="TabTitle" Width="-1"
HorizontalAlignment="Left"
(Children [selectedTab] as TabItem).IsSelected = true;
NotifyValueChanged ("SelectedTab", selectedTab);
- Debug.WriteLine ("selected tab: " + (selectedTab + 1).ToString ());
registerForGraphicUpdate ();
}
}
#region Mouse handling
public override void checkHoverWidget (MouseMoveEventArgs e)
{
- Debug.WriteLine ("TabView check Hover");
-
if (HostContainer.hoverWidget != this) {
HostContainer.hoverWidget = this;
onMouseEnter (this, e);
}
if (((Children[SelectedTab] as TabItem).Content.Parent as GraphicObject).MouseIsIn(e.Position))
{
- Debug.WriteLine ("Mouse is in selected tab: {0}", selectedTab + 1);
Children[SelectedTab].checkHoverWidget (e);
return;
}
TabItem ti = Children [i] as TabItem;
if (ti.TabTitle.MouseIsIn(e.Position))
{
- Debug.WriteLine ("Mouse is in tab title: {0}", i + 1);
Children[i].checkHoverWidget (e);
return;
}
}
}
#endregion
-
- void TabTitleLayoutChanged (object sender, LayoutingEventArgs e)
- {
-
- }
-
void Ti_MouseDown (object sender, OpenTK.Input.MouseButtonEventArgs e)
{
SelectedTab = Children.IndexOf (sender as GraphicObject);