|
|
Thanks!
I updated the post to include all the features of the common dialog
(and <summary> info ripped from the SDK;.
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi!
I have defined a simple template to use on all windows of an application. At the beginning I wrote the style as a window resource, as shown below:
<Window.Resources>
<DataTemplate x:Key="gridDelete">
<Border Padding="2">
<Button x:Name="imgDelete" Click="imgDelete_Click" Background="Transparent" Cursor="Hand"/>
</Border>
</DataTemplate>
</Window.Resources>
In order to avoid copying this template on all the windows, I moved it to an application resource, but then I keep receiving errors stating that the imgDelete_Click can't be found. How can I define an application level template like this, and add events to the button only on the windows?
Best regards,
rferj
|
|
|
|
|
|
Hi,
In my client application (WPF) I am trying to upload a document to a sharepoint site by using WCF web service. I am able to upload documents to site upto 35 Kb. If I try to upload a file more than 35 kb in size then it throws following error message while uploading the file.
The remote server returned an unexpected response:(400) Bad Request
I have added following <binding> tag in web.config file of my WCF service
<bindings>
<wsHttpBinding>
<binding name="wshttpconfig">
<readerQuotas maxDepth="64" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
</binding>
after this I did set bindingConfiguration="wshttpconfig" in <endpoint tag>
<endpoint bindingConfiguration="wshttpconfig".....
But I still encounter the same problem.
Do I need to make any other settings in the app.config file of WCF Service
application?
Regards,
Vipul Mehta
|
|
|
|
|
Hi all.
I've created a storyboard, now I wanna run a method in secondary second of it ? means I wanna figure out when the animation reaches to the secondary second.
How can I do it ?
|
|
|
|
|
Can you provide a few more details? Are you talking about starting another storyboard when the first storyboard reaches a particular time? Easiest method might be to break the first storyboard up into two parts and when the completed event fires on the first half your could start the other storyboard.
|
|
|
|
|
lneir wrote: Can you provide a few more details?
Well, I used to work Flash. With Flash we could run a method on a specific frame , for example when the animation reach to frame 20 a method run.
Now I wanted to know ,we can run a method on a specific second in a specific storyboard ?
|
|
|
|
|
Hello,
i've some problems binding decimal values (double) with the TextBox or TextBlock control. The value is showed with the english decimal separator ( . ) and not the local one ( , ) This is an example:
http://img135.imageshack.us/img135/3120/xamlny0.png[^]
The same problem appears when i create a property in my classes then return (via the get function) a value calculated on the fly. If i bind directly the control with a double property without the get/set functions it works correctly.
Do i need to set somewhere the culture? I've tried to change it in the project settings but without solving anything.
|
|
|
|
|
If you use binding you need to make sure that you properly create the WPF compliant properties in the code. The syntax is slightly different than regular properties that only work with non-WPF controls.
Normal property:
public string Test
{
get;
set;
}
I following code is WPF compliant for interaction with binding (also found in this MSDN article[^]:
public static readonly DependencyProperty IsSpinningProperty =
DependencyProperty.Register(
"IsSpinning", typeof(Boolean),
...
);
public bool IsSpinning
{
get { return (bool)GetValue(IsSpinningProperty); }
set { SetValue(IsSpinningProperty, value); }
}
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hi there guys.
Is there a FolderBrowserDialog in WPF ?
Thank you.
|
|
|
|
|
Mohammad Dayyan wrote: Is there a FolderBrowserDialog in WPF ?
Not yet (I answer optimistically)
You could use the System.Windows.Forms.FolderBrowserDialog.
Choose Folder Dialog in WPF[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
I got the hint. I've started putting one together. Who knows, it might even get turned into an article.
However, it's not going to look like the standard folder dialog (unless you want it to). It'll be a styled Folder dialog control.
|
|
|
|
|
Pete O'Hanlon wrote: I got the hint. I've started putting one together.
Heh. Cool!
I considered that when I read the post....I'm just too busy this month.
I'll "evaluate" (the tech term for "steal") yours though!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: I'll "evaluate" (the tech term for "steal") yours though!
|
|
|
|
|
*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...
|
|
|
|