|
*Really* looking forward to seeing this ...
|
|
|
|
|
No pressure then.
|
|
|
|
|
Done yet?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Nope - but I can now get the *real* icons from folders now. That's not bad for a day
|
|
|
|
|
Cool!
I whipped up a wrapper around the shell dialog, just so
you wouldn't think I was sitting here doing nothing...
Posted in new thread above...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yeah, you done yet? What ya doin postin on 'ere!! Get to work!
Way back when I start my project I wanted to do a custom one but I just didn't/still don't have the experience to do something like that yet. So I reluctantly used the OS one.
I think this control will go down REALLY well with the WPF peeps at large, its jarring to the user to go from a nice UI like WPF can achieve to a ghastly old looking dialog.
|
|
|
|
|
That's kind of the thought I had. There's a lot of work needs to be done in the browser integration P/Invoke stuff and all that, but I like the thought that we can have a WPFy version.
|
|
|
|
|
Absolutely agree.
It was precisely this OS level integration (P/Invoke stuff) that concerned my attempting it. The permutations involved in this kind of dialog are not to be underestimated.
|
|
|
|
|
Hi guys,
What about OpenFileDialog? I couldn't find anything in WPF. Should I use Microsoft.Win32.OpenFileDialog ? It works but not suitable for Great WPF
When you're alone in the Dark, Fear will protect you...
|
|
|
|
|
The link I posted above (in my first reply to this thread) shows
the use of OpenFileDialog as a folder browser. Look in the blog
responses
I tested it - it works, I just didn't like it....a real folder picker
is better IMO.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
While you're waiting for Pete...
Here you go![^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
You're welcome.
I've added the folder browser message callback handler and the
following initialization properties and associated functionality:
public string SelectedFolder { get; protected set; }
public string InitialFolder { get; set; }
public string InitialExpandedFolder { get; set; }
public string OKButtonText { get; set; }
If you can use the new code, send me an email here and I'll send it
in a reply.
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I was mentioning to Pete a couple weeks ago how I
often have problems working with XAML in Visual Studio
which kept me kind of discouraged about using it, and the
wonderful add-on tools available from him and Karl.
This morning, after a couple weeks of error-free development
and really getting into the VS designer (over Blend), again I
couldn't work with any XAML files. Visual Studio crashed before
I got through my first cup of coffee.
Time to report this to MS. It took about 30 seconds to find the
already-filed bug report (don't know why I couldn't find it months
ago...wrong keywords I guess).
Here it is:
WPF Designer fails to load in VS.NET 2008 SP1 (RTM)[^]
The workaround fixed me instantly. I never imagined setting the startup
project to a Win32 or MFC project would be associated with the XAML designer.
I never made that association while I was working - it just seemed random.
Maybe this will help someone else (or maybe I'm the only one that still works
with native projects)
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Good catch Mark, and what a weird issue. Nice one.
BTW - there's a new MoXAML available here[^].
|
|
|
|
|
Pete O'Hanlon wrote: BTW - there's a new MoXAML available
Cool! Thanks for the heads-up!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I am new in WPF technology.
I want to create resource dictionary runtime and it should be loaded.
I can load resouce dictionary which is there in my project (i.e. project resource) but actually I need it to be create .xaml file at runtime.
I have given physical path of that .xaml file but things not working as it should be.
Help me out.
Thanks
ronak
|
|
|
|
|
|
Hi All,
I have a custom WPF control (say X). I have a text box(say Y) in X. I will be placing X in a System.Windows.Window object (say Z). Now I want the text in Y to be based(bound to) on a string/int value in X. Now this value of the string/int in X will be based on some value in Z. Hope Iam clear. How can I use data binding to achieve the same? Any help would be highly appreciated.
Kamalesh Narayan Nair
|
|
|
|
|
|
Yes, that is what i want to do. The question is how do I do that? Any code sample or anything might help.
|
|
|
|
|
I have a silverlight application, and I want to open an aspx page inside the Silverlight and to interact between them.
Does anyone knows if there is any aspx box container in Silverlight?
|
|
|
|
|
Got a partial solution of the problem:
If we use the user control i.e. the .ascx file in the xaml page
we can do it like
1. REgister the usercontrol with following tag in
xmlns:MyUserControl="clr-namespace:SilverlightAppWeb"
where SilverlightAppWeb is the namespace of the .ascx user control
2. Use it anywhere with tag
<MyUserControl:Servicecontent/>
where Servicecontent is the class name.
This was successful for calling xaml file, i.e. xaml usercontrol.
But giving following error with .ascx file:
AG_E_PARSER_BAD_TYPE [Line....]
where the line is <MyUserControl:Servicecontent/> when .ascx is used.
And shows contents when the reference of xaml page is given....
Further let's try....
|
|
|
|
|
Short of purchasing[^] a commercial solution there's no easy way to accomplish this (well there is one, but it's a hack). One common way of doing this (the hack way) is to float a div over Silverlight to make it appear that this is inside the actual control.
|
|
|
|
|
I have a menuitem inside GridViewColumn.HeaderTemplate
that binds a
CommandParameter=”{Binding RelativeSource={RelativeSource AncestorType=ContextMenu}, Path=PlacementTarget}”
PlacementTarget puts me at a grid that forms the header datatemplate of my GridViewColumn.
what would be the binding expression to continue this up to finally bind GridViewColumn to the commandparameter?
I want to be able to walk up the dom using nested binding expression... anyone know how to do this?
|
|
|
|