Problem to using custome fonts in wpf
hello guysI'm trying to use Material-Design-Iconic-Font font in my wpf app with this code:<Label x:Name="label" Content="" FontFamily="./Fonts/#Material-Design-Iconic-Font"...
View Articlechange all objects color that use a same DynamicResource in wpf
hello guysHow can I change all objects color that use same DynamicResource at the same time?For example I've defined this variable in xaml:<Color...
View ArticleHow to display and update time in WPF application.
I am using VS2008 and want to display time on WPF Window using User Control that will be updated automatically.how will this be done?
View ArticleVisual Studio Community Installation Fail.
Hi Everyone.I recently upgraded my W7pro to W10pro, and I have been using W10 without any issues.I just tried to install Visual Studio Community on Windows10, and the setup failed. I ran collect.exe...
View ArticleMVVM and DAL Model naming convention
In MVVM how do you distinguish your model classes for objects that primary interface with a database versus objects that have additional business logic that are needed to do some analysis.For example,...
View ArticleHow image included within the text in RichBox in WPF ?
When inside the tool I want to text included in the image between the place where I want to speak, as the following picture: I tried the following code but the photo does not show the speech, but end...
View ArticleVisual Studio 2015 WPF designer gives false errors
I tried asking this question in Stack Overflow (https://stackoverflow.com/questions/34516507/upgrade-to-visual-studio-2015-gives-false-errors) without ay luck.Defining a WPF combobox gives an error....
View ArticleTooltip on LineGeometry within Canvas
Hi,Been using Canvas to display a set of lines :<Canvas Name="myCanvas"><Path Stroke="Black" StrokeThickness="1"><Path.Data><GeometryGroup...
View ArticleGet list of certain resources
Hello Everyone! I am using this to set visibility for some controls: <Visibility x:Key="Config">Visible</Visibility><Visibility x:Key="Acess1">Visible</Visibility>It is working...
View ArticlePointerPressed event in WPF
Is it possible to use the UIElement.PointerPressed from WPF?https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.uielement.pointerpressed.aspxIf not, what is the best way to do this in...
View ArticleRichTextBox save content as rtf is it a bug?
Hello guysI have a problem to use RichTextBoxwe use a RichTextBox, its direction is rtf and we write to it some multilevel list like1.aaa2.bbb 1.aaa 2.bbbafter save text of RichTextBox as...
View ArticleDatagrid SelectionChanged Event
Consider a datagrid which has a combobox column. As far as I can tell the SelectionChanged event of the datagrid fires when the user selects a value from the combobox OR when the user selects a whole...
View ArticleInstance Ctor is not firing in the DP's declaration's class
Hi, I just want to bind the actual height of a control (a read only DP) to the Prop in the VM. For this purpose, I have created the Attached DP. I have achieved this one. Inside the Class, (where the...
View ArticleIs loading the controls from template by traversing through the VisualTree a...
I have a custom control which has it's template defined and the template contains below code:<FlipView Grid.Row="3" Grid.ColumnSpan="2" x:Name="FlipView1" BorderBrush="Black" ItemsSource="{Binding...
View ArticleHandling PreviewMouseRightButtonUp event on parent and child element separately
Hello All,I have readonly texbox inside ListViewItem's data template. I have handled PreviewMouseRightButtonUp event on ListViewItem to show some context menu.As textbox by default have context menu...
View ArticleFiltering and ICollectionView Filter WPF
I currently have aDataGrid filled with companies that I am filtering based on two things - one is a search box that the user can filter based on the Company's Name, Town or Postcode. This looks like...
View ArticleError Installer on Windows XP after porting VS2015
Hi, we have made porting from VS2013 to 2015. All works find only the installer on windows xp not work. This is the log of the installer === Verbose logging started: 19/12/2015 9.14.37 Build type:...
View ArticleItem DataTemplate property in a custom UserControl
Consider following user control:UserControl1.xaml<UserControl x:Class="WpfApplication5.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View ArticleAppStart after deleting App.xaml
I am looking at one of the sample WPF project.http://windowsclient.net/downloads/folders/wpfsamples/entry5087.aspxThis project doesn't have a App.xaml and what are steps to create the same...
View ArticleListBoxItem got higlighted On Hover
Hi, I have a listbox with itemtemplate. There is no style got applied to the listbox and also i have defined the itemscontainerstyle locally too. I have set the FocusVisualStyle to null.But as shown in...
View Article