Questions tagged [WPF] (806)

0
answer

Restart animation storyboard?

Hi. Can't restart the animation. Design Name.Storyboard.Stop(this); Name.Storyboard.Begin(this,true); not working. What is the reason ? Who can tell ?
evalyn.Lind asked April 19th 20 at 12:25
1
answer

How to restart the animation?

Use animations using ControlStoryBoardAction And in the code itself, start the animation: Name.Storyboard.Begin (this, true); But then start the animation the same code does not work. How to restart ?
demond.Homenick93 asked April 19th 20 at 12:20
3
answers

Why GetFullPath method returns an incorrect path to the document?

There is a file, path is: "C:\Users\User\Desktop\Диплом - копия\Диплом\docs\zmk.docx" The following code in the linepathToTemplateDoc string = System.IO.Path.GetFullPath(@"docs\zmk.docx"); I'm trying to find the full path relative to relative paths, but the result of this string is the string : "C:\Users\User\Desktop\Дипло...
randy_Stehr asked April 19th 20 at 11:58
2
answers

Not works Mode=OneWay binding to a property of an object, what is the error?

Wrote a class to create a mask for the TextBox public class Class1 { private string mask; public string Mask { get => mask; set { mask = value; MaskMethod(); } } private int maxLenght = 12; public int MaxLenght { get => maxLenght; set { maxLenght = value; } } private void MaskMethod() { string s = Regex.Re...
adolf.Hermiston asked April 18th 20 at 13:19
1
answer

MinWidth not working for GridSpliter?

Hi all. faced with this problem, minWidth my code why it is not working. <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="200px" MaxWidth="500px" MinWidth="150px"></ColumnDefinition> <ColumnDefinition Width="auto"></ColumnDefinition> <ColumnDefinition Width="*" MinWidth="40...
heather19 asked April 18th 20 at 13:14
4
answers

How to open file with word, which lies in the project?

We need to seal the word file to the application. For this, added it to the project. Now how to open it?
Geovanny_Emmeric asked April 18th 20 at 13:12
1
answer

Speech recognition in C# and WPF?

Hello, you need to write a program that will recognize the speech and translate it in a file(in the Internet a lot of information on the control commands, that is already well-known phrase). Will be useful for any information, thanks in advance
carter.Macejkovic asked April 18th 20 at 12:28
1
answer

When execution of the async method gets an error, what's the problem?

Code WPF <Button Content="Button" Canvas.Left="81" Canvas.Top="176" Click="Button_Click"/> <Label Name="label1" Content="Label" Canvas.Left="81" Canvas.Top="128"/> C#Code private async void Button_Click(object sender, RoutedEventArgs e) { await Task.Run( () => { for (int i = 0; i < 101; i++) { label...
Joan_Russ asked April 16th 20 at 11:06
1
answer

How to create a mask for the WPF TextBox?

Like these
Shawn91 asked April 16th 20 at 10:20
0
answer

Can't install Microsoft.Toolkit.UWP. What's the problem?

Gets error: failed to install package "Microsoft.Toolkit.Uwp 6.0.0". You are trying to install this package into a project, the required version of the platform which — ".NETFramework,Version=v4.8", but in the package there is no Assembly references or content files that are compatible with this platform. Additional informa...
reinhold.Rippin asked April 16th 20 at 10:16