xaml

program doesn't contain a static 'main' method suitable for an entry point

混江龙づ霸主 提交于 2020-02-24 05:51:09
问题 I know that have a lot of question about this issue but my problem is worst. I have a big project that contains a lot WPF application. In mistake I have been deleted the App.xaml, and now I have error in the building.What I try is to take the backup App.xaml and even when I put it again in my project, and I still got this error. What to do ? Thanks. 回答1: In the file properties, set Build Action to ApplicationDefinition : This will generate a Main method for you in the intermediate output

How to reload (reset) the whole page in WPF?

纵然是瞬间 提交于 2020-02-23 05:45:51
问题 I have Request.xaml with button and with many comboxes, so I want reload it and put combox values to put it to default after button click. Of course I do some more staff. My Request.xaml code has such parts of the code: <TextBox x:Name="TxtBlock_numRequest" TextWrapping="Wrap" Height="23"/> <ComboBox x:Name="CmbBox_lvlPriority" Width="160"> <ComboBoxItem Content="1" Name="High" /> <ComboBoxItem Content="2" Name="Medium" /> <ComboBoxItem Content="3" Name="Low" /> </ComboBox> In addition, xaml

WPF DataGrid flickering issue

99封情书 提交于 2020-02-22 04:07:49
问题 In WPF, I have a DataGrid bound to a DataView in the ViewModel class. It is a touch panel embedded project, so every time I touch and slide my fingers on the panel it keeps sending me values and saves those values to the DataTable and assigns it to the bound DataView in a way where it can show only 5 or 10 rows (predefined) as the data gets updated. Every time I get a new row I delete the last until the total DataTable row count is 5/10. The issue here is that it is taking longer than usual

WPF DataGrid flickering issue

◇◆丶佛笑我妖孽 提交于 2020-02-22 04:07:15
问题 In WPF, I have a DataGrid bound to a DataView in the ViewModel class. It is a touch panel embedded project, so every time I touch and slide my fingers on the panel it keeps sending me values and saves those values to the DataTable and assigns it to the bound DataView in a way where it can show only 5 or 10 rows (predefined) as the data gets updated. Every time I get a new row I delete the last until the total DataTable row count is 5/10. The issue here is that it is taking longer than usual

WPF DataGrid flickering issue

半腔热情 提交于 2020-02-22 04:02:07
问题 In WPF, I have a DataGrid bound to a DataView in the ViewModel class. It is a touch panel embedded project, so every time I touch and slide my fingers on the panel it keeps sending me values and saves those values to the DataTable and assigns it to the bound DataView in a way where it can show only 5 or 10 rows (predefined) as the data gets updated. Every time I get a new row I delete the last until the total DataTable row count is 5/10. The issue here is that it is taking longer than usual

CefSharp ChromiumWebBrowser- allow user to zoom in/out

大兔子大兔子 提交于 2020-02-21 13:49:52
问题 I am using the ChromiumWebBrowser provided by the CefSharp library to allow users to view and interact with a website from within my C# application. The website is currently displayed correctly, and the user is able to interact with it fully, as if they were viewing it in a standard web browser. I now want to add the functionality to allow users to zoom in/ out when viewing the website from within my application, but I'm unsure how to do this... most of what I've found on the web seems to

CefSharp ChromiumWebBrowser- allow user to zoom in/out

让人想犯罪 __ 提交于 2020-02-21 13:49:25
问题 I am using the ChromiumWebBrowser provided by the CefSharp library to allow users to view and interact with a website from within my C# application. The website is currently displayed correctly, and the user is able to interact with it fully, as if they were viewing it in a standard web browser. I now want to add the functionality to allow users to zoom in/ out when viewing the website from within my application, but I'm unsure how to do this... most of what I've found on the web seems to

X名称空间(WPF)

懵懂的女人 提交于 2020-02-20 05:16:03
笔记简述 闲话 x名称空间简要 x名称空间的Attribute x名称空间的标签扩展 x名称空间的XAML指令元素 闲话 本笔记参考与《深入浅出WPF》、MSDN、Some Blog… MSDN的飞机票点 这里 。 x名称空间简要 在VS中新建个WpfApplication都会自动生成 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 这么句话,这就是x名称空间了。它包含的类均与解析XAML语言相关。 一下列出x名称空间中包含的工具: 名称 种类 x:Array 标签扩展 x:Class Attribute x:ClassModifier Attribute x:Code XAML指令元素 x:FieldModifier Attribute x:Key Attribute x:Name Attribute x:Null 标签扩展 x:Share Attribute x:Static 标签扩展 x:SubClass Attribute x:Type 标签扩展 x:TypeArguments Attribute x:Uid Attribute x:XData XAML指令元素 x名称空间的Attribute x:Class 新建的WpfApplication中会有这样的XAML语句:x:Class=

x名称空间

北战南征 提交于 2020-02-20 05:12:05
/*--> */ /*--> */ XAML代码的WPF程序都需要通过语句:xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml",x就是用来映射xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml",它包含的类均与解析XAML语言相关,所以亦称为"XAML名称空间" x名称空间中包含的工具: 1.x:Name x:Name的作用: 1)告诉XAML编译器,当一个标签带有x:Name时除了为这个标签生成对应实例外还要为这个实例声明一个引用变量,变量名就是x:Name的值 2)将XAML标签所对应对象的Name属性(如果有)也设为x:Name的值,并把这个值注册到UI树上,以方便查找 2.x:FieldModifier 默认情况下,字段的访问级别是internal。x:FieldModifier的作用就是在XAML里改变引用变量的访问级别,例如: <TextBox x:Name="textBox1" x:FieldModifier="public" HorizontalAlignment="Left" Height="23" Margin="64,26,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top"

Add a PDF viewer to a WPF application

只谈情不闲聊 提交于 2020-02-18 05:09:51
问题 I am new to WPF, and am trying to add a PDF viewer to my WPF application, but can't seem to work out how to do it... I have tried following a couple of tutorials/ examples that I have found online, but they don't seem to work for me for varying reasons... For example, I tried following the tutorial at: https://documentation.devexpress.com/#WPF/CustomDocument114328 to add a PDF Viewer at Design Time- it says to drag the PdfViewerControl from the DX.15.2: Data & Analytics Toolbox tab and drop