Click here to Skip to main content
15,915,611 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Pete O'Hanlon7-May-09 11:37
mvePete O'Hanlon7-May-09 11:37 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Pete O'Hanlon7-May-09 11:54
mvePete O'Hanlon7-May-09 11:54 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Philipp Sumi7-May-09 12:10
Philipp Sumi7-May-09 12:10 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Pete O'Hanlon7-May-09 22:30
mvePete O'Hanlon7-May-09 22:30 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Philipp Sumi7-May-09 22:45
Philipp Sumi7-May-09 22:45 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Pete O'Hanlon7-May-09 23:56
mvePete O'Hanlon7-May-09 23:56 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Philipp Sumi8-May-09 0:18
Philipp Sumi8-May-09 0:18 
GeneralRe: 'modified' tag in WinForms - WPF Equivalent Pin
Pete O'Hanlon8-May-09 2:55
mvePete O'Hanlon8-May-09 2:55 
QuestionWPF(Show data of type Varbinary in form of image in GridViewColumn) Pin
drcmomo5-May-09 9:09
drcmomo5-May-09 9:09 
AnswerRe: WPF(Show data of type Varbinary in form of image in GridViewColumn) Pin
Pete O'Hanlon5-May-09 9:36
mvePete O'Hanlon5-May-09 9:36 
GeneralRe: WPF(Show data of type Varbinary in form of image in GridViewColumn) Pin
drcmomo5-May-09 10:12
drcmomo5-May-09 10:12 
GeneralRe: WPF(Show data of type Varbinary in form of image in GridViewColumn) Pin
drcmomo5-May-09 10:19
drcmomo5-May-09 10:19 
QuestionHow to access silverlight control properties from aspx page Pin
wantToCode5-May-09 1:46
wantToCode5-May-09 1:46 
AnswerRe: How to access silverlight control properties from aspx page Pin
Ray Cassick5-May-09 2:29
Ray Cassick5-May-09 2:29 
QuestionRe: How to access silverlight control properties from aspx page Pin
wantToCode12-May-09 19:42
wantToCode12-May-09 19:42 
AnswerRe: How to access silverlight control properties from aspx page Pin
Ray Cassick13-May-09 2:25
Ray Cassick13-May-09 2:25 
QuestionHow to convert a handle to a wpf window? Pin
Eric Vonjacson5-May-09 0:55
Eric Vonjacson5-May-09 0:55 
AnswerRe: How to convert a handle to a wpf window? Pin
Mark Salsbery5-May-09 5:29
Mark Salsbery5-May-09 5:29 
QuestionWPF RichTextBox - Appending Colored text Pin
Harvey Saayman4-May-09 22:08
Harvey Saayman4-May-09 22:08 
AnswerRe: WPF RichTextBox - Appending Colored text Pin
Philipp Sumi4-May-09 22:13
Philipp Sumi4-May-09 22:13 
GeneralRe: WPF RichTextBox - Appending Colored text Pin
Harvey Saayman4-May-09 23:14
Harvey Saayman4-May-09 23:14 
QuestionWPF(add a message or text in the xmal elements like ellipse at run time in windows application. [modified] Pin
Ch.Gayatri Subudhi4-May-09 18:34
Ch.Gayatri Subudhi4-May-09 18:34 
AnswerRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Philipp Sumi4-May-09 20:35
Philipp Sumi4-May-09 20:35 
You're looking at the problem from the wrong end: An ellipse does not have the opportunity to display text, but a Label can take whatever look you want through a control template Smile | :)


<Grid>  
  
  <Grid.Resources>
  
    <Style x:Key="EllipseLabel" TargetType="{x:Type Label}">
    
      <Setter Property="Template">
        <Setter.Value>
          <ControlTemplate TargetType="{x:Type Label}">
            <Grid >
              <Ellipse  Width="{TemplateBinding Width}"
                        Height="{TemplateBinding Height}"
                        Stroke="LightPink"
                        StrokeThickness="05"
                        Fill="blue" />
              <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
            </Grid>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    
    </Style>   
  </Grid.Resources>

  
    <Label Width="200" Height="100" Style="{StaticResource EllipseLabel}" Content="hello world" />
  
</Grid>



...accordingly, if you change your label's content, the text changes.

NetDrives - Open Source Network Share Management

GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Ch.Gayatri Subudhi4-May-09 21:20
Ch.Gayatri Subudhi4-May-09 21:20 
GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Philipp Sumi4-May-09 21:22
Philipp Sumi4-May-09 21:22 

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.