|
Hi All,
Before the flames start that isn't a woefully useless subject line!!
Has anyone come up with or have any links, useful info on adding help to a WPF application? This article seems like a good start in terms of context sensitive help but I also want to add a fully fleshed out help.chm or something more WPFie:
http://blogs.msdn.com/mikehillberg/archive/2007/07/26/a-context-sensitive-help-provider-in-wpf.aspx[^]
I guess I need to find an open source 'help.chm' authoring tool (Anyone know of a good one?) for the more traditional help solution. I would love to have something more WPF 'skinnable' though really. I have also considered having an entire page in the application that hosts a website page in a frame but that doesn't help users that aren't on the internet ...
Thanks in advance.
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
|
Oh Good Grief ... is Microsoft's Help Workshop THE worst pile of **** ever or what???? Its horrific!!!!
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
I have Binded the listview. when i click the columns it changes to textbox.. How to retrieve the textbox values while editing the textbox in listview.??
I want to update the database when i click the Save button .
<DataTemplate x:Key="cellTemplateName">
<Grid >
<TextBox Name="txtname" BorderThickness="0" Text="{Binding Path=psc_name}" VerticalAlignment="Center" ></TextBox>
</Grid>
</DataTemplate>
<DataTemplate x:Key="cellTemplateRGB">
<Grid>
<TextBox Name="txtrgb" BorderThickness="0" Text="{Binding Path=psc_rgb}"></TextBox>
</Grid>
</DataTemplate>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="500" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<ListView Name="ListColor" Grid.Row="0" >
<ListView.View>
<GridView AllowsColumnReorder="true" ColumnHeaderToolTip="Color Information" >
<!-- <GridViewColumn CellTemplate="{StaticResource cellTemplateCode}" Header="Code" Width="100"/>-->
<GridViewColumn DisplayMemberBinding="{Binding Path=psc_code}" Header="Code" Width="100"/>
<GridViewColumn CellTemplate="{StaticResource cellTemplateName}" Header="Name" Width="100"/>
<GridViewColumn CellTemplate="{StaticResource cellTemplateRGB}" Header="RGB" Width="100"/>
</GridView>
</ListView.View>
</ListView>
<StackPanel Margin="0,20,0,0" Background="White" HorizontalAlignment="Left" Grid.Row="1" >
<Button Name="btnsave" Width ="50" Height="30" >Save</Button>
</StackPanel >
</Grid>
|
|
|
|
|
What type of DataSource are you binding to?
It it is an ObserableCollection or a List collection the values should be automatically bound from the textbox back to the datasource with no requirements on your part. Just look at the data source for the values.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
I'm a rookie of silverlight and currently use on silverlight 2 beta.
I have a problem about XML.
How can I write the data into the XML?
I have to create the dynamic navigation that have the admin part for admin login to edit contents. My navigation contents are created from XML file (this XML file not embed into XAP file) and include the element such as MenuName, Url, role, etc.
Now, my navigation can already read the contents from XML, but I can't write the data return to XML for edit my navigation.
|
|
|
|
|
You may know that Silverlight is running on the user's browser. (like Javascript and unlike ASP.NET)
So, it doesn't have the permission to write anything on the File System except Isolated Storage. The important question that I need to ask you back is ~~ where did you store the XML? or where do you want to store that XML file?
If you want to write the data into XML that is located in Server, you will need to use WebService for that. You need to invoke the webservice from Silverlight. Pass the data to webservice. write those data into XML from webservice.
|
|
|
|
|
|
Hi
Iam working with the WPF Grid (developed by ComponentOne) on Visual Studio 2008. I have to come up with a report using the DataGrid, which gives the user flexibility to choose the columns. For this I would like to use the ListBox/ComboBox so thst the user can select his/her choice of columns which would be displayed in the Grid.
My questions are :
i) How do I use the ListBox/ComboBox along with the Grid? Plz. suggest any instruction manual available in the net ?
ii) How do I bind the data to the selected columns from the two boxes to be displayed in the Grid? I might also have two selections to be made i.e. data will be filtered twice?
Plz. help immediately
Arijit
|
|
|
|
|
Arjit,
Did you contact ComponentOne tech support?
From what I can gather, you want the columns selected in the ListBox to show up in the grid, correct?
I would handle the item selected event in the ListBox and in code add the column to the grid in code. You probably want to put a button or a checkbox in each item in the ListBox so to make it easier for the user to use your solution.
Sorry, but I don't have the ComponentOne grid.
I hope this helps.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Thanks Karl
You have analysed the problem correctly.
I have already contacted ComponentOne tech support.
Regards
Arijit
|
|
|
|
|
Hi Karl,
I have run the program , but it is giving 2 errors.
i)Could not create an instance of type'StaticExtension'
ii)Cannot find the type 'VisibilityToBoolConverter'
I am sending the relevant XAML code as well as the VisibilityToBoolConverter.vb code
<XAML>
<CheckBox IsChecked="{Binding Visibility ,
Converter={x:Static local:VisibilityToBoolConverter.Default},
Mode=TwoWay}"/>
<TextBlock Text="{Binding Caption}"/>
</XAML>
<VisibilityToBoolConverter.vb>
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Windows.Data
Imports System.Windows
Imports System.Globalization
Namespace NEW_WpfApplication_20_5_08
Public Class VisibilityToBoolConverter
Implements IValueConverter
Public Shared ReadOnly [Default] As New VisibilityToBoolConverter()
Public Function Convert(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.Convert
If TypeOf value Is Visibility Then
Return CType(value, Visibility) = Visibility.Visible
Else
Return Binding.DoNothing
End If
End Function
Public Function ConvertBack(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.ConvertBack
If TypeOf value Is Boolean Then
Return If(CBool(value), Visibility.Visible, Visibility.Collapsed)
Else
Return Binding.DoNothing
End If
End Function
End Class
End Namespace
</VisibilityToBoolConverter.vb>
Could you please point out the error in my application ?
Regards
Arijit
|
|
|
|
|
Iam new to WPF ..I have Binded the grid using List View Control..I want to edit the datagrid..How to use template column in grid and edit
|
|
|
|
|
nandiniks wrote: Iam new to WPF
Since WPF is new to you, the easiest way is to download the FREE Infragistics xamDataGrid control.
Later this year, Microsoft will put the DataGrid in WPF, but for now, go the easy route.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
thanks mr Karl for this advice
but i have many problems with XamDataGrid :
I didn't find any complete Guid for it i read the Guid that came with control
but I'm still have big problems .
so is there any sample or guid specially for hierarchy data and how to customize the xamdatagrid
to not display all tree objects
thanks alot
--- i'm very begginer in WPF and this make my mission more complicated ---
You have To Search About The Truth Of Your Life
Why Are you Here In Life ?
|
|
|
|
|
I don't think the XamDataGrid supports the display of hierarchical data.
The WPF TreeView support hierarchical data with no problem.
What are your trying to achieve?
modified 27-Feb-21 21:01pm.
|
|
|
|
|
XamDataGrid Support hierarchical Data I'm sure
And I tried that
I asked About Any complete Guide for this control To achieve the following :
I have class [A] that contain many collection properties
I assigned collection of class [A] to Data source of XamDataGrid
Then this control displayed automatically all objects from parent and displayed nested rows for each collection
property
I'm looking for Customize this behavior like displaying one collection property as a result on nested rows
and 2 tier Grid
-- thanks ---
You have To Search About The Truth Of Your Life
Why Are you Here In Life ?
|
|
|
|
|
TreeViewItem.MouseDoubleClick fires three times after a double click.
I want to handle it just once. How can I do this?
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
This event fires for all parents of a certain treeviewitem. So if an item is on level n, then the event will fire n times.
Solution:
if (e.Source == tree.SelectedItem)<br />
DoSomething();
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
gajatko wrote: This event fires for all parents of a certain treeviewitem
The event bubbles up through the tree, but how were you getting all the events
at one handler?
Just curious
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
This way:
TreeViewItem item;
item.MouseDoubleClick += ...;
parentNode.Items.Add(item);
Rather standard procedure, isn't it? Or maybe it's another WTF WPF strange feature.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
So a parent item gets all of its child items' events, right?
What if the target item marks the event as handled?
gajatko wrote: Rather standard procedure, isn't it?
I'm asking you I'm wondering if I'm not understanding something correctly here.
Thanks,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Here is a complete code:
private void AllToUI(MenuNode node, ItemCollection items)
{
foreach (MenuNode subNode in node.Nodes) {
NodeToUI(node, items);
if (subNode.Nodes.Count > 0)
AllToUI(subNode, items);
}
}
private void NodeToUI(MenuNode node, ItemCollection items)
{
TreeViewItem item = new TreeViewItem();
StackPanel itemContent = new StackPanel() {
Orientation = Orientation.Horizontal
};
item.Header = itemContent;
if (node.GetBitmap() != null)
itemContent.Children.Add(new Image {
Height = 20,
Source = node.GetBitmap()
});
Label content = new Label { Content = node.Header };
if (!System.IO.File.Exists(node.File))
content.Foreground = Brushes.Gray;
itemContent.Children.Add(content);
items.Add(item);
item.Expanded += new RoutedEventHandler(item_Expanded);
item.MouseDoubleClick += new MouseButtonEventHandler(item_MouseDoubleClick);
item.Tag = node;
}
void item_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
if (treeMenu.SelectedItem == e.Source) {
e.Handled = true;
packLaunch();
}
}
In fact this also doesn't work because after packLaunch(); a new window appears behind the main window, which is unacceptable.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
I want to know how to bind the data in the grid using listview control.
|
|
|
|
|
That's a fairly broad question, and not easily answered based on the level of detail in your statement (it's not really a question). Have a look at this[^] article and this[^] one.
|
|
|
|