|
|
Rather than that, you should identify what the slowdown is and fix that. There are various optimisation techniques, but they are going to require you to do some root cause analysis first.
|
|
|
|
|
I can't. Some of this is an old third party WinForms control that we're forced to use right now.
If it's not broken, fix it until it is
|
|
|
|
|
Well, threading isn't going to do anything. Creating an instance of the control cannot be done on a separate thread. It has to done on the UI (startup) thread since the form you're going to stick the control to is on the UI thread.
Really, you HAVE to do root cause analysis here. Is it the creation of the control that is slow or is it retrieving data that the control is going to use that is slow?
If it's the creation of the control there's nothing you can do about it.
|
|
|
|
|
I have UserControl with it's VerticalAlignment set to Bottom so it's always along the bottom of the window.
At runtime the user can set a mode that causes it's height to increase. The problem is that all that does is extend it past the bottom of the window.
The control's Grid Height is "*".
How can I make all of it visible when it's height changes?
If it's not broken, fix it until it is
|
|
|
|
|
Not sure what you are doing with your control, but if it was like a Status bar or similar, Id either use RowDefinitions or a DockPanel to set it at the bottom. But without any code, or an exact explanation of what you want to achieve its hard to give you any better advice.
|
|
|
|
|
If you are trying to have a control, that is always aligned to the bottom of the window, yet when the height property changes, the height goes up instead of down I suggest you do something like this:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
Then on the bottom grid:
<Grid Grid.Row="2" x:Name="MyGrid" VerticalAlignment="Stretch" HorizontalAlignment="Stretch/>
On Runtime if you would like to change the height of the control, then all you would need to do is change the height of the Grid. By doing this you keep your control inside the bounds of the grid, yet if the grid height changes, so will the control since the property is set to stretch.
|
|
|
|
|
I have a WPF app that contains some slow WinForms controls in it. Later they'll be replaced with WPF controls.
The problem is that they're very slow and cause the UI to act strange at times. For example, when the main window is resized, the controls are resize, and they look horrible during resizing.
Is it possible in WPW to 'Freeze' the UI until resizing/loading is done?
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
Hello Everyone,
I need a quick advice on following. Please help me out..
I am using following searchtextbox in my WPF application usercontrol and successfully able to reference it. I can see the searchtextbox on my usercontrol but i don't know how to use its functions, i mean how to bind this with list of data ? Following url only explained about customized textbox but not on how to consume and use it? Please help me on this . thanks
Saurabh
|
|
|
|
|
You need to ask the person who created it. If this refers to a CodeProject article then use the forum at the end of the article.
|
|
|
|
|
I take it that you are referring to this blog post[^]. The chances of someone here, just knowing how that works, is very slim. What you are asking is for someone to download the control, integrate it into an application and then figure out how it works. That seems like you're expecting us to do an awful lot of your research for you. That's not going to happen.
|
|
|
|
|
Hello all,
I am trying to determine if I can do a particular project in Windows phone/store or not.
I need to take a given video file, extract the audio in wave format, do some processing and put it back in the video.
Do you think this is an easy/feasible task to do? In this case, would you give me some key words (name of the library, Programming language) or anything else that I can use to narrow down my search?
Thanks,
Vahid
|
|
|
|
|
Member 11960247 wrote: Do you think this is an easy/feasible task to do? That all depends on your knowledge and experience. But the remainder of your question suggests that you have some way to go yet. How about some keywords such as "audio extract video"?
|
|
|
|
|
How about helping people instead of trying to be funny.
I am looking for specific toolboxes/libraries that more experienced user would recommend.
|
|
|
|
|
I'm not trying to be funny. You asked how easy it was, and I gave you an answer based on what we know about your skills, which is nothing. You asked for some keywords and I gave you some; have you tried using them?
|
|
|
|
|
Of course I have tried them. And suggesting those keywords seemed like an effort to be sarcastic.
Being easy is like: there is a library called "" that does extraction automatically. Go and learn about it.
Being hard is like: you should learn MPEG/AVI/FLV... standards, read the header files and decode the data yourself for all different formats of audio...
The third answer would be: I don't know.
|
|
|
|
|
Member 11960247 wrote: Do you think this is an easy/feasible task to do? Not easy
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
This is definitely not a trivial task, and certainly not something I'd look to jump into as there really aren't any built in libraries. Part of the problem is that there are so many codecs and formats for videos that you have a lot of work there. What you could do is search for PCL extract audio from video in Google. A quick scan shows at least one library for dealing with FLV files - I haven't had a real chance to look into what platforms it targets, but it should serve as a good starting point.
|
|
|
|
|
I know nothing at all about mapping...
I'm tasked with implementing mapping in an app I'm working on. Currently we have a WinForms app that does mapping but it's a beast and is spread across 8 projects. I'm hoping someone here has experience with mapping.
- Must be usable in WPF
- Must handle offline maps. Out map files are in NITF format.
Can someone point me in the right direction? Get me started please?
I'm looking at Gmap.Net[^] but I don't know what it does or how it works yet.
If it's not broken, fix it until it is
|
|
|
|
|
Kevin - what mapping component do you currently use in your WinForms app? Looking at the GMap.NET comments gives me an uneasy feeling about the authors approach to working with mapping providers. Looking at the comments from the Google and Bing map teams, and how the author is ignoring their functionality take-down requests would make me uneasy about relying on the component, especially as you could end up running afoul of the providers constraints - leaving you facing potentially very damaging reputational issues.
|
|
|
|
|
Pete, I don't really know much about it, but it's a form of GDAL [^].
I'm looking for something that can handle offline maps. Our map files are in NITF format.
We've also started looing at ThinkGeo's[^] wpf component. Their docs say it handles NITF but they don't have very good examples.
If it's not broken, fix it until it is
|
|
|
|
|
i'm very impressed by some web site performing scroll based animation using jquery or other framework like scrollmagic but no such thing for a simple presentation in c#/WPF ?
how can i achieve some simple example in wpf ? is there some sample around achieving scroll based animation ?
|
|
|
|
|
If you're talking about the demo of ScrollMagic moving an element from one area of the screen to another, a simple path animation should do the trick (note that you can position elements outside the visible area of the window so the animation could appear to make the element appear as if by magic).
|
|
|
|
|
doing animation is fine but how can i trigger a animation attached to a control inside a scrollviewer based on a define start position for example
lest assume a rectangle with a scale animation inside a scrollviewer
i want be able to triggering that scale animation when scrollviewer.offset reach a certain value
like many jquery scroll based animation do
|
|
|
|
|
You could with a little bit of work - specifically, you'd want to do something like create a behavior to attach to the ScrollViewer. It's not that difficult to write.
|
|
|
|