|
It's pretty easy, actually. In the admin section, go to the editor for your theme and look through the PHP templates. There should be template for the header, footer, sidebar etc. If you want to put it on top of the sidebar, there should be a PHP template that loops over the configured widgets.
For example, the HTML that is rendered for your sidebar looks like this:
<!-- begin sidebar -->
<div id="menu">
<ul>
<li id="pages" class="widget widget_pages">
<h2 class="widgettitle">Pages</h2>
...
If you find the PHP that generates this markup, all you have to do is putting a link to http://peteohanlon.wordpress.com/feed/ in there and you're done (that is, unless your template is seriously screwed up ).
HTH,
Philipp
NetDrives - Open Source Network Share Management
|
|
|
|
|
Philipp Sumi wrote: If you find the PHP that generates this markup, all you have to do is putting a link to http://peteohanlon.wordpress.com/feed/ in there and you're done (that is, unless your template is seriously screwed up ).
Ah, now there's the problem. As I'm running on WordPress.com, the template support is extremely limited; i.e. there's no template editor.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Pete O'Hanlon wrote: there's no template editor.
Outch! Guess you're screwed then
NetDrives - Open Source Network Share Management
|
|
|
|
|
Not necessarily. I've just found a Widget that does what I want. Jobs a good'un.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Good morning everybody,
I would like to know how to show in GridViewColumn of pictures of a table of database.
I explain me fill DataSet has leave a request SQL.
In my DataSet I have a column which contains of of the data of type Varbinary.
I would like to know how to show in GridViewColumn of pictures instead of of the data of type Varbinary.
If you can help me please.
Excuse me I am French my English is bad
|
|
|
|
|
What you need to do is convert the binary into an image using something like:
public BitmapImage ConvertImage(byte[] value)
{
if (value != null && value.Length > 0)
{
using (MemoryStream stream = new MemoryStream(value))
{
BitmapImage image = new BitmapImage();
image.BeginInit();
image.StreamSource = stream;
image.EndInit();
return image;
}
}
return null;
}
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
HI
My problem is to show in a column of my ListView of pictures after conversion ConvertImage (byteBLOBData); I also think that problem comes can be of my source code XAML.
If you can look at my code please
private void RemplirListeUtilisateur()
{
dt_ListeUtilisateur.Clear();
cmd.CommandText = "SELECT U.IDUTILISATEUR,U.MyImage, U.NOMUTILISATEUR,U.PRENOMUTILISATEUR,U.ADRESSE,U.CODEPOSTALE,U.TELEPHONE,P.NOMPAYS AS PAYS,D.NOMDEPARTEMENT AS DEPARTEMENT FROM UTILISATEUR U INNER JOIN PAYS P ON U.IDPAYS = P.IDPAYS INNER JOIN DEPARTEMENT D ON U.IDDPEPARTEMENT = D.IDDEPARTEMENT";
sqlDa = new SqlDataAdapter();
sqlDa.SelectCommand = cmd;
try
{
sqlDa.Fill(dt_ListeUtilisateur);
DataTable Temp = new DataTable();
Temp.Columns.Add("IDUTILISATEUR");
Temp.Columns.Add("NOMUTILISATEUR");
Temp.Columns.Add("PRENOMUTILISATEUR");
Temp.Columns.Add("ADRESSE");
Temp.Columns.Add("CODEPOSTALE");
Temp.Columns.Add("TELEPHONE");
Temp.Columns.Add("PAYS");
Temp.Columns.Add("DEPARTEMENT");
Temp.Columns.Add("MyIMAGE");
for (int Index = 0; Index < dt_ListeUtilisateur.Rows.Count; Index++)
{
DataRow MyDataRow = Temp.NewRow();
MyDataRow["IDUTILISATEUR"] = dt_ListeUtilisateur.Rows[Index] ["IDUTILISATEUR"].ToString();
MyDataRow["NOMUTILISATEUR"] = dt_ListeUtilisateur.Rows[Index]["NOMUTILISATEUR"].ToString();
MyDataRow["PRENOMUTILISATEUR"] = dt_ListeUtilisateur.Rows[Index]["PRENOMUTILISATEUR"].ToString();
MyDataRow["ADRESSE"] = dt_ListeUtilisateur.Rows[Index]["ADRESSE"].ToString();
MyDataRow["CODEPOSTALE"] = dt_ListeUtilisateur.Rows[Index]["CODEPOSTALE"].ToString();
MyDataRow["TELEPHONE"] = dt_ListeUtilisateur.Rows[Index]["TELEPHONE"].ToString();
MyDataRow["PAYS"] = dt_ListeUtilisateur.Rows[Index]["PAYS"].ToString();
MyDataRow["DEPARTEMENT"] = dt_ListeUtilisateur.Rows[Index]["DEPARTEMENT"].ToString();
int c = dt_ListeUtilisateur.Rows.Count;
if ((dt_ListeUtilisateur.Rows[Index]["MyImage"].ToString() != String.Empty) || (dt_ListeUtilisateur.Rows[Index]["MyImage"].ToString().Equals("null")))
{
Byte[] byteBLOBData = new Byte[0];
byteBLOBData = (Byte[])(dt_ListeUtilisateur.Rows[c - 1]["MyImage"]);
MemoryStream stmBLOBData = new MemoryStream(byteBLOBData);
ConvertImage(byteBLOBData);
MyDataRow["MyImage"] = images;
}
Temp.Rows.Add(MyDataRow);
}
lstUtilisateur.ItemsSource = Temp.DefaultView;
Code XAML :
<gridviewcolumn header="Image" displaymemberbinding="{Binding Path=MyImage}">
|
|
|
|
|
I achieved all other columns in ListView to show pictures in the column picture
Encode XAML for the column Picture
|
|
|
|
|
Hi,
I am building a silverlight control for uploading files. that has some user defined properties like file filter etc.
I want to assign values to those from the aspx page in which i am hosting that control.
Please tell me how to do that.
Thanks in advance..
|
|
|
|
|
You can use param tags or the InitParameters property in the page that hosts the silver light control.
Take a look at the code of the html or aspx page that gets created as part of your silver light project.
This link gives a few details on how to use InitParameters.
http://www.dotnetspider.com/Silverlight-Tutorial-313.aspx[^]
|
|
|
|
|
Thanks for the reply.
I want to know if i can use the ID of the control to directly access the properties.
example: if the the silverlight control Id is Xaml1 and one of the property is FolderName
can i use Xaml1.FolderName="value"?
Another thing i want to know how the control is getting called.
Please let me know if i can access the properties without using query string or InitParameters.
Thanks in advance.
|
|
|
|
|
|
Hi,
I have one problem: In code, I call a function which is provided by others and this function will pop out a dialog. The function return a object and it has long integer value. I think the value is a window handle. So how to convert this handle to a wpf window?
thanks,
eric
|
|
|
|
|
|
Hey guys
I need to append text to a WPF RichTextBox, but specific colors.
After much googling i put together the following method
private void AppendRtfText(string Text, Brush Color)
{
TextRange range = new TextRange(txtChat.Document.ContentEnd, txtChat.Document.ContentEnd);
range.Text = Text;
range.ApplyPropertyValue(TextElement.ForegroundProperty, Color);
}
Now this works just fine, but I need to be able to specify RGB values.
The TextElement.ForegroundProperty only accepts a Brush and as far as I can see I cant specify RGB for a brush like i would with the Color class.
Any ideas? Cause I'm running out
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
|
Worked like a charm, thanks
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
Hi..
I am new to this concept.How to add a message or text in the ellipse of xmal element at run time of windows application.Is in a xmal ellipse control we can put text box to write text? if yes how, if not please suggest me the other way if possible...
the code :
Ellipse x:Name="C2" Height="353" Width="440" Stroke="LightPink" StrokeThickness="05" Visibility="Hidden" Fill="blue" Canvas.Top="63" Canvas.Left="80">
modified on Tuesday, May 5, 2009 12:54 AM
|
|
|
|
|
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
<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
|
|
|
|
|
Sir,
Thanks for your concern. i need the text like textbox while in rumn time wt we want we are inserting,like this way i want to write some thing in the ellipse at run mode of the windows appliaction.
Thanks and Regards
Ch.Gaytari
|
|
|
|
|
There's no problem doing that - you can change a label's content at runtime through a binding expression or code. It's a label, after all. even though it looks like an ellipse.
NetDrives - Open Source Network Share Management
|
|
|
|
|
Could you please give the sample code of this problem.Thanks in advance.
With Regards
Ch.Gayatri
|
|
|
|
|
This is regular WPF 101 - just give the label in my sample a name like this:
<Label x:Name="myLabel" ... />
...and in code, set the text:
myLabel.Content = "this is easy";
NetDrives - Open Source Network Share Management
|
|
|
|
|
let the windows form having text box ok..whn its in run mode we are able to enter some value in it like this way i need to write some thing like text or message in the ellipse of the xmal elements.Or any other way to solve this solution .Please suggest me.
Thanks
Ch.Gayatri
|
|
|
|
|
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
|
|
|
|