|
In my main siilverlight page, there is a hyperlink button which if clicked shows a child page. i.e.
private void hypShowPage_Click(object sender, RoutedEventArgs e)
{
childwindowname p = new childwindowname ();
p.Show();
}
Question:
Once, the ok button is clicked on th echild window page, I would like to refresh the
existing page (Main page).
How is this done please?
Thanks
|
|
|
|
|
arkiboys wrote: I would like to refresh the
existing page (Main page).
This is wrong, you need to refresh the DATA not the page. Presumably the child window changes some data and closes, you need to trap the close operation (I use a message pump) and refresh the data source (in you main VM/Codebehind) affected by the childwindow. As the data should be bound with onpropertychange events the xaml will automatically refresh.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
Yes, I meant to say to refresh the data on the main page.
I did read your suggestion several times. Still not sure how to do this.
Thanks
|
|
|
|
|
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
|
|
|
|