Advanced Forum Search Results
-
After closer inspection, I realized just that and attempting to implement your solution. Thanks for the response.
-
I am trying to create a custom control template that I can reuse each time I require that control. I created a new class which I inherited from the ESRI Toolkit Map Tip base class, which itself inherits from the Control class. In my generic.xaml page I added the necessary UI to my resource dictionary, that being a grid with a border, path and ...
-
Hey Roger,
By all means. I'll set a note to shoot you an email once the app goes live. It's an app I'm building for a media company here in Richmond, VA. In fact I've started a blog and I plan to write an article each week to discuss how I've overcome some of the challenges as I work through building a LOB. Forgive me if it ...
-
I never give up! :)
I opened a new thread and found a solution:
http://silverlight.net/forums/t/95944.aspx
Thanks for the follow up!
-
Yup, that's exactly my approach as well. I guess we are saying the same thing. I got it to work in the end. Thanks for your help Roger.
-
Here's what I did subsequently:
I implemented Jesse's page switcher technique. I then replaced the "this.Content = new Page();" with "Switcher.Switch(new Page());"
So now it changes pages, but not as children of MyControl, but rather they fill the browser window. The Editor page loads in correctly after the ...
-
I just remembered why I didnt use Jesse's page switcher technique. Since I'm not changing out user controls, but rather controls, this technique wont be ideal for this case.
in your example above, what is the purpose of changing this.Content to an empty user control? Am I missing something?
-
So I add a method to MyControl:
public void GetEditor()
{
this.Main.Children.Clear();
this.Main.Children.Add(new Editor());
}
I call this method from my event handler on DetailsView (popup):
this.Visibility = Visible.Collapsed;
MyControl mc = new MyControl();
mc.GetEditor();
During debugging, MyControl is ...
-
Roger,
Thanks for your speedy response. I'm going to need some time to rework my code to implement this solution.
"As to your second response about closing controls, are you using any kind of page navigation? "
All I'm doing is changing content as user moves thru app, as follows:
this.Content = new ...
-
The thing that I don't understand is why I can't instantiate MyControl within the event handler on DetailsView and then call its method to clear the grids children and then load in MyEditor? In debugging, I noticed it goes thru the motions, but does not infact clear the children.