Click here to Skip to main content
15,798,826 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: ListBox selection through code, in MVVM Pin
#realJSOP21-Nov-21 6:18
mve#realJSOP21-Nov-21 6:18 
GeneralRe: ListBox selection through code, in MVVM Pin
Amarnath S21-Nov-21 14:55
professionalAmarnath S21-Nov-21 14:55 
GeneralRe: ListBox selection through code, in MVVM Pin
#realJSOP21-Nov-21 16:08
mve#realJSOP21-Nov-21 16:08 
GeneralRe: ListBox selection through code, in MVVM Pin
Amarnath S23-Nov-21 1:40
professionalAmarnath S23-Nov-21 1:40 
GeneralRe: ListBox selection through code, in MVVM Pin
Gerry Schmitz23-Nov-21 8:28
mveGerry Schmitz23-Nov-21 8:28 
GeneralRe: ListBox selection through code, in MVVM Pin
#realJSOP23-Nov-21 9:52
mve#realJSOP23-Nov-21 9:52 
QuestionUsing custom fonts in WPF project Pin
Alex Dunlop11-Nov-21 22:29
Alex Dunlop11-Nov-21 22:29 
AnswerRe: Using custom fonts in WPF project Pin
#realJSOP12-Nov-21 5:22
mve#realJSOP12-Nov-21 5:22 
Try this:

XAML
<Window.Resources>
    <Style x:Key="Digital" x:Type="Label">
        <Setter Property="TextElement.FontFamily" Value="Fonts/#DS-DIGI" />
    </Style>
</Window.Resources>


And then set the style of the control to that style.

XAML
<Label Name="TimeLabel" Grid.Column="1" Foreground="White" FontSize="24" Style={StaticResource Digital}">00:00:00</Label>

".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: Using custom fonts in WPF project Pin
Alex Dunlop13-Nov-21 9:05
Alex Dunlop13-Nov-21 9:05 
GeneralRe: Using custom fonts in WPF project Pin
#realJSOP14-Nov-21 1:14
mve#realJSOP14-Nov-21 1:14 
GeneralRe: Using custom fonts in WPF project Pin
Alex Dunlop14-Nov-21 18:29
Alex Dunlop14-Nov-21 18:29 
GeneralRe: Using custom fonts in WPF project Pin
#realJSOP15-Nov-21 0:25
mve#realJSOP15-Nov-21 0:25 
GeneralRe: Using custom fonts in WPF project Pin
Dave Kreskowiak15-Nov-21 2:43
mveDave Kreskowiak15-Nov-21 2:43 
QuestionCommon StackPanel being used in two places, with Horizontal and Vertical Orientations Pin
Amarnath S4-Nov-21 4:20
professionalAmarnath S4-Nov-21 4:20 
AnswerRe: Common StackPanel being used in two places, with Horizontal and Vertical Orientations Pin
Gerry Schmitz4-Nov-21 6:36
mveGerry Schmitz4-Nov-21 6:36 
GeneralRe: Common StackPanel being used in two places, with Horizontal and Vertical Orientations Pin
Amarnath S4-Nov-21 7:48
professionalAmarnath S4-Nov-21 7:48 
GeneralRe: Common StackPanel being used in two places, with Horizontal and Vertical Orientations Pin
Gerry Schmitz4-Nov-21 11:20
mveGerry Schmitz4-Nov-21 11:20 
QuestionVB.net - WPF - Help with treeview Pin
Lasse Frederiksen31-Oct-21 21:55
Lasse Frederiksen31-Oct-21 21:55 
AnswerRe: VB.net - WPF - Help with treeview Pin
Richard Deeming1-Nov-21 0:11
mveRichard Deeming1-Nov-21 0:11 
GeneralRe: VB.net - WPF - Help with treeview Pin
Lasse Frederiksen1-Nov-21 0:44
Lasse Frederiksen1-Nov-21 0:44 
GeneralRe: VB.net - WPF - Help with treeview Pin
Richard Deeming1-Nov-21 2:27
mveRichard Deeming1-Nov-21 2:27 
QuestionDataGridCell Style Problem Pin
Kevin Marois25-Oct-21 12:20
professionalKevin Marois25-Oct-21 12:20 
QuestionWPF MVVM Modeless Dialogs - any Example? Pin
Amarnath S23-Oct-21 22:08
professionalAmarnath S23-Oct-21 22:08 
AnswerRe: WPF MVVM Modeless Dialogs - any Example? Pin
Gerry Schmitz24-Oct-21 10:22
mveGerry Schmitz24-Oct-21 10:22 
GeneralRe: WPF MVVM Modeless Dialogs - any Example? Pin
#realJSOP10-Nov-21 0:24
mve#realJSOP10-Nov-21 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.