Click here to Skip to main content
15,881,838 members
Home / Discussions / WPF
   

WPF

 
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 
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 
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:33
Ch.Gayatri Subudhi4-May-09 21:33 
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:38
Philipp Sumi4-May-09 21:38 
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:42
Ch.Gayatri Subudhi4-May-09 21:42 
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:46
Philipp Sumi4-May-09 21:46 
If you want to enter text, you need to style another control, e.g. textbox:

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

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


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:51
Ch.Gayatri Subudhi4-May-09 21:51 
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:53
Ch.Gayatri Subudhi4-May-09 21:53 
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 22:02
Ch.Gayatri Subudhi4-May-09 22:02 
GeneralSir i got anothr solution regarding this... Pin
Ch.Gayatri Subudhi5-May-09 20:25
Ch.Gayatri Subudhi5-May-09 20:25 
GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Ch.Gayatri Subudhi5-May-09 1:13
Ch.Gayatri Subudhi5-May-09 1:13 
QuestionUserControl Databinding Pin
mikla5213-May-09 3:14
mikla5213-May-09 3:14 
AnswerRe: UserControl Databinding Pin
Mark Salsbery3-May-09 8:31
Mark Salsbery3-May-09 8:31 
GeneralRe: UserControl Databinding Pin
mikla5213-May-09 9:08
mikla5213-May-09 9:08 
GeneralRe: UserControl Databinding Pin
Mark Salsbery3-May-09 9:40
Mark Salsbery3-May-09 9:40 
GeneralRe: UserControl Databinding Pin
mikla5213-May-09 10:25
mikla5213-May-09 10:25 
GeneralRe: UserControl Databinding Pin
mikla5213-May-09 21:04
mikla5213-May-09 21:04 
AnswerRe: UserControl Databinding Pin
Kunal Chowdhury «IN»13-May-09 20:42
professionalKunal Chowdhury «IN»13-May-09 20:42 
AnswerRe: UserControl Databinding Pin
Gideon Engelberth4-May-09 3:24
Gideon Engelberth4-May-09 3:24 
QuestionHow to read images in a single image file (.png format) Pin
seshu4code2-May-09 23:58
seshu4code2-May-09 23:58 
AnswerRe: How to read images in a single image file (.png format) Pin
Mark Salsbery3-May-09 8:47
Mark Salsbery3-May-09 8:47 
GeneralRe: How to read images in a single image file (.png format) Pin
seshu4code6-May-09 23:49
seshu4code6-May-09 23:49 
QuestionListView (with GridView) - Bound to Observable Collection [modified] Pin
b4ip2-May-09 19:56
b4ip2-May-09 19:56 

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.