c# - FontFamily not being applied on DataGrid Cell -
I have sfDataGrid on a WinRT project, which displays the contents of the Excel file; I have xaml:
& lt; Page. Resources & gt; & Lt; Normal: Customstyle selector x: key = "stylicilator" /> & Lt; /Page.Resources>
...
& lt; SyncFusion: SFDataGrid Grid. Allow rays = "1" x: name = "datagrid" width = "auto" visibility = "collapsed" margin = "10,0,10,10" Resizing columns = "True" Autoconnect column = "true" Allow garrisoning Column = "true" allow setting = "wrong" columnizer = "star" Rohite = "65" line style = "{static resource line style}" ShowRowHeader = "True" CellStyleSelector = "{StaticResource styleselector}" />
and the cellstyle selector uses it
public category custom style selector: style selector {personal style cell style {get; Set; } Private Static Inte Cell Control; Protected Override Style Select StyleCore (object object, dependency object container) {cellCounter = cellCounter + 1; Case: Case: Case 24: Case 25: Case 26: Case 27: Case 28: Case 29: Case 30: Cellstyle = Application. Present. Resource ["AltCustomCellStyle"] as a genre; Return cell style; Default: cellStyle = Application.Current.Resources ["customCellStyle"] as the style; Return cell style; }}}
and it's the styles I'm using. '
style x: key = "customCellStyle" TargetType = "syncfusion: GridCell" Gt; & Lt; Setter Property = "Borderbrush" Value = "Gray" /> & Lt; Setter property = "borderline" value = "1,0,0,1" /> & Lt; Setter property = "padding" value = "0,0,0,0" /> & Lt; Setter Property = "Foreground" Value = "# FF2A2A2A" /> & Lt; Setter property = "font size" value = "13" /> & Lt; Setter Property = "FontFamily" value = "Segoyi UI" /> & Lt; / Style & gt; & Lt; Style x: key = "altCustomCellStyle" TargetType = "synxfusion: gridcel" & gt; & Lt; Setter Property = "Background" Value = "# 49E367" /> & Lt; Setter Property = "Borderbrush" Value = "Gray" /> & Lt; Setter property = "borderline" value = "1,0,0,1" /> & Lt; Setter property = "padding" value = "0,0,0,0" /> & Lt; Setter Property = "FontFamily" value = "Segoyi UI Semibold" /> & Lt; Setter property = "fontwhite" value = "bold" /> & Lt; Setter Property = "Foreground" Value = "# FF2A2A2A" /> & Lt; Setter property = "font size" value = "24" /> & Lt; / Style & gt;
Everything is working, the cells searching in the switch get a background of # 49E367, but for some reason my font size and fontfamily do not change.
Am I missing something?
Comments
Post a Comment