|
One could still go wild with an attached behaviour in order to mimic the WinForms functionality, but with WPF, it really isn't necessary anymore. But you gotta love the flexibility of the platform
btw: Subscribed to your blog lately and noticed that your blog is missing a visible feed link (unless it's really well hidden).
Cheers,
Philipp
NetDrives - Open Source Network Share Management
|
|
|
|
|
Philipp Sumi wrote: btw: Subscribed to your blog lately and noticed that your blog is missing a visible feed link (unless it's really well hidden).
Oops. I'll have to sort that out.
Philipp Sumi wrote: But you gotta love the flexibility of the platform
Damn straight. Attached functionality is one of the reasons that the Tag property is no longer necessary.
"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
|
|
|
|
|
Sorted - take a look under the Meta link. I've moved it to the top from the bottom of the sidebar.
"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
|
|
|
|
|
It was there the whole time, wasn't it? It's surprising how the brain even filters information ("do not interpret entries in the meta section because there's the admin stuff") even if you don't want it to. I honestly never noticed that there's an additional feed link although my blog runs on WP, too
In case I'm not the only one with that particular problem - an RSS link in the top area along with a shiny orangy RSS icon might help to get you some additional readers. Maybe not the brightest ones
Cheers,
Philipp
NetDrives - Open Source Network Share Management
|
|
|
|
|
Ah - the joy of WordPress - especially with their default templates. I've been trying to find out how to add RSS feed links to the site and haven't been having too much luck with it.
"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
|
|
|
|
|
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
|
|
|
|