Click here to Skip to main content
15,350,252 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralMy vote of +5. Pin
MehGerbil17-Apr-12 7:43
MemberMehGerbil17-Apr-12 7:43 
GeneralRe: Just what I was looking for..... NOT! Pin
Jörgen Andersson17-Apr-12 9:14
professionalJörgen Andersson17-Apr-12 9:14 
GeneralRe: Just what I was looking for..... NOT! Pin
Roger Wright17-Apr-12 7:43
professionalRoger Wright17-Apr-12 7:43 
GeneralRe: Just what I was looking for..... NOT! Pin
thrakazog17-Apr-12 7:52
Memberthrakazog17-Apr-12 7:52 
GeneralRe: Just what I was looking for..... NOT! Pin
S Houghtelin17-Apr-12 8:08
professionalS Houghtelin17-Apr-12 8:08 
GeneralRe: Just what I was looking for..... NOT! Pin
NormDroid17-Apr-12 8:12
professionalNormDroid17-Apr-12 8:12 
GeneralRe: Just what I was looking for..... NOT! Pin
hairy_hats17-Apr-12 23:03
Memberhairy_hats17-Apr-12 23:03 
GeneralThank Goodness I Didn't Have To Write Any Code! PinPopular
MehGerbil17-Apr-12 5:41
MemberMehGerbil17-Apr-12 5:41 
Consider this statement:
Because you create a ControlTemplate in XAML, you can change a control's appearance without writing any code.

Source: MSDN

I know that there is a difference between 'Markup' and 'Code'; however, the statement still seemed humorous to me because the phrase 'without writing any code' usually implies a designer or wizard - or ease of use - when in fact XAML can be quite involved.

Consider the following tiny snippet of XAML:

<ControlTemplate TargetType="ComboBox">
  <Grid>
    <Border x:Name="ContentPresenterBorder">
      <Grid>
        <ToggleButton x:Name="DropDownToggle"
                      HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  
                      Margin="-1" HorizontalContentAlignment="Right">
          <Path x:Name="BtnArrow" Height="4" Width="8" 
                Stretch="Uniform" Margin="0,0,6,0"  Fill="Black"
                Data="F1 M 300,-190L 310,-190L 305,-183L 301,-190 Z " />
        </ToggleButton>
        <ContentPresenter x:Name="ContentPresenter" Margin="6,2,25,2">
          <TextBlock Text=" " />
        </ContentPresenter>
      </Grid>
    </Border>
    <Popup x:Name="Popup">
      <Border x:Name="PopupBorder" 
              HorizontalAlignment="Stretch" Height="Auto" 
              BorderThickness="{TemplateBinding BorderThickness}" 
              BorderBrush="Black" Background="White" CornerRadius="3">
        <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Padding="1">
          <ItemsPresenter/>
        </ScrollViewer>
      </Border>
    </Popup>

  </Grid>
</ControlTemplate>


Is the take away supposed to be: Thank heavens I was able to write that in XAML and didn't have to resort to writing any code. I just don't see the big relief here. The selling point: Do it without code is falling a bit flat.

Poke tongue | ;-P
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
hairy_hats17-Apr-12 5:45
Memberhairy_hats17-Apr-12 5:45 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
hairy_hats17-Apr-12 22:51
Memberhairy_hats17-Apr-12 22:51 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
GenJerDan18-Apr-12 3:50
MemberGenJerDan18-Apr-12 3:50 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
GenJerDan19-Apr-12 6:16
MemberGenJerDan19-Apr-12 6:16 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
Mike Hankey17-Apr-12 5:50
professionalMike Hankey17-Apr-12 5:50 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
leppie17-Apr-12 6:00
Memberleppie17-Apr-12 6:00 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
peterchen17-Apr-12 6:11
Memberpeterchen17-Apr-12 6:11 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
Gary Wheeler17-Apr-12 6:24
MemberGary Wheeler17-Apr-12 6:24 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
AspDotNetDev17-Apr-12 6:39
protectorAspDotNetDev17-Apr-12 6:39 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
Gary Wheeler17-Apr-12 6:45
MemberGary Wheeler17-Apr-12 6:45 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
AspDotNetDev17-Apr-12 8:01
protectorAspDotNetDev17-Apr-12 8:01 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
sweavo_new17-Apr-12 6:40
Membersweavo_new17-Apr-12 6:40 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
MehGerbil17-Apr-12 7:06
MemberMehGerbil17-Apr-12 7:06 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
wizardzz17-Apr-12 7:02
Memberwizardzz17-Apr-12 7:02 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
lewax0017-Apr-12 7:14
Memberlewax0017-Apr-12 7:14 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
JOAT-MON17-Apr-12 7:36
MemberJOAT-MON17-Apr-12 7:36 
GeneralRe: Thank Goodness I Didn't Have To Write Any Code! Pin
RobCroll17-Apr-12 8:12
MemberRobCroll17-Apr-12 8:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

What language are you using for AI development or learning?
Whether you're at work or home, hard core coding or just trying to figure out this AI thing, which languages have you used in your adventures?
  Results   301 votes