|
Hi,
Am using Infragistics calendar control in my WPF Application,
I have to disable the date which is less than current day when the user click on the calendar control, could u tell me how to do it...
|
|
|
|
|
I never work with wpf but can't you just use the DateChanged event?
Show a messagebox if the date is less then today and reset it (the date) to today.
|
|
|
|
|
Hi,
I am using Telerik RadGridView with with ShowInsertRow property set to true. After user inserts data into this row RowValidating and EditRowEnded events are fired. How can I lock InsertRow to be visible(RadGridView is in InsertMode) until data is not valid? Should I do it in RowValidating or EditRowEnded events?
regards
modified on Thursday, February 24, 2011 2:15 AM
|
|
|
|
|
Normally, when you have a problem with a commercial vendors product, it is customary to ask a question in the support forums there. They will generally be able to answer questions far faster than here about their products.
|
|
|
|
|
I have a requirement to reuse a main form if a modal dialog. So I thought I'd simply put a NavigateFrame in the body of the dialog
<navigation:Frame x:Name="DialogContent" Grid.Row="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
Source="AccountTreeDLG" UriMapper="{StaticResource MyMapper}" Visibility="{Binding AppVisible, Converter={StaticResource VisibilityConverter}}">
</navigation:Frame>
AccountTreeDLG is the urimapper entry pointing to the usercontrol.
It seems the Navigation frame will only allow the parent form to be displayed. Has anyone run up against this.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi ,
I have a wpf app , which has Custom UserCtrl(name it as CustomCursor) for mouse(looks like Hand symbol), so by moving the CustomCursor with feed of x,y points , CustomCursor wil be rendered in the Main window(which has a stackPanel loaded with Border and intern with Image control).
I have written mouseEnter/mouseLeave handlers for border . So when CustomCursor moves on Border, thru hittest i call the MouseEnter handler for border. But I couldnt able to identify mouseLeave for border. As I need to select and deselect each border when the cursor is on/off of the border.
Can someone throw some lights on how to find mouseLeave using hittest in case of border.
Thanks
|
|
|
|
|
I have a problem of saving files using Save file dialog.I'm using Silverlight 3.Recently I had upgraded my machine to vista sp2.But in that i cannot see any of my files getting saved when i use savefiledialog.It was working earlier before upgrading.This happens only with silverlight application alone.
Its an inbrowser application.Can anyone tell me wat cud be the reason.
|
|
|
|
|
Try disabling UAC and then try again.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
I tried this option but didn't work for me.One thing i noticed was that the file got created and gets deleted immediately with 0 KB. I even tried uninstalling silverlight runtime and installing but no option.
Is it any issue with any vista sp2 patches ?
modified on Wednesday, February 23, 2011 8:26 AM
|
|
|
|
|
can you post the code here
|
|
|
|
|
My list collection is populated with rows. Each row has fields...
The datagrid only shows the first row in the list.
Note that the datagrid.itemsSource does have the rows but only the first row is shown in the datagrid.
Do you knoiw why please?
gridMain.ItemsSource = results;
Thanks
modified on Tuesday, February 22, 2011 4:14 AM
|
|
|
|
|
Not enough detail.
What is in your collection? A
DataTable
DataRow or a custom DataRow object. What data grid are you using?
I wouldn't bind a DataRow to a data grid in WPF ... have a look into MVVM.
|
|
|
|
|
could the values for the first row is valid data and did u set datacontext property of the grid?
|
|
|
|
|
I am starting the task of creating a analysis program which takes feedback from a customer, kind of like a survey. I will be making this from scratch as was wondering as to what software development kit I should work with. I was wondering if I use ASP.net then do I also need something like VisualBasic.net to create the application, or does ASP.net posses everything I need?
|
|
|
|
|
Your question indicates a total lack of knowledge about the field. I strongly suggest you get a "how to" book on .net programming (possibly a for dummies one may be useful) and start working through it. Make sure you get the most basic one you can find as then it will not make any assumptions on your knowledge level.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Well, as you've posted this in the Silverlight/WPF forum perhaps you are considering using Silverlight. Or, have you just picked a forum at random?
|
|
|
|
|
ASP.Net is a set of technologies. Visual Studio, using either C# or VB.Net, is an integrated development environment and toolset for working with ASP.Net technologies. I recommend some of the beginner tutorials. You can build ASP.Net applications using the free Visual Studio Express editions, specifically Visual Web Developer, and use SQL Server Express for your database, all free of charge and with much of the same power as the full versions, at least at the level you'll be starting out. I recommend a site like www.LearnDevNow.com or any of the lovely tutorials found at www.asp.net to familiarize yourself with all of the tools.
Good luck!
Lisa Z. Morgan
Lairhaven Enterprises
|
|
|
|
|
Hi,
I have a Combobox control in my application, where i need to display multiple data from code like "Value","function" and etc.
can u tell me how to create it in a code..
and if the user select "Value" from that combobox item, i have to display a text box next to that combobox in my WPF application, or else if the user select "Function" from that combobox, it has to display an text box and combobox next to that combobox in the application, but i have to create this control programmatically..
So will u tell me, how can i do this.. any example will be more helpfull...
Thanks
Rocky
|
|
|
|
|
Rocky004 wrote: but i have to create this control programmatically
Why do this, you should control the visibility of the controls based on the selected item of the combobox.
Have 3 properties in your code (VM or codebehind)
SelectedComboItem
FunctionVisible
ValueVisible
When the selected item changes then set the properties as desired, make sure you use onpropertychange event in your code and the xaml will magically change visibility.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I cant design like this,
because both the controls for Value Type and Function Type will have appear in the same position based on user selection..
I will tell u in brief,
i have a combobox where i have to show this "Value" and "Function" Type data at Grid.Column=6 and Grid.Row=5,
When i select Value Type from that Combobox, the next combobox has to appear at Grid.Column=7 and Grid.Row=5,
or if i select Function Type from that combobox, the text box has to appear at Grid.Column=7 and Combobox has to appear at Grid.Column=8 and Grid.Row=5..
So will u pls tell me how to do it...
Thanks
Rocky
|
|
|
|
|
Rocky004 wrote: I cant design like this,
Why not, it is the way SL/WPF is meant to be used.
In you explanation I see no reason not to create the controls in xaml and just change the visibility at runtime based on the user selection.
You are dealing with a mildly complex UI requirement, you are making it difficult by trying to impose winforms type design requirements.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
http://blogs.msdn.com/b/mrochon/archive/2008/06/15/custom-data-and-dynamic-templates-in-wpf.aspx
|
|
|
|
|
I'm having some difficulty trying to use RoutedEvents. I'd guess this one here is easy for someone who has already done it. I'm making a 'paged' application where I'd like a completed action on one of the pages (one container) to allow changing of some content on another container or the main Window. So based on what I've read (been studying this stuff for 4 months now but apparently that's not enough), to do it correctly I should use 'RoutedEvents' to fire an event from the 'page' that goes up the container hierarchy to the main window. From there I can simply set the content within the other container. In any case, the source and target containers aren't in the same container 'chain'. I've put all what seems like the right code in and there are no errors except the event never gets fired in the main window. The problem seems all in the code behind (event not firing?). I'm not sure but I believe I've set up the handler and listener in an acceptable way based on everything I can find in reading the msdn. All the code gets executed (based on tracing through with breakpoints) but the UpdateStatusBar() method on the main window never gets fired when the RaiseEvent is triggered in the SelectDataset() method within the page. Perhaps I'm missing some fundamental understanding about the WPF definition of "point A to point B"?
For easy viewing, I've only posted the meaningful parts of the code. Here is what I have so far:
namespace BlahBlah
{
public partial class pageCfgBrushes : Page
{
public static readonly RoutedEvent BrushSelectionChangedEvent =
EventManager.RegisterRoutedEvent("BrushSelectionChanged", RoutingStrategy.Bubble,
typeof(RoutedEventHandler), typeof(pageCfgBrushes));
public event RoutedEventHandler BrushSelectionChanged
{
add { AddHandler(BrushSelectionChangedEvent, value); }
remove { RemoveHandler(BrushSelectionChangedEvent, value); }
}
public pageCfgBrushes()
{
InitializeComponent();
}
private void SelectDataset(object sender, SelectionChangedEventArgs e)
{
RaiseEvent(new RoutedEventArgs(BrushSelectionChangedEvent));
}
}
}
namespace BlahBlah
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
protected override void OnInitialized(EventArgs e)
{
base.OnInitialized(e);
navContent.NavigationUIVisibility = NavigationUIVisibility.Hidden;
navContent.Navigate(new pageMain());
pnlStatusArea.AddHandler(pageCfgBrushes.BrushSelectionChangedEvent, new RoutedEventHandler(UpdateStatusBar));
}
private void UpdateStatusBar(object sender, RoutedEventArgs e)
{
this.StatusBlockMsg.Text = "DataChanged Event";
}
}
}
Sure does take a lot to get working with this WPF in any meaningful way.
Thanks in advance for any help with this.
modified on Tuesday, February 22, 2011 5:28 AM
|
|
|
|
|
Figured out the problem. I changed the line:
pnlStatusArea.AddHandler(pageCfgBrushes.BrushSelectionChangedEvent, new RoutedEventHandler(UpdateStatusBar));
to:
this.AddHandler(pageCfgBrushes.BrushSelectionChangedEvent, new RoutedEventHandler(UpdateStatusBar));
And it works.
So... In trying to evaluate what happens here (so we can learn from it), apparently the original code line sets up a listener in the visual tree level of the pnlStatusArea but we then don't receive the event at the 'this' level of the visual tree. Or at least were not 'listening' for it at the 'this' level.
If anyone with more experience with this can elaborate or comment further about the details and rules of this stuff, it will be appriciated. I'd love to see a good article about this with cartoons and such. I know theres some articles out there but I haven't come across one that focuses on just this type of configuration without going into all sorts of other aspects of routed events that just gets confusing to the interested points here.
Thank You
|
|
|
|
|
I get a feed from Microsoft Silverlight and they keep sending me posts from as far back as 2008. Wondering if anyone else (who subscribes to their feed) is getting them or if there is just something weird about my subscription. I mean who really cares about Silverlight 1.1 any more.
Thanks
"You get that on the big jobs."
|
|
|
|