Click here to Skip to main content
15,916,091 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: changing skins Pin
Ian Shlasko1-Sep-10 5:33
Ian Shlasko1-Sep-10 5:33 
GeneralRe: changing skins Pin
V.1-Sep-10 9:49
professionalV.1-Sep-10 9:49 
GeneralRe: changing skins Pin
Ian Shlasko1-Sep-10 10:16
Ian Shlasko1-Sep-10 10:16 
QuestionChange style of application Pin
tonydang1-Sep-10 0:38
tonydang1-Sep-10 0:38 
AnswerRe: Change style of application Pin
#realJSOP1-Sep-10 2:25
professional#realJSOP1-Sep-10 2:25 
QuestionHow to post my example Pin
tonydang31-Aug-10 23:24
tonydang31-Aug-10 23:24 
AnswerRe: How to post my example Pin
Pete O'Hanlon1-Sep-10 0:21
mvePete O'Hanlon1-Sep-10 0:21 
AnswerRe: How to post my example Pin
AspDotNetDev1-Sep-10 9:31
protectorAspDotNetDev1-Sep-10 9:31 


Is it just a code snippet? If so, you can just paste it here with Encode "<" (and other HTML) characters when pasting checked. Then you can surround it in a PRE block and specify the lang attribute. With WPF XAML, you'd specify the lang as "XML". For example, typing this:
HTML
<pre lang="xml">&lt;Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525"&gt;
    &lt;Grid&gt;
        &lt;TextBlock&gt;Hello World&lt;/TextBlock&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;</pre>

Will produce this:
XML
<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
        <TextBlock>Hello World</TextBlock>
    </Grid>
</Window>

And if you had some VB.Net, you'd specify the lang as "VB", like so:
HTML
<pre lang="vb">Class MainWindow 
    Public Sub DoStuff()
        Dim x As Integer = 5
    End Sub
End Class</pre>

Which would look like:
VB
Class MainWindow 
    Public Sub DoStuff()
        Dim x As Integer = 5
    End Sub
End Class

If you click the "Preview" button before you post, you can make sure the code looks as you intended.

QuestionDate Problem in SL Pin
Jagz W31-Aug-10 21:05
professionalJagz W31-Aug-10 21:05 
AnswerRe: Date Problem in SL Pin
Pete O'Hanlon31-Aug-10 21:36
mvePete O'Hanlon31-Aug-10 21:36 
GeneralRe: Date Problem in SL Pin
Jagz W1-Sep-10 3:16
professionalJagz W1-Sep-10 3:16 
GeneralRe: Date Problem in SL Pin
Pete O'Hanlon1-Sep-10 3:17
mvePete O'Hanlon1-Sep-10 3:17 
GeneralRe: Date Problem in SL Pin
V.1-Sep-10 9:52
professionalV.1-Sep-10 9:52 
GeneralRe: Date Problem in SL Pin
Pete O'Hanlon1-Sep-10 23:03
mvePete O'Hanlon1-Sep-10 23:03 
GeneralRe: Date Problem in SL Pin
V.1-Sep-10 23:37
professionalV.1-Sep-10 23:37 
QuestionSetting the cursor for all controls Pin
dbrenth31-Aug-10 8:39
dbrenth31-Aug-10 8:39 
AnswerRe: Setting the cursor for all controls Pin
Pete O'Hanlon31-Aug-10 9:08
mvePete O'Hanlon31-Aug-10 9:08 
GeneralRe: Setting the cursor for all controls Pin
dbrenth31-Aug-10 9:33
dbrenth31-Aug-10 9:33 
GeneralRe: Setting the cursor for all controls Pin
Pete O'Hanlon31-Aug-10 9:35
mvePete O'Hanlon31-Aug-10 9:35 
GeneralRe: Setting the cursor for all controls Pin
dbrenth31-Aug-10 9:37
dbrenth31-Aug-10 9:37 
GeneralRe: Setting the cursor for all controls Pin
Pete O'Hanlon31-Aug-10 9:41
mvePete O'Hanlon31-Aug-10 9:41 
Questionpluggable gadget system Pin
karanba31-Aug-10 0:53
karanba31-Aug-10 0:53 
AnswerRe: pluggable gadget system Pin
Pete O'Hanlon31-Aug-10 2:01
mvePete O'Hanlon31-Aug-10 2:01 
AnswerRe: pluggable gadget system Pin
PumbaPumba27-Sep-10 8:08
PumbaPumba27-Sep-10 8:08 
QuestionHow to pass some parameters to modules(they are instantiated by Bootstrapper) from Main method of App.xaml Pin
Mukesh Naval30-Aug-10 3:10
Mukesh Naval30-Aug-10 3:10 

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.