WPF text Wrap vs WrapWithOverflow
What’s the “conceptual” difference between TextWrapping=”Wrap” and TextWrapping=”WrapWithOverflow” (e.g. for a TextBox)? In the MSDN page about the class TextBox there is nothing … Thank you. 3 Answers 3
What’s the “conceptual” difference between TextWrapping=”Wrap” and TextWrapping=”WrapWithOverflow” (e.g. for a TextBox)? In the MSDN page about the class TextBox there is nothing … Thank you. 3 Answers 3
Where can I find a control which is like the C# Timer Control in WPF? 4 Answers 4
I am just coming up to speed on WPF and would like to create a reusable WPF control. When I look at the options for creating projects in Visual Studio, I see “WPF User Control Library” and “WPF Custom Control Library”. It’s unclear to me what the difference is between them and my Google searches … Read more
In my application I need to perform a series of initialization steps, these take 7-8 seconds to complete during which my UI becomes unresponsive. To resolve this I perform the initialization in a separate thread: public void Initialization() { Thread initThread = new Thread(new ThreadStart(InitializationThread)); initThread.Start(); } public void InitializationThread() { outputMessage(“Initializing…”); //DO INITIALIZATION outputMessage(“Initialization … Read more
I’m having a hard time binding a simple static string property to a TextBox. Here’s the class with the static property: public class VersionManager { private static string filterString; public static string FilterString { get { return filterString; } set { filterString = value; } } } In my xaml, I just want to bind … Read more
I’m trying to show a tooltip regardless of a buttons state, but this does not seem to do the trick: <Button Command=”{Binding Path=CommandExecuteAction}” ToolTip=”{Binding Path=Description}” ToolTipService.ShowOnDisabled=”true” Style=”{StaticResource toolbarButton}”> <Image Source=”{Binding Path=Icon}”></Image> </Button> How can i show the tooltip when the button is disabled due to command.CanExecute returning false? Note: ToolTipService.ShowOnDisabled=”true” works like a charm. The … Read more
I have a user control that I load into a MainWindow at runtime. I cannot get a handle on the containing window from the UserControl. I have tried this.Parent, but it’s always null. Does anyone know how to get a handle to the containing window from a user control in WPF? Here is how the … Read more
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 8 years ago. Improve this question I am looking for a very simple WPF chart which should have a 2D graph and should have pan and zoom facilities . … Read more
I want to pass an enum value as command parameter in WPF, using something like this: <Button x:Name=”uxSearchButton” Command=”{Binding Path=SearchMembersCommand}” CommandParameter=”SearchPageType.First” Content=”Search”> </Button> SearchPageType is an enum and this is to know from which button search command is invoked. Is this possible in WPF, or how can you pass an enum value as command parameter? … Read more
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more