|
Kevin Marois wrote: and VERY time consuming Hmmm. I'm not sure I agree here. I can churn out XAML at a phenomenal rate.
|
|
|
|
|
I can too. Don't get me wrong. I love XAML
But for every little tweak, you would need to stop, compile, run the report (meaning fire up your app, get to the report, run it - OOPS that label isn't aligned right!!!
Stop, open XAML, tweak, repeat.
With a designer it's one & done.
If it's not broken, fix it until it is
|
|
|
|
|
If the report is simple and you have already worked getting the data to a form, maybe just roll your own print routine to generate the report? See Printing in WPF[^] for example?
|
|
|
|
|
If you want a report designer then you could always look at SyncFusion reports[^]. I'm a big fan of SyncFusion now. They have worked hard on the performance of their WPF products, and this really shows.
|
|
|
|
|
It's not free, but we've had a lot of success with DevExpress' XtraReports package[^]. One very nice thing about it is that you can use the same report in WinForms, WPF and ASP.NET contexts (Silverlight too... but who needs that any more?!).
Regards,
Richard
|
|
|
|
|
Searching for "WPF marquee text" throws up some results that look promising:
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I'm trying to display a custom tooltip for Tree Nodes
I created this resource:
<ToolTip x:Key="treeItemToolTip"
DataContext="{Binding Path=PlacementTarget,RelativeSource={x:Static RelativeSource.Self}}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0"
Grid.Column="0"
Text="Revision:"/>
<TextBlock Grid.Row="0"
Grid.Column="1"
Text="{Binding RevisionNumber}"/>
</Grid>
</ToolTip>
then in my Tree I have
<controls:TreeViewEx BorderThickness="0"
Margin="5"
ItemsSource="{Binding Nodes}"
IsManipulationEnabled ="True"
Visibility="{Binding ShowTree, Converter={StaticResource visibilityConverter}}"
ToolTip="{StaticResource treeItemToolTip}">
</controls:TreeViewEx>
Yet when I run it, the Output window tells me that the tooltip can't find it's data on the TREEVIEW, not the nodes.
The data for the tooltip is on each node. How do I correctly bind the Tooltip to the node's data?
If it's not broken, fix it until it is
|
|
|
|
|
You are setting the tooltip on the tree itself. You want to set it on the items.
|
|
|
|
|
Ok, I see. How do I point it to the item instead?
If it's not broken, fix it until it is
|
|
|
|
|
Put it in your TreeViewItem style. If you don't have one, just create one with a single setter.
<Setter Property="ToolTip" Value="{StaticResource treeItemToolTip}" />
|
|
|
|
|
First I want to apologize for the lack of experience in English.
I am Brazilian and I'm using google translator to send this question.
I have a WPF project where I use a dll as resource dictionary and need to import into another dll then then use in my project.
But when I try to import the first dictionary, I encounter the error
"An error occorred while finding the resource dictionary".
've Researched everything I imagined trying to solve.
BuildAction the ResourceDictionary of this dll as the first page. (already tried as resource)
|
|
|
|
|
Hi All,
I am trying to convert jpg image to vector image in xaml file but the image gets blurred. Tool I used was Microsoft Expression Design. Tried with online conversion tool as well but result was same. Kindly suggest how a good quality vector image can be converted and plugged it in to silver light project xaml file.
http://www.bodurov.com/BitmapVectorizer/[^]
Regards
Deep
|
|
|
|
|
Hi guys,
I am new to WPF and I have a question about dynamic tab generation with tab control.
I would like to build template pages that would be called into a new tab of a tab control and bind its content to DB. For instance, I want to load an invoice from a list. It creates a tab, fills it with the invoice display page (frame?) and populates it with the info. If I go back to my list and load another invoice, it loads a second instance of my invoice display page into a new tab and populates it with the new invoice.
Is dynamic tab generation with the WPF tab control + frames the right way to go?
Thanks
|
|
|
|
|
Certainly adding the invoices to dynamic tabs would be reasonably straightforward. I'm not sure what you're trying to do with the Frame though.
|
|
|
|
|
Thanks for answering. I have found the frame control to be cited as the means to load pages within another. Should I understand that this control is not required to load a specific xaml dynamically within the tab control?
|
|
|
|
|
That's correct. You're mixing modes here - the Frame control is typically used in Page based applications.
|
|
|
|
|
is it true that MS stopped developing Silverlight? what is the last version of Silverlight was release by MS ?
i like to know if some one discuss what is the reason for which MS stopped development of Silverlight?
what was the draw back found in Silverlight?
thanks
tbhattacharjee
|
|
|
|
|
Yes it is. Version 6.
They are moving to HTML 5 as being able to do what SL can do.
|
|
|
|
|
thanks for reply. is there was any draw back in silverlight ?
i hard many people said there was some performance issue with silverlight.....is it true ?
if yes would u plzz like to discuss with me. thanks
tbhattacharjee
|
|
|
|
|
I'm not aware of performance issues - but it really depends what you're trying to do. The big drawback with Silverlight is that it relies on a plugin - and this plugin isn't available on platforms like iOS or even the WinRT. This means you can't target it for use with applications that run on these platforms.
|
|
|
|
|
Dear Sir/Madam,
Good Morning ...,
I bining data to datagrid using wpf user control i don't know how to set pagging in datagrid.i saw many sites for datagrid pagging but controls are available but i need usercontrol in datagrid with pagging also same user control like asp.net gridview pagging.
Thankyou,
kavi.G
|
|
|
|
|
|
I am working on a User Control. The DataContext of the control is the code behind. There is no ViewModel. All the code is in the code behind.
The problem:
I have a bool DP called ShowTimes that controls whether or not a column should be visible.
Here's the column
<telerik:GridViewDataColumn Header="From"
IsReadOnly="True"
DataMemberBinding="{Binding StartDT, StringFormat='{}{0:yyyy/MM/dd h:mm}'}"
IsVisible="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl},Mode=FindAncestor},Path=DataContext.ShowTimes}"
Width="150"/>
When I run it the Output window says that it can't find the property ShowTimes on the VM that the User Control is on.
how do I bind the IsVisible to the code begind?
If it's not broken, fix it until it is
|
|
|
|
|
Do you actually need all the direction detail on the binding, I would think the code behind is the datacontext for the UC and a simple binding to the property should suffice. Obviously I have not tried this
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Silverlight/C# project, I added an image object with a default image, the following code was created
<Image Height="403" HorizontalAlignment="Left" Margin="1212,86,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="360" Source="/reposMTX;component/Images/09.JPG" />
How can I change the image when a button is clicked?
I tried this
image1.Source = new BitmapImage(new Uri("http://tpsa11/images/shi.bmp", UriKind.RelativeOrAbsolute));
but does not seem to work
|
|
|
|