| | |
| | | Loaded += UserControl_Loaded; |
| | | } |
| | | |
| | | private void ProgramList_FocusableChanged(object sender, DependencyPropertyChangedEventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | private List<CanvasPosition> InitGridSize() |
| | | { |
| | | List<CanvasPosition> result = new List<CanvasPosition>(); |
| | |
| | | |
| | | } |
| | | |
| | | public int CanvasChildrenCount { get; private set; } = 0; |
| | | private void HandleInnerWindow(InnerWindow inner) |
| | | { |
| | | inner.MinEvent += InnerWindowMin; |
| | | inner.MaxEvent += InnerWindowMax; |
| | | inner.ZIndexEvent += Inner_ZIndexEvent; |
| | | inner.GotFocus += Inner_GotFocus; |
| | | inner.AttachToCanvas(WorkArea); |
| | | } |
| | | |
| | | inner.Zindex = CanvasChildrenCount++; |
| | | }
|
| | |
|
| | | private void Inner_GotFocus(object sender, RoutedEventArgs e)
|
| | | {
|
| | | CanvasHelper.SetTopZIndex(sender as InnerWindow, WorkArea, typeof(InnerWindow));
|
| | | }
|
| | |
|
| | | private void Inner_ZIndexEvent(object sender, EventArgs e) |
| | | { |
| | | CanvasHelper.SetTopZIndex(sender as InnerWindow, WorkArea, typeof(InnerWindow)); |
| | |
| | | { |
| | | MinInnerWindow min = sender as MinInnerWindow; |
| | | min.Inner.Visibility = Visibility.Visible; |
| | | CanvasHelper.SetTopZIndex(min.Inner, WorkArea, typeof(InnerWindow)); |
| | | BottomBar.RemoveMinWindow(min); |
| | | } |
| | | |