Changeset 2678


Ignore:
Timestamp:
Feb 13, 2011, 7:15:37 PM (11 years ago)
Author:
sauer
Message:

Wizard: plugin presentation height

Location:
trunk/CrypPlugins/Wizard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Wizard/Config/EnDeCrypt/wizard.config.classicEnDe.xml

    r2676 r2678  
    8787      </comboBox>
    8888
    89       <outputBox plugin="CaesarResult" property="CurrentValue" alignment="Stretch" width="80%" visibleLines="2">
     89      <!--<outputBox plugin="CaesarResult" property="CurrentValue" alignment="Stretch" width="80%" visibleLines="2">
    9090        <description lang="en">
    9191          Some output message:
    9292        </description>
    93       </outputBox>
     93      </outputBox>-->
    9494
    95       <!--<presentation plugin="CaesarResult" alignment="Stretch">
     95      <presentation plugin="CaesarResult" alignment="Stretch" height="100">
    9696        <description lang="en">
    9797          Plugin presentation:
    9898        </description>
    99       </presentation>-->
     99      </presentation>
    100100     
    101101      <!--<loadSample file="WorkspaceManagerSamples\Caesar_Sample.cwm" title="W_Caesar_Sample"/>-->
  • trunk/CrypPlugins/Wizard/WizardControl.xaml.cs

    r2676 r2678  
    252252                {
    253253                    nextButton.IsEnabled = false;
    254                     if (element.Element("presentation") != null)
    255                         LoadSample(element.Attribute("file").Value, element.Attribute("title").Value, false);
    256                     else
    257                         LoadSample(element.Attribute("file").Value, element.Attribute("title").Value, false);
     254                    LoadSample(element.Attribute("file").Value, element.Attribute("title").Value, false);
    258255                }
    259256
     
    580577
    581578                    var cc = new ContentControl();
     579
     580                    double d;
     581                    if (input.Attribute("height") != null && Double.TryParse(input.Attribute("height").Value, out d))
     582                        cc.Height = d;
     583
    582584                    cc.Tag = input;
    583585                    inputStack.Children.Add(cc);
Note: See TracChangeset for help on using the changeset viewer.