|
You could always replace this with To="{Binding ElementName=expander1, Path=ActualWidth}"
|
|
|
|
|
I tried that. It works. Thanks a lot.
Eric
|
|
|
|
|
You're welcome. I'm glad to help - and a 5 for the thanks.
|
|
|
|
|
hi all,
i am using VS2005 With frame work 3.0 and insatlled the SCSF 2007 release . i want to know this release supports the wpf in winfroms.please help me in this. i am trying from past one day.
Thanks ,
Guru
modified on Wednesday, December 17, 2008 5:07 AM
|
|
|
|
|
Powerful reporting system plus advanced technology is your business success!
Report Sharp-Shooter for Silverlight is a flexible and reliable tool designed to create reports based of any .Net data sources. The support for Silverlight technology provides unquestionable advantages for both users and developers. Developers can create functional Web reports that have functionality of traditional desktop reports. Users, in their turn, will be able to get reports just opening their browser from anywhere. Thus, you get two constituents of your business success.
New possibilities to make your work more effective and easy!
Report Sharp-Shooter for Silverlight Beta is the next step toward the final release of the product. This version provides more freedom in managing all aspects of report viewer work from code. Now the developers have access to product object model and can change page display mode, zoom in and zoom out, manage navigation, etc.
Company specialists also took care about users. They decreased the amount of data propagated via the network up to three times and let clients considerably reduce traffic and save time.
There is also no need to re-render the pages acquired earlier. These pages are cashed on the server side. XPS and RTF export filters are available in this new version.
Embed and deploy Report Sharp-Shooter for Silverlight in your application today!
A Go Live License will allow you to immediately deploy Report Sharp-Shooter for Silverlight while the product is still in beta and the last details are ironed out before release. The purchase of any Go Live Licenses will later be exchanged for an equivalent license of the final release version.
Moreover, now you can save on purchasing licenses of this powerful Silverlight reporting tool. Perpetuum Software offers 30% discount to those developers who purchase licenses while the product is at Beta stage.
Report Sharp-Shooter for Silverlight Beta is the first report generator for Silverlight capable of making developers work more enjoyable and providing users with flexible and powerful reports of the highest quality.
Feel free to visit the official webpage of the product at http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102
or feel free to download demoversion at http://www.perpetuumsoft.com/Demo/slviewer/default.aspx
|
|
|
|
|
hello
creating a website in xaml with silverlight website which allows user to register,the registration confirmation details will be provided to client in the form of email,the email will be send to email id and at the same time it will go to webmaster submitted by client at the time of registration and one thing registration details will be save in database
|
|
|
|
|
So, What is your question?
|
|
|
|
|
hello
creating a website in xaml with silverlight website which allows user to register,the registration confirmation details will be provided to client in the form of email,the email will be send to email id and at the same time it will go to webmaster submitted by client at the time of registration and one thing registration details will be save in database
hari krishna
|
|
|
|
|
Why Do you post the Same Question twice
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/SQL7/2000/2005/2008
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@its.co.za
|
|
|
|
|
hi i m not getting this tag in my <endpoint> tag.
plz provide me help as soon as posible
listenUriMode="Explicit/Unique"
listenUri="Uri"
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
|
|
|
|
|
Please provide an understandable question!
What are you asking?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
I have overridden the control template for a ProgressBar by changing the style of the PART_Track and PART_Indicator parts of it, but I have no clue how to override the animation that's taking place when a progressbar's IsIndeterminate property is set. Does anyone know if it's overridable at all, and if so, how?
Regards,
Øyvind.
|
|
|
|
|
I am not sure, did you try BackgroundWorker, progressReport() ?
Charith Jayasundara
|
|
|
|
|
Charith Jayasundara wrote: I am not sure, did you try BackgroundWorker, progressReport() ?
No, not in this case anyway. I don't think it would work, since the animation should go on even if no progress was reported from the background worker at all until it finished.
Anyway, I think I have found a solution on my own. Here it is, if anyone else needs to do the same:
I used Expression Blend to examine the source xaml code for the default ProgressBar control template, and found that it uses a ProgressBarBrushConverter to return a Brush based on some input values. With some googling I found this[^]">, which basically disassembles the ProgressBarBrushConverter.Convert method. Then I was able to make my own BrushConverter : IMultiValueConverter to use.
Regards,
Øyvind
|
|
|
|
|
Hi,
I have two InkCanvas in two applications. I am finding it difficult to duplicate the stroke "erasure by points" action on one InkCanvas to the other.
Basically my application communicates over the Network and can send strokes to the other InkCanvas which adds them.
Now, say
a) Canvas1 sends Stroke1 and Canvas2 receives and adds it to it.
b) Canvas1 deletes some Stroke1 portion (at the middle) which basically splits it into two strokes. This split is to be reflected in Canvas2 also.
My Question is, How can I possibly achieve this ?
I do not think I can collect the "Erasure by Points" cursor movement as a stroke, transfer to other side and clip off that part of the stroke in Canvas2.
I could imitate the "Delete as STroke" event, that deletes a full stroke by exchanging the full stoke to Canvas2, locating it, and then doing a Canvas2.Strokes.RemoveAt(position)
Will somebody have any suggestion ??
Thanks in advance.
ps: Also posted @ http://social.msdn.microsoft.com/Forums/en-US/tabletandtouch/thread/a535fe90-a8fb-4d34-adc6-d08086123627
-regmee
|
|
|
|
|
Hi
I have a canvas which loads x amount of Images(from an array), via the Image Control.
I have a single context menu assigned to all of them when i right click the context ment appears and menu items and works, thanks to the help of another user .
my problem is now, when i right click to get the contextmenu how do i also get what the parent conttrol it was launched from i.e image[5]
using c# and using context menu programatically.
i.e
Contextmenu CM = new contextmenu();
Menu Item Mn1 = new menuItem();
cm.add(mn1)
Foreach image in array
imagx[x].context menu = CM
Mn1.click = delegate { MN1Click(arg,arg);};
etc etc
would like to pass what image the context menu was called from to the MN1Click.
Thanks
Thanks
modified on Monday, December 15, 2008 3:58 AM
|
|
|
|
|
I need some help. I have a wpf text box that I need to be able to enter a newLine only on Shift+Enter key combination. If I set AcceptsReturn property to true then i cannot capture keys. Enter automatically gives me new line which I don't need. Basically i need to emulate InstantMessenger text box. Enter == send message and Shift+Enter == new line.. I'm trying to stay away from building a Custom Control that emulates text box.
Any help would be appreciated..
Environment = .NET3.5 SP1 C# WPF VS2008 SP1
Thank you!!
EmirG.
|
|
|
|
|
Try using the PreviewKeyDown event. This seemed to work ok.
<Window x:Class="ImTextbox.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="355" Width="498">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="250*" />
<RowDefinition Height="67*" />
</Grid.RowDefinitions>
<ItemsControl x:Name="listbox">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border BorderBrush="Chartreuse" BorderThickness="2" CornerRadius="5" Margin="2" >
<ContentPresenter Content="{Binding}" Margin="4"/>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<TextBox AcceptsReturn="True" x:Name="textbox" Grid.Row="1" Margin="4" />
</Grid>
</Window>
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
textbox.PreviewKeyDown += new KeyEventHandler(textbox_PreviewKeyDown);
}
void textbox_PreviewKeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Enter && (e.KeyboardDevice.Modifiers & ModifierKeys.Shift) != ModifierKeys.Shift)
{
listbox.Items.Add(textbox.Text);
textbox.Clear();
e.Handled = true;
}
}
}
|
|
|
|
|
I need this structure (DataGridView id DataTemplate) and I have problem with DataSource. I tried to find gridview and set DataSource in code-behind, but InvalidOperationException is showing : "This operation is valid only on elements that have this template applied."
I think I have applied this template.
Could somebody please help me how to set DataSource? DataSource can be set any way.
WpfWindow.xaml
<Window
x:Class="WPFAppl.WpfWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WPFAppl"
Title="Title"
Height="200"
Width="400"
WindowStartupLocation="CenterScreen"
Name="This"
Loaded="UserControl_Loaded">
<window.resources>
<datatemplate x:key="ThisTemplate">
<grid>
<grid.rowdefinitions>
<rowdefinition height="*" />
</grid.rowdefinitions>
<stackpanel orientation="Horizontal">
Grid.Row="0">
<windowsformshost width="360">
xmlns="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration">
<datagridview x:name="gridView">
AllowUserToAddRows="False"
SelectionMode="FullRowSelect"
EditMode="EditProgrammatically"
xmlns="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms">
</datagridview >
</windowsformshost >
</stackpanel>
</grid>
</datatemplate >
</window.resources >
</window >
WpfWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.ComponentModel;
using System.Collections.ObjectModel;
using System.Xml;
using System.Data;
using System.Globalization;
using System.Windows.Threading;
using System.Threading;
namespace WPFAppl
{ public partial class WpfWindow : Window
{
public WpfWindow()
{
InitializeComponent();
}
private DataTemplate ChildTemplate;
private ContentPresenter ParentTemplate;
private DataTable dt;
private void UserControl_Loaded(object sender, RoutedEventArgs e)
{
this.ContentTemplate = FindResource("ThisTemplate") as DataTemplate;
ChildTemplate = FindResource("ThisTemplate") as DataTemplate;
ParentTemplate = FindVisualChild<contentpresenter>(This);
dt = new DataTable();
dt.Columns.Add("attr1", typeof(string));
dt.Columns.Add("attr2", typeof(string));
dt.Columns.Add("attr3", typeof(string));
System.Windows.Forms.DataGridView gw1 = ChildTemplate.FindName("gridView", ParentTemplate) as System.Windows.Forms.DataGridView;
gw1.DataSource = dt;
}
private childItem FindVisualChild<childitem>(DependencyObject obj) where childItem : DependencyObject
{
for (int i = 0; i < VisualTreeHelper.GetChildrenCount(obj); i++)
{
DependencyObject child = VisualTreeHelper.GetChild(obj, i);
if (child != null && child is childItem)
return (childItem)child;
else
{
childItem childOfChild = FindVisualChild<childitem>(child);
if (childOfChild != null)
return childOfChild;
}
}
return null;
}
}
} </childitem></childitem></contentpresenter>
modified on Saturday, December 13, 2008 5:24 PM
|
|
|
|
|
Can you fix your post?
Change all "<" to "<" and ">" to ">";
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank you, code os now OK I somebody know, how to set DataSource for DataGridView in this application, I would be happy
|
|
|
|
|
Without even getting in to the code behind...
All you have is a data template. Without a visual element in existence based
on the template, there's no visual tree to search
I'm not sure what you are trying to do with the template, but if you just want
to see it work, here's a starting point:
<Window x:Class="WPFAppl.WpfWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
Title="Title"
Height="200"
Width="400"
WindowStartupLocation="CenterScreen"
Loaded="Window_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Row="0">
<WindowsFormsHost Width="360" >
<wf:DataGridView x:Name="gridView"
AllowUserToAddRows="False"
SelectionMode="FullRowSelect"
EditMode="EditProgrammatically" >
</wf:DataGridView >
</WindowsFormsHost >
</StackPanel>
</Grid>
</Window>
private DataTable dt;
private void Window_Loaded(object sender, RoutedEventArgs e)
{
dt = new DataTable();
dt.Columns.Add("attr1", typeof(string));
dt.Columns.Add("attr2", typeof(string));
dt.Columns.Add("attr3", typeof(string));
gridView.DataSource = dt;
}
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I know that works this way, but I need to have that template in DataTemplate because of my application where I need to change more templates. In one of that templates I need to have DataGridView and somehow set DataSource.
Don´t you know please another way how to set DataSource for that XAML in my first message?
|
|
|
|
|
You can't set the datasource on an element until the element actually exists.
A template is just a template - "Describes the visual structure of a data object".
What are you trying to achieve?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|