コード例 #1
0
        public LMD_BottomPanel()
        {
            InitializeComponent();
            grid.Width = SystemParameters.PrimaryScreenWidth;

            state_visibly = STATE_VISIBLY.show;

            AddItemText("-----------------------------------Hello World-----------------------------------");
        }
コード例 #2
0
        // Hidden
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (state_visibly == STATE_VISIBLY.show)
            {
                grid.Height = 20;
                textBlockButtonHide.Text = "5";
                state_visibly            = STATE_VISIBLY.hide;
            }
            else if (state_visibly == STATE_VISIBLY.hide)
            {
                grid.Height = 220;
                textBlockButtonHide.Text = "6";
                state_visibly            = STATE_VISIBLY.show;
            }

            if (onHidden != null)
            {
                onHidden(state_visibly);
            }
        }