コード例 #1
0
ファイル: ActionBar.xaml.cs プロジェクト: KohrAhr/SRPManager
        private void ShowButtonByTag(int buttonTag)
        {
            // TODO: gdTop should be replaced on this
            Button element = UIFunctions.FindControlByTag <Button>(gdTop, buttonTag.ToString());

            if (element != null)
            {
                element.Visibility = Visibility.Visible;
            }
        }
コード例 #2
0
ファイル: ActionBar.xaml.cs プロジェクト: KohrAhr/SRPManager
        private void HideButtonByTag(int buttonTag)
        {
            // TODO: gdTop should be replaced on this
            var    z       = UIFunctions.FindControl <WrapPanel>(this.gdTop);
            Button element = UIFunctions.FindControlByTag <Button>(z, buttonTag.ToString());

            if (element != null)
            {
                element.Visibility = Visibility.Collapsed;
            }
        }