Example #1
0
        public void SelectSection(PaneNavButton P)
        {
            if (P.Action != null)
            {
                P.Action();
                return;
            }

            Context = Activator.CreateInstance(P.Page, Reader);
            NotifyChanged("Context");
        }
Example #2
0
        public void SelectSection( PaneNavButton P )
        {
            if ( P.Action != null )
            {
                P.Action();
                return;
            }

            Context = Activator.CreateInstance( P.Page, Reader );
            NotifyChanged( "Context" );
        }
Example #3
0
 public void ControlAction( PaneNavButton Control )
 {
     Control?.Action();
 }
Example #4
0
        private PaneNavButton FlowDirButton()
        {
            PaneNavButton FlowDirButton = null;

            Rectangle RectInd = new Rectangle()
            {
                Width = 20,
                Height = 40
                , Fill = new SolidColorBrush( Properties.APPEARENCE_THEME_RELATIVE_SHADES_COLOR )
            };

            FlowDirection = Properties.APPEARANCE_CONTENTREADER_LEFTCONTEXT
                ? FlowDirection.LeftToRight
                : FlowDirection.RightToLeft;

            RectInd.Margin = new Thickness( 10 );
            RectInd.VerticalAlignment = VerticalAlignment.Center;
            RectInd.HorizontalAlignment = ( FlowDirection == FlowDirection.LeftToRight )
                ? HorizontalAlignment.Left
                : HorizontalAlignment.Right;

            Action ToggleFIcon = () =>
            {
                if ( MainSplitView.FlowDirection == FlowDirection.LeftToRight )
                {
                    Properties.APPEARANCE_CONTENTREADER_LEFTCONTEXT = false;
                    RectInd.HorizontalAlignment = HorizontalAlignment.Right;
                    MainSplitView.FlowDirection = FlowDirection.RightToLeft;
                }
                else
                {
                    Properties.APPEARANCE_CONTENTREADER_LEFTCONTEXT = true;
                    RectInd.HorizontalAlignment = HorizontalAlignment.Left;
                    MainSplitView.FlowDirection = FlowDirection.LeftToRight;
                }
            };

            FlowDirButton = new PaneNavButton( RectInd, ToggleFIcon );

            return FlowDirButton;
        }